ComplexType & operator=(const ComplexType &rhs)
Assignment operator.
std::string * getName() const
It returns the element name or NULL if it doesn't have one.
Content * m_content
It can be: group|all|choice|sequence. If m_sContent or m_cContent is present, this must be NULL...
void addAttribute(AbstractAttribute *a)
It adds an attribute to this ComplexType.
It models an XML Schema complexContent element.
AnyAttribute * m_anyAttr
A pointer to a anyAttribute. If m_sContent or m_cContent is present, this must be NULL...
void setAnyAttribute(AnyAttribute *a)
It sets the anyAttribute to this ComplexType.
~ComplexType()
Destructor.
A base class for XSD classes that may allow annotation.
It models an XML Schema complexContent element.
int getBlock()
It returns the block value for the CompleType.
void setComplexContent(ComplexContent *cc)
It sets the ComplexContent to this ComplexType.
bool m_mixed
It specifies whether character data is allowed to appear between the child elements of this complexTy...
void setBlock(int v)
It prevents an element with a specified type of derivation from being used in place of this element...
void setFinal(int v)
It sets the default value of the final attribute on the element element.
bool m_abstract
It specifies whether the complex type can be used in an instance document (optional). True indicates that an element cannot use this complex type directly but must use a complex type derived from this complex type. Default is false.
A base class for elements that are not definitions nor declarations. This class is just for creating ...
SimpleContent * getSimpleContent() const
It returns the SimpleContent of this ComplexType.
AnyAttribute * getAnyAttribute() const
It returns the anyAttribute defined on this ComplexType.
void setAsAbstract(bool v)
It specifies whether the element can be used in an instance of the document.
A base class for elements that are not definitions nor declarations. This class is just for creating ...
int m_final
It sets the default value of the final attribute on the element element. This attribute cannot be use...
void setSimpleContent(SimpleContent *sc)
It sets the SimpleContent to this ComplexType.
This is the base class for XML Schema Attribute classes.
It models an XML anyAttribute element.
This is the base class for XML Schema Attribute classes.
int m_block
It prevents an element with a specified type of derivation from being used in place of this element...
It models a XML Schema Complex Type definition.
It models a XML Schema Complex Type definition.
std::string * m_name
The type name if it is not an unonoymous type (declared inside a element definition).
A base class for XSD classes that must provide a unique ID property.
void setName(std::string *name)
It sets the element name.
It models an XML anyAttribute element.
SimpleContent * m_sContent
SimpleContent. If m_cContent is present this must be NULL. Likewise if m_content or m_attributes or m...
ComplexType(Annotation *ann=0, std::string *id=0)
Constructor.
bool isAbstract()
If the CompleType is "abstract" or not.
bool isMixed()
If the CompleType is "mixed" or not.
Content * getContent()
It returns the content element of this ComplexType.
ComplexContent * m_cContent
ComplexContent. If m_sContent is present this must be NULL. Likewise if m_content or m_attributes or ...
A class that models an XML Schema simpleContent element.
boost::ptr_vector< AbstractAttribute > m_attributeVec
It can be: (attribute|attributeGroup)*. If m_sContent or m_cContent is present, this must be NULL...
const boost::ptr_vector< AbstractAttribute > & getAttributes() const
It returns the list of attributes of this ComplexType.
A class that models an XML Schema simpleContent element.
ComplexContent * getComplexContent() const
It returns the ComplexContent of this ComplexType.
void setContent(Content *c)
It sets the ComplexType content. It can be one of: group | all | choice | sequence.
A class that models a XSD annotation element.
void setAsMixed(bool v)
It specifies whether character data is allowed to appear between the child elements of this complexTy...
int getFinal()
It returns the final value for the CompleType.
An abstract class for modeling the definition of a new XML Schema Type.