26 #ifndef __TERRALIB_XSD_INTERNAL_ELEMENT_H
27 #define __TERRALIB_XSD_INTERNAL_ELEMENT_H
37 #include <boost/ptr_container/ptr_vector.hpp>
44 class IdentityConstraint;
65 Element(
unsigned int minOccurs = 1,
unsigned int maxOccurs = 1,
Annotation* ann = 0, std::string*
id = 0);
99 QName* getType()
const;
106 std::string* getDefaultValue()
const;
113 std::string* getFixedValue()
const;
143 void setType(
QName* t);
152 void setDefaultValue(std::string* v);
161 void setFixedValue(std::string* v);
168 void setAsNillable(
bool v);
175 void setAsAbstract(
bool v);
182 void setBlock(
int v);
189 std::string* getName()
const;
196 QName* getRef()
const;
206 void setName(std::string* name);
216 void setRef(
QName* ref);
225 void setSubstitutionGroup(
QName* g);
232 void setFinal(
int v);
241 void setContentType(
Type* t);
272 #endif // __TERRALIB_XSD_INTERNAL_ELEMENT_H
Configuration flags for the XSD Module of TerraLib.
A base class for XSD classes that may allow annotation.
A base class for XSD classes that have occurs attributes.
A base class for XSD classes that may allow annotation.
This class models the element of a XML Schema.
Type * m_contentType
A content of this element. A simpleType or complexType element can be present as a child only if both...
bool m_nillable
It specifies whether an explicit null value can be assigned to the element. True enables an instance ...
std::string * m_fixed
It ensures that the elements are set to particular value.
boost::ptr_vector< IdentityConstraint > m_identityConstraintVec
The list of elements related to identity constraint - (key | keyref | unique)*. (Optional) ...
QName * m_ref
It refers to the name of another element. The ref attribute can include a namespace prefix...
QName * m_type
It specifies either the name of a built-in data type, or the name of a simpleType or complexType elem...
A base class for XSD classes that must provide a unique ID property.
Form
It specifies the form for the attribute.
bool m_abstract
It specifies whether the element can be used in an instance document. True indicates that the element...
Form m_form
Here, "unqualified" indicates that this attribute is not required to be qualified with the namespace ...
This is the base class for XML Schema elements that are related to identity constraint.
A base class for XSD classes that have occurs attributes.
A base class for XSD classes that must provide a unique ID property.
#define TEXSDEXPORT
You can use this macro in order to export/import classes and functions from this module.
std::string * m_name
It specifies a name for the element. (Optional)
A class to be used to represent XML qualified names.
int m_block
It prevents an element with a specified type of derivation from being used in place of this element...
A class that models a XSD annotation element.
QName * m_substitutionGroup
It specifies the element that can be substituted with this element.
int m_final
It sets the default value of the final attribute on the element element.
std::string * m_default
It specifies a default value for the element (can only be used if the element's content is a simple t...
An abstract class for modeling the definition of a new XML Schema Type.