File Information
Library: XSD/Types
Package: XSDTypes
Header: Poco/XSD/Types/Union.h
Description
Inheritance
Direct Base Classes: SimpleTypeInheritance
All Base Classes: Poco::RefCountedObject, AnnotatedObject, SimpleTypeInheritance, Visitable
Member Summary
Member Functions: accept, fixup, inlineTypes, isList, isRestriction, isUnion, typeReferences, types
Inherited Functions: accept, addAnnotation, duplicate, fixup, getAnnotations, id, isList, isRestriction, isUnion, referenceCount, release, types
Types
Ptr
typedef AutoPtr < Union > Ptr;
Constructors
Union
Union(
const std::string & id,
const std::vector < QName > & memberTypes
);
Creates the Union.
Destructor
~Union
virtual ~Union();
Destroys the Union.
Member Functions
accept
void accept(
Visitor & v
) const;
See also: Poco::XSD::Types::Visitable::accept()
fixup
void fixup();
Replaces type references with the referenced type object.
inlineTypes
const std::vector < SimpleType::Ptr > & inlineTypes() const;
Returns all types defined internally.
inlineTypes
std::vector < SimpleType::Ptr > & inlineTypes();
Returns all types defined internally. If you change this vector you must call fixup later.
isList
bool isList() const;
Inherit by list.
isRestriction
bool isRestriction() const;
True if we inherit by restriction.
isUnion
bool isUnion() const;
typeReferences
const std::vector < QName > & typeReferences() const;
Returns all the types that are referenced.
types
const std::vector < const Type * > & types() const;
Returns the type that we use in the union. Are guaranteed to be all SimpleTypes.