Poco::XSD::Types

class AttributeGroup

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

Ptr

typedef AutoPtr < AttributeGroup > Ptr;

Constructors

AttributeGroup

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

Creates the AttributeGroup.

Destructor

~AttributeGroup virtual

virtual ~AttributeGroup();

Destroys the AttributeGroup.

Member Functions

accept virtual

void accept(
    Visitor & v
) const;

See also: Poco::XSD::Types::Visitable::accept()

add virtual

void add(
    AttributeContent::Ptr ptr
);

Adds an attribute content child to the group.

Throws an exception if a child with that name already exists.

See also: Poco::XSD::Types::AbstractAttributeGroup::add()

fixup virtual

void fixup();

See also: Poco::XSD::Types::AttributeContent::fixup()

getAny virtual inline

AnyAttribute::Ptr getAny() const;

Returns the any attribute.

See also: Poco::XSD::Types::AbstractAttributeGroup::getAny()

getAttributes virtual inline

const AbstractAttributeGroup::Attributes & getAttributes() const;

Returns all the children.

See also: Poco::XSD::Types::AbstractAttributeGroup::getAttributes()

hasAnyAttribute virtual inline

bool hasAnyAttribute() const;

Returns true if the any attribute is set.

See also: Poco::XSD::Types::AbstractAttributeGroup::hasAnyAttribute()