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);
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...
A class to deal with XML qualified names.
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...
void setDefaultValue(std::string *v)
It sets the default value for the element.
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.
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.
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 * 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.
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.
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.