Library: XSD/Types
Package: XSDElements
Header: Poco/XSD/Types/Element.h
Direct Base Classes: OrderContent
All Base Classes: Poco::RefCountedObject, AnnotatedObject, Content, OrderContent, Visitable
Known Derived Classes: AbstractElementImpl, ElementImpl, ElementTypeRef, ElementRef
Member Functions: fixup, getAbstract, getBlockExtension, getBlockRestriction, getBlockSubstitution, getDefault, getFinalExtension, getFinalRestriction, getFixed, getNillable, getQualified, getSubstitutionGroup, hasDefault, hasFixed, hasSubstitutionGroup, iterator, name, nameSpace, setAbstract, setBlockAll, setBlockExtension, setBlockRestriction, setBlockSubstitution, setDefault, setFinalAll, setFinalExtension, setFinalRestriction, setFixed, setName, setNillable, setQualified, setSubstitutionGroup, type
Inherited Functions: accept, addAnnotation, duplicate, fixup, getAnnotations, getId, getMaxOccurs, getMinOccurs, id, iterator, referenceCount, release, setId, setMaxOccurs, setMinOccurs, types
typedef Poco::AutoPtr < Element > Ptr;
Element();
Creates the Element.
Element(
const std::string & id,
Poco::UInt32 minOccurs,
Poco::UInt32 maxOccurs
);
Creates the Element.
virtual ~Element();
Destroys the Element.
virtual void fixup() = 0;
Fixes the element definition. Should be called once for each element after the whole XSD file was parsed.
See also: Poco::XSD::Types::Content::fixup()
virtual bool getAbstract() const = 0;
virtual bool getBlockExtension() const = 0;
virtual bool getBlockRestriction() const = 0;
virtual bool getBlockSubstitution() const = 0;
virtual const std::string & getDefault() const = 0;
Returns the default value of the element. Empty if no one exists.
virtual bool getFinalExtension() const = 0;
virtual bool getFinalRestriction() const = 0;
virtual const std::string & getFixed() const = 0;
The fixed value of the element. Empty if no one exists.
virtual bool getNillable() const = 0;
virtual bool getQualified() const = 0;
Returns true if the element is in qualified form or not
virtual const QName & getSubstitutionGroup() const = 0;
virtual bool hasDefault() const = 0;
virtual bool hasFixed() const = 0;
virtual bool hasSubstitutionGroup() const = 0;
OrderIterator iterator() const;
Returns an iterator for iterating over the element's content.
See also: Poco::XSD::Types::Content::iterator()
virtual const std::string & name() const = 0;
virtual const std::string & nameSpace() const = 0;
virtual void setAbstract(
bool abstr
) = 0;
virtual void setBlockAll(
bool block
) = 0;
virtual void setBlockExtension(
bool block
) = 0;
virtual void setBlockRestriction(
bool block
) = 0;
virtual void setBlockSubstitution(
bool block
) = 0;
virtual void setDefault(
const std::string & value
) = 0;
Sets the default value of the element.
virtual void setFinalAll(
bool fin
) = 0;
virtual void setFinalExtension(
bool fin
) = 0;
virtual void setFinalRestriction(
bool fin
) = 0;
virtual void setFixed(
const std::string & value
) = 0;
virtual void setName(
const std::string & name
) = 0;
virtual void setNillable(
bool nillable
) = 0;
virtual void setQualified(
bool qual
) = 0;
virtual void setSubstitutionGroup(
const QName & ref
) = 0;
virtual const Type & type() const = 0;