Poco::XSD::Types

class AbstractAttribute

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

USE_PROHIBITED

USE_REQUIRED

Constructors

AbstractAttribute

AbstractAttribute(
    const std::string & id,
    const std::string & name
);

Creates the AbstractAttribute.

Destructor

~AbstractAttribute virtual

virtual ~AbstractAttribute();

Destroys the AbstractAttribute.

Member Functions

defaultValue virtual

virtual const std::string & defaultValue() const = 0;

Returns the (optional) default value of the attribute. Empty if none is set.

fixedValue virtual

virtual const std::string & fixedValue() const = 0;

Returns the (optional) fixed value of the attribute. Empty if none is set.

hasDefault inline

bool hasDefault() const;

Returns true if the attribute contains a default value.

hasFixed inline

bool hasFixed() const;

Returns true if the attribute contains a fixed value.

isAny virtual inline

bool isAny() const;

nameSpace virtual

virtual const std::string & nameSpace() const = 0;

qualifiedForm virtual

virtual bool qualifiedForm() const = 0;

Returns true if the attribute must be used qualified.

type virtual

virtual const SimpleType * type() const = 0;

Returns the type the attribute uses.

usage virtual

virtual AbstractAttribute::Usage usage() const = 0;

Returns the usage options for the Attribute.