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