Poco::XSD::Types

class SimpleType

File Information

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

Description

This class represents a simple XML Schema type.

Inheritance

Direct Base Classes: Type

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

Member Summary

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

Types

Ptr

typedef AutoPtr < SimpleType > Ptr;

Constructors

SimpleType

SimpleType();

Creates the SimpleType.

SimpleType

SimpleType(
    const std::string & id,
    const std::string & name,
    bool finalRestriction,
    bool finalList,
    bool finalUnion
);

Creates the Type.

Destructor

~SimpleType virtual

virtual ~SimpleType();

Destroys the SimpleType.

Member Functions

accept virtual

void accept(
    Visitor & v
) const;

createIterator virtual

void createIterator(
    std::vector < OrderIterator > & seq
) const;

finalList

bool finalList() const;

Returns if this is a type that can be used by another one as list content.

finalRestriction

bool finalRestriction() const;

Returns if inheritance by restriction is final.

finalUnion

bool finalUnion() const;

Returns if this is a type that can be used by another one as union content.

fixup virtual

void fixup();

Resolves type references to a parent class.

getContent inline

SimpleTypeInheritance::Ptr getContent() const;

Returns the content. Note that builtin types will have a null content because they do not inherit from another type.

parents virtual

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

setContent inline

void setContent(
    SimpleTypeInheritance::Ptr pContent
);

Securely control IoT edge devices from anywhere   Connect a Device