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