27 #include "../common/STLUtils.h" 35 :
Occurs(minOccurs, maxOccurs),
41 m_substitutionGroup(0),
void setContentType(Type *t)
It sets the content type of the element.
void setAsAbstract(bool v)
It specifies whether the element can be used in an instance document.
void setSubstitutionGroup(QName *g)
It sets the substitution group.
An abstract class for modeling the definition of a new XML Schema Type.
A base class for XSD classes that may allow annotation.
Element(unsigned int minOccurs=1, unsigned int maxOccurs=1, Annotation *ann=0, std::string *id=0)
Constructor.
A base class for XSD classes that have occurs attributes.
void addIdentityConstraint(IdentityConstraint *ic)
It adds an IdentityConstraint to the element.
Element & operator=(const Element &rhs)
Assignment operator.
This class models the element of a XML Schema.
QName * getType() const
It returns the name of a built-in data type, or the name of a simpleType or complexType element...
Type * m_contentType
A content of this element. A simpleType or complexType element can be present as a child only if both...
A class to deal with XML qualified names.
bool m_nillable
It specifies whether an explicit null value can be assigned to the element. True enables an instance ...
bool isNillable()
If the element is "nillable" or not.
It indicates that the attribute attribute must be qualified with the namespace prefix and the no-colo...
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) ...
void setDefaultValue(std::string *v)
It sets the default value for the element.
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...
void setBlock(int v)
It prevents an element with a specified type of derivation from being used in place of this element...
A base class for XSD classes that must provide a unique ID property.
bool m_abstract
It specifies whether the element can be used in an instance document. True indicates that the element...
std::string * getFixedValue() const
It returns the fixed value for the element.
void setAsNillable(bool v)
It specifies whether an explicit null value can be assigned to the element.
void setFixedValue(std::string *v)
It sets a fixed value for the element.
Form m_form
Here, "unqualified" indicates that this attribute is not required to be qualified with the namespace ...
int getBlock()
It returns the block value for the element. It prevents an element with a specified type of derivatio...
QName * getRef() const
It returns the reference to a name of another element.
This is the base class for XML Schema elements that are related to identity constraint.
void setFinal(int v)
It sets the default value of the final attribute on the element element.
std::string * m_name
It specifies a name for the element. (Optional)
std::string * getName() const
It returns the element name or NULL if it doesn't have one.
A class to be used to represent XML qualified names.
void setRef(QName *ref)
It sets a reference to a name of another element.
bool isAbstract()
If the element is "abstract" or not.
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.
void setType(QName *t)
It sets the element type.
void setName(std::string *name)
It sets the element name.
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...
std::string * getDefaultValue() const
It returns the default value for the element.
This is the base class for XML Schema elements that are related to identity constraint.
An abstract class for modeling the definition of a new XML Schema Type.