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