File Information
Library: XSD/Types
Package: XSDTypes
Header: Poco/XSD/Types/InheritanceInfo.h
Description
Class InheritanceInfo models inheritance information for complex types.
Inheritance
Direct Base Classes: AnnotatedObject
All Base Classes: Poco::RefCountedObject, AnnotatedObject, Visitable
Member Summary
Member Functions: accept, fixup, getRestriction, getSimpleContent, parents, setRestriction, setRestrictionType, setSimpleContent, setType, type
Inherited Functions: accept, addAnnotation, duplicate, getAnnotations, id, referenceCount, release
Types
Ptr
typedef AutoPtr < InheritanceInfo > Ptr;
Constructors
InheritanceInfo
Creates the InheritanceInfo.
Destructor
~InheritanceInfo
virtual ~InheritanceInfo();
Destroys the InheritanceInfo.
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.
getRestriction
bool getRestriction() const;
True if we inherit by restriction, otherwise we inherit by extension.
getSimpleContent
bool getSimpleContent() const;
True if we inherit from a simple type, false if we have a complexContent.
parents
const std::vector < const Type * > & parents() const;
setRestriction
void setRestriction(
bool rest
);
Set to true if we inherit by restriction, otherwise we inherit by extension.
setRestrictionType
void setRestrictionType(
SimpleType::Ptr pInline
);
A restriction type can define an inline simple type that we inherit from. This method will fail for getRestriction() != true or getSimpleContent != true.
setSimpleContent
void setSimpleContent(
bool cont
);
Set to true if we inherit from a simple type, false if we have a complexContent.
setType
void setType(
const QName & parent
);
Set the parent class
type
const Type * type() const;
Returns the parent that we inherit from.