Poco::XSD::Types

class InheritanceInfo

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

InheritanceInfo();

Creates the InheritanceInfo.

Destructor

~InheritanceInfo virtual

virtual ~InheritanceInfo();

Destroys the InheritanceInfo.

Member Functions

accept virtual

void accept(
    Visitor & v
) const;

fixup

void fixup();

Replaces type references with the referenced type object.

getRestriction inline

bool getRestriction() const;

True if we inherit by restriction, otherwise we inherit by extension.

getSimpleContent inline

bool getSimpleContent() const;

True if we inherit from a simple type, false if we have a complexContent.

parents inline

const std::vector < const Type * > & parents() const;

setRestriction inline

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 inline

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.