File Information
Library: XSD/Types
Package: XSDAttributes
Header: Poco/XSD/Types/Attribute.h
Description
An Attribute that defines an internal anonymous simple type.
Inheritance
Direct Base Classes: AbstractAttribute
All Base Classes: Poco::RefCountedObject, AbstractAttribute, AnnotatedObject, AttributeContent, Visitable
Member Summary
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
Types Aliases
Ptr
using Ptr = AutoPtr < Attribute >;
Constructors
Attribute
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.
Destructor
~Attribute 
 
virtual ~Attribute();
Destroys the Attribute.
Member Functions
accept 
 
void accept(
    Visitor & v
) const;
See also: Poco::XSD::Types::Visitable::accept()
defaultValue 
 
const std::string & defaultValue() const;
Returns the (optional) default value of the attribute. Empty if none is set.
fixedValue 
 
const std::string & fixedValue() const;
Returns the (optional) fixed value of the attribute. Empty if none is set.
fixup 
 
void fixup();
nameSpace 
 
const std::string & nameSpace() const;
qualifiedForm 
 
bool qualifiedForm() const;
Returns true if the attribute must be used qualified.
setType 
 
void setType(
    SimpleType::Ptr ptr
);
type 
 
const SimpleType * type() const;
Returns the type the attribute uses.
usage 
 
AbstractAttribute::Usage usage() const;
Returns the usage options for the Attribute.