Library: XSD/Types
Package: XSDAttributes
Header: Poco/XSD/Types/Attribute.h
An Attribute that defines an internal anonymous simple type.
Direct Base Classes: AbstractAttribute
All Base Classes: Poco::RefCountedObject, AbstractAttribute, AnnotatedObject, AttributeContent, Visitable
Member Functions: accept, defaultValue, fixedValue, fixup, nameSpace, qualifiedForm, setType, type, usage
Inherited Functions: accept, addAnnotation, defaultValue, duplicate, fixedValue, fixup, getAnnotations, hasDefault, hasFixed, id, isAny, name, nameSpace, qualifiedForm, referenceCount, release, type, usage
typedef AutoPtr < Attribute > Ptr;
Attribute(
const std::string & id,
const std::string & name,
const std::string & nameSpace,
const std::string & fixedValue,
const std::string & defaultValue,
bool qualifiedForm,
AbstractAttribute::Usage use = AbstractAttribute::USE_OPTIONAL
);
Creates the Attribute.
virtual ~Attribute();
Destroys the Attribute.
void accept(
Visitor & v
) const;
See also: Poco::XSD::Types::Visitable::accept()
const std::string & defaultValue() const;
Returns the (optional) default value of the attribute. Empty if none is set.
const std::string & fixedValue() const;
Returns the (optional) fixed value of the attribute. Empty if none is set.
void fixup();
const std::string & nameSpace() const;
bool qualifiedForm() const;
Returns true if the attribute must be used qualified.
void setType(
SimpleType::Ptr ptr
);
const SimpleType * type() const;
Returns the type the attribute uses.
AbstractAttribute::Usage usage() const;
Returns the usage options for the Attribute.