File Information
Library: XSD/Types
Package: XSDAttributes
Header: Poco/XSD/Types/AttributeGroup.h
Description
This class represents a group of attributes.
Inheritance
Direct Base Classes: AbstractAttributeGroup
All Base Classes: Poco::RefCountedObject, AbstractAttributeGroup, AnnotatedObject, AttributeContent, Visitable
Member Summary
Member Functions: accept, add, fixup, getAny, getAttributes, hasAnyAttribute
Inherited Functions: accept, add, addAnnotation, duplicate, fixup, getAnnotations, getAny, getAttributes, hasAnyAttribute, id, isAny, name, referenceCount, release
Types Aliases
Ptr
using Ptr = AutoPtr < AttributeGroup >;
Constructors
AttributeGroup
AttributeGroup(
const std::string & id,
const std::string & name
);
Creates the AttributeGroup.
Destructor
~AttributeGroup
virtual ~AttributeGroup();
Destroys the AttributeGroup.
Member Functions
accept
void accept(
Visitor & v
) const;
See also: Poco::XSD::Types::Visitable::accept()
add
void add(
AttributeContent::Ptr ptr
);
Adds an attribute content child to the group.
Throws an exception if a child with that name already exists.
fixup
void fixup();
getAny
AnyAttribute::Ptr getAny() const;
Returns the any attribute.
getAttributes
const AbstractAttributeGroup::Attributes & getAttributes() const;
Returns all the children.
hasAnyAttribute
bool hasAnyAttribute() const;
Returns true if the any attribute is set.