Poco::XSD::Types

class AttributeGroup

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

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;

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.

fixup virtual

void fixup();

getAny virtual inline

AnyAttribute::Ptr getAny() const;

Returns the any attribute.

getAttributes virtual inline

const AbstractAttributeGroup::Attributes & getAttributes() const;

Returns all the children.

hasAnyAttribute virtual inline

bool hasAnyAttribute() const;

Returns true if the any attribute is set.