Library: XSD/Types
Package: XSDElements
Header: Poco/XSD/Types/ElementRef.h
An ElementRef always references another root-level element. References are only allowed to have min/maxOccurs, id and annotation, i.e. the members they inherit from OrderContent, only delegate the interface definitions from Element to the referenced object. Note that only const methods are delegated. It is not possible to change the referenced element via the ElementRef. All set methods are ignored.
Direct Base Classes: Element
All Base Classes: Poco::RefCountedObject, AnnotatedObject, Content, Element, OrderContent, Visitable
Member Functions: accept, fixup, getAbstract, getBlockExtension, getBlockRestriction, getBlockSubstitution, getDefault, getFinalExtension, getFinalRestriction, getFixed, getNillable, getQualified, getSubstitutionGroup, hasDefault, hasFixed, hasSubstitutionGroup, name, nameSpace, setAbstract, setBlockAll, setBlockExtension, setBlockRestriction, setBlockSubstitution, setDefault, setFinalAll, setFinalExtension, setFinalRestriction, setFixed, setName, setNillable, setQualified, setSubstitutionGroup, setType, type
Inherited Functions: accept, addAnnotation, duplicate, fixup, getAbstract, getAnnotations, getBlockExtension, getBlockRestriction, getBlockSubstitution, getDefault, getFinalExtension, getFinalRestriction, getFixed, getId, getMaxOccurs, getMinOccurs, getNillable, getQualified, getSubstitutionGroup, hasDefault, hasFixed, hasSubstitutionGroup, id, iterator, name, nameSpace, referenceCount, release, setAbstract, setBlockAll, setBlockExtension, setBlockRestriction, setBlockSubstitution, setDefault, setFinalAll, setFinalExtension, setFinalRestriction, setFixed, setId, setMaxOccurs, setMinOccurs, setName, setNillable, setQualified, setSubstitutionGroup, type, types
ElementRef();
Creates the ElementRef.
ElementRef(
const QName & ref
);
Creates the ElementRef. The references element needs not to exist yet.
ElementRef(
const std::string & id,
Poco::UInt32 minOcc,
Poco::UInt32 maxOcc,
const QName & ref
);
~ElementRef();
Destroys the ElementRef.
void accept(
Visitor & v
) const;
See also: Poco::XSD::Types::Visitable::accept()
void fixup();
Checks if the referenced element exists and set the element as member.
See also: Poco::XSD::Types::Element::fixup()
bool getAbstract() const;
See also: Poco::XSD::Types::Element::getAbstract()
bool getBlockExtension() const;
bool getBlockRestriction() const;
bool getBlockSubstitution() const;
const std::string & getDefault() const;
The default value of the element. Empty if no one exists.
See also: Poco::XSD::Types::Element::getDefault()
bool getFinalExtension() const;
bool getFinalRestriction() const;
const std::string & getFixed() const;
The fixed value of the element. Empty if no one exists.
See also: Poco::XSD::Types::Element::getFixed()
bool getNillable() const;
See also: Poco::XSD::Types::Element::getNillable()
bool getQualified() const;
Returns if the element is in qualified form or not
const QName & getSubstitutionGroup() const;
bool hasDefault() const;
See also: Poco::XSD::Types::Element::hasDefault()
bool hasFixed() const;
See also: Poco::XSD::Types::Element::hasFixed()
bool hasSubstitutionGroup() const;
const std::string & name() const;
See also: Poco::XSD::Types::Element::name()
const std::string & nameSpace() const;
See also: Poco::XSD::Types::Element::nameSpace()
void setAbstract(
bool abstr
);
See also: Poco::XSD::Types::Element::setAbstract()
void setBlockAll(
bool block
);
See also: Poco::XSD::Types::Element::setBlockAll()
void setBlockExtension(
bool block
);
void setBlockRestriction(
bool block
);
void setBlockSubstitution(
bool block
);
void setDefault(
const std::string & value
);
See also: Poco::XSD::Types::Element::setDefault()
void setFinalAll(
bool fin
);
See also: Poco::XSD::Types::Element::setFinalAll()
void setFinalExtension(
bool fin
);
void setFinalRestriction(
bool fin
);
void setFixed(
const std::string & value
);
See also: Poco::XSD::Types::Element::setFixed()
void setName(
const std::string & name
);
See also: Poco::XSD::Types::Element::setName()
void setNillable(
bool nillable
);
See also: Poco::XSD::Types::Element::setNillable()
void setQualified(
bool qual
);
void setSubstitutionGroup(
const QName & ref
);
void setType(
const Type & aType
);
const Type & type() const;
See also: Poco::XSD::Types::Element::type()