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