Library: XSD/Types
Package: XSDTypes
Header: Poco/XSD/Types/SimpleType.h
Direct Base Classes: Type
All Base Classes: Poco::RefCountedObject, AnnotatedObject, Type, Visitable
Member Functions: accept, createIterator, finalList, finalRestriction, finalUnion, fixup, getContent, parents, setContent
Inherited Functions: accept, addAnnotation, createIterator, duplicate, fixup, getAnnotations, getSchema, id, iterator, iteratorRec, name, parents, referenceCount, release, setName, setSchema
typedef AutoPtr < SimpleType > Ptr;
SimpleType();
Creates the SimpleType.
SimpleType(
const std::string & id,
const std::string & name,
bool finalRestriction,
bool finalList,
bool finalUnion
);
Creates the Type.
virtual ~SimpleType();
Destroys the SimpleType.
void accept(
Visitor & v
) const;
See also: Poco::XSD::Types::Visitable::accept()
void createIterator(
std::vector < OrderIterator > & seq
) const;
See also: Poco::XSD::Types::Type::createIterator()
bool finalList() const;
Returns if this is a type that can be used by another one as list content.
bool finalRestriction() const;
Returns if inheritance by restriction is final.
bool finalUnion() const;
Returns if this is a type that can be used by another one as union content.
void fixup();
Resolves type references to a parent class.
See also: Poco::XSD::Types::Type::fixup()
SimpleTypeInheritance::Ptr getContent() const;
Returns the content. Note that builtin types will have a null content because they do not inherit from another type.
const std::vector < const Type * > & parents() const;
See also: Poco::XSD::Types::Type::parents()
void setContent(
SimpleTypeInheritance::Ptr pContent
);