Library: XSD/Types
Package: XSDAttributes
Header: Poco/XSD/Types/AbstractAttribute.h
The base class for all Attribute classes.
Direct Base Classes: AttributeContent
All Base Classes: Poco::RefCountedObject, AnnotatedObject, AttributeContent, Visitable
Known Derived Classes: Attribute, AttributeTypeRef, AttributeRef
Member Functions: defaultValue, fixedValue, hasDefault, hasFixed, isAny, nameSpace, qualifiedForm, type, usage
Inherited Functions: accept, addAnnotation, duplicate, fixup, getAnnotations, id, isAny, name, referenceCount, release
typedef AutoPtr < AbstractAttribute > Ptr;
USE_OPTIONAL = 0
AbstractAttribute(
const std::string & id,
const std::string & name
);
Creates the AbstractAttribute.
virtual ~AbstractAttribute();
Destroys the AbstractAttribute.
virtual const std::string & defaultValue() const = 0;
Returns the (optional) default value of the attribute. Empty if none is set.
virtual const std::string & fixedValue() const = 0;
Returns the (optional) fixed value of the attribute. Empty if none is set.
bool hasDefault() const;
Returns true if the attribute contains a default value.
bool hasFixed() const;
Returns true if the attribute contains a fixed value.
bool isAny() const;
virtual const std::string & nameSpace() const = 0;
virtual bool qualifiedForm() const = 0;
Returns true if the attribute must be used qualified.
virtual const SimpleType * type() const = 0;
Returns the type the attribute uses.
virtual AbstractAttribute::Usage usage() const = 0;
Returns the usage options for the Attribute.