Poco::XSD::Types

class SimpleTypeInheritance

Library: XSD/Types
Package: XSDTypes
Header: Poco/XSD/Types/SimpleTypeInheritance.h

Description

Describes how a simple type extends from another one.

Inheritance

Direct Base Classes: AnnotatedObject

All Base Classes: Poco::RefCountedObject, AnnotatedObject, Visitable

Known Derived Classes: SimpleRestriction, SimpleRestrictionInlineType, AbstractList, ListTypeRef, Union, List

Member Summary

Member Functions: fixup, isList, isRestriction, isUnion, types

Inherited Functions: accept, addAnnotation, duplicate, getAnnotations, id, referenceCount, release

Types

Ptr

typedef AutoPtr < SimpleTypeInheritance > Ptr;

Constructors

SimpleTypeInheritance

SimpleTypeInheritance();

Creates the SimpleTypeInheritance.

SimpleTypeInheritance

SimpleTypeInheritance(
    const std::string & id
);

Creates the SimpleTypeInheritance.

Destructor

~SimpleTypeInheritance virtual

virtual ~SimpleTypeInheritance();

Destroys the SimpleTypeInheritance.

Member Functions

fixup virtual

virtual void fixup() = 0;

Replaces type references with the referenced type object.

isList virtual

virtual bool isList() const = 0;

Inherit by list.

isRestriction virtual

virtual bool isRestriction() const = 0;

True if we inherit by restriction.

isUnion virtual

virtual bool isUnion() const = 0;

Inherit by union.

types virtual

virtual const std::vector < const Type * > & types() const = 0;

Returns the types that we inherit from. Will only contain more than one element for the union case.