Poco::XSD::Types

class ElementRef

Library: XSD/Types
Package: XSDElements
Header: Poco/XSD/Types/ElementRef.h

Description

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.

Inheritance

Direct Base Classes: Element

All Base Classes: Poco::RefCountedObject, AnnotatedObject, Content, Element, OrderContent, Visitable

Member Summary

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

Constructors

ElementRef

ElementRef();

Creates the ElementRef.

ElementRef

ElementRef(
    const QName & ref
);

Creates the ElementRef. The references element needs not to exist yet.

ElementRef

ElementRef(
    const std::string & id,
    Poco::UInt32 minOcc,
    Poco::UInt32 maxOcc,
    const QName & ref
);

Destructor

~ElementRef virtual

~ElementRef();

Destroys the ElementRef.

Member Functions

accept virtual

void accept(
    Visitor & v
) const;

See also: Poco::XSD::Types::Visitable::accept()

fixup virtual

void fixup();

Checks if the referenced element exists and set the element as member.

See also: Poco::XSD::Types::Element::fixup()

getAbstract virtual inline

bool getAbstract() const;

See also: Poco::XSD::Types::Element::getAbstract()

getBlockExtension virtual inline

bool getBlockExtension() const;

See also: Poco::XSD::Types::Element::getBlockExtension()

getBlockRestriction virtual inline

bool getBlockRestriction() const;

See also: Poco::XSD::Types::Element::getBlockRestriction()

getBlockSubstitution virtual inline

bool getBlockSubstitution() const;

See also: Poco::XSD::Types::Element::getBlockSubstitution()

getDefault virtual inline

const std::string & getDefault() const;

The default value of the element. Empty if no one exists.

See also: Poco::XSD::Types::Element::getDefault()

getFinalExtension virtual inline

bool getFinalExtension() const;

See also: Poco::XSD::Types::Element::getFinalExtension()

getFinalRestriction virtual inline

bool getFinalRestriction() const;

See also: Poco::XSD::Types::Element::getFinalRestriction()

getFixed virtual inline

const std::string & getFixed() const;

The fixed value of the element. Empty if no one exists.

See also: Poco::XSD::Types::Element::getFixed()

getNillable virtual inline

bool getNillable() const;

See also: Poco::XSD::Types::Element::getNillable()

getQualified virtual inline

bool getQualified() const;

Returns if the element is in qualified form or not

See also: Poco::XSD::Types::Element::getQualified()

getSubstitutionGroup virtual inline

const QName & getSubstitutionGroup() const;

See also: Poco::XSD::Types::Element::getSubstitutionGroup()

hasDefault virtual inline

bool hasDefault() const;

See also: Poco::XSD::Types::Element::hasDefault()

hasFixed virtual inline

bool hasFixed() const;

See also: Poco::XSD::Types::Element::hasFixed()

hasSubstitutionGroup virtual inline

bool hasSubstitutionGroup() const;

See also: Poco::XSD::Types::Element::hasSubstitutionGroup()

name virtual inline

const std::string & name() const;

See also: Poco::XSD::Types::Element::name()

nameSpace virtual

const std::string & nameSpace() const;

See also: Poco::XSD::Types::Element::nameSpace()

setAbstract virtual inline

void setAbstract(
    bool abstr
);

See also: Poco::XSD::Types::Element::setAbstract()

setBlockAll virtual inline

void setBlockAll(
    bool block
);

See also: Poco::XSD::Types::Element::setBlockAll()

setBlockExtension virtual inline

void setBlockExtension(
    bool block
);

See also: Poco::XSD::Types::Element::setBlockExtension()

setBlockRestriction virtual inline

void setBlockRestriction(
    bool block
);

See also: Poco::XSD::Types::Element::setBlockRestriction()

setBlockSubstitution virtual inline

void setBlockSubstitution(
    bool block
);

See also: Poco::XSD::Types::Element::setBlockSubstitution()

setDefault virtual inline

void setDefault(
    const std::string & value
);

See also: Poco::XSD::Types::Element::setDefault()

setFinalAll virtual inline

void setFinalAll(
    bool fin
);

See also: Poco::XSD::Types::Element::setFinalAll()

setFinalExtension virtual inline

void setFinalExtension(
    bool fin
);

See also: Poco::XSD::Types::Element::setFinalExtension()

setFinalRestriction virtual inline

void setFinalRestriction(
    bool fin
);

See also: Poco::XSD::Types::Element::setFinalRestriction()

setFixed virtual inline

void setFixed(
    const std::string & value
);

See also: Poco::XSD::Types::Element::setFixed()

setName virtual inline

void setName(
    const std::string & name
);

See also: Poco::XSD::Types::Element::setName()

setNillable virtual inline

void setNillable(
    bool nillable
);

See also: Poco::XSD::Types::Element::setNillable()

setQualified virtual inline

void setQualified(
    bool qual
);

See also: Poco::XSD::Types::Element::setQualified()

setSubstitutionGroup virtual inline

void setSubstitutionGroup(
    const QName & ref
);

See also: Poco::XSD::Types::Element::setSubstitutionGroup()

setType inline

void setType(
    const Type & aType
);

type virtual inline

const Type & type() const;

See also: Poco::XSD::Types::Element::type()