wsdlpull 1.23
Loading...
Searching...
No Matches
Schema::SimpleType Class Reference

#include <SimpleType.h>

Inheritance diagram for Schema::SimpleType:
Schema::XSDType

Public Member Functions

Constructors and Destructors
 SimpleType (const std::string &ns)
 
 ~SimpleType ()
 
Constructors and Destructors
std::string getName () const
 
std::string getNamespace () const
 
Qname getQname () const
 
Schema::ContentModelType getContentModel () const
 
int getTypeId () const
 
int getBaseTypeId () const
 
Schema::Derivation getBaseDerivation () const
 
isAnonymous

is this an anonymous type ,created inside an element or group

Returns
bool
bool isAnonymous () const
 
isSimple

IS this a simple type or not

Returns
bool
virtual void setName (std::string)
 
virtual void setContentModel (Schema::ContentModelType)
 
virtual void setTypeId (int)
 
virtual void setAnonymous (bool)
 
void setBaseType (int id, Schema::Derivation type=Schema::Restriction)
 
void setBaseTypeNamespace (std::string ns)
 

Various Getter methods

enum  {
  NONE = 0 , LENGTH = 0x1 , MINLEN = 0x2 , MAXLEN = 0x4 ,
  ENUM =0x8 , WSP = 0x10 , MAXINC = 0x20 , MININC = 0x40 ,
  MAXEX =0x80 , MINEX = 0x100 , TOTALDIGITS = 0x200 , FRAC = 0x400 ,
  PATTERN = 0x800
}
 
enum  { PRESERVE = 1 , REPLACE , COLLAPSE }
 
bool isList () const
 
bool isUnion () const
 
bool isSimple () const
 
bool isvalidFacet (std::string facet)
 
bool isValidInt (int val) const
 
bool isValidFloat (float val) const
 
bool isValidString (std::string val) const
 
bool getFacetValue (int facet, void *&val)
 
const std::list< int > * unionTypes () const
 
void setUnionType (int id)
 
void setListType (int id)
 
void setFacetValue (std::string facet, std::string val)
 

Detailed Description

Definition at line 53 of file SimpleType.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

isList

Returns
:is this a list type
Enumerator
NONE 
LENGTH 
MINLEN 
MAXLEN 
ENUM 
WSP 
MAXINC 
MININC 
MAXEX 
MINEX 
TOTALDIGITS 
FRAC 
PATTERN 

Definition at line 100 of file SimpleType.h.

◆ anonymous enum

anonymous enum

isList

Returns
:is this a list type
Enumerator
PRESERVE 
REPLACE 
COLLAPSE 

Definition at line 118 of file SimpleType.h.

Constructor & Destructor Documentation

◆ SimpleType()

◆ ~SimpleType()

Schema::SimpleType::~SimpleType ( )
Parameters
thenamespace uri of the simple type

Definition at line 76 of file SimpleType.cpp.

Member Function Documentation

◆ isList()

bool Schema::SimpleType::isList ( ) const
inline

isList

Returns
:is this a list type

Definition at line 141 of file SimpleType.h.

Referenced by Schema::SchemaValidator::validate(), and Schema::SchemaValidator::validate().

◆ isUnion()

bool Schema::SimpleType::isUnion ( ) const
inline

isUnion

Returns
:is this a union type

Definition at line 148 of file SimpleType.h.

Referenced by Schema::SchemaValidator::validate(), and Schema::SchemaValidator::validate().

◆ isSimple()

bool Schema::SimpleType::isSimple ( ) const
inlinevirtual

isSimple return false

Implements Schema::XSDType.

Definition at line 174 of file SimpleType.h.

◆ isvalidFacet()

bool Schema::SimpleType::isvalidFacet ( std::string facet)

isList

Returns
:is this a list type

Definition at line 82 of file SimpleType.cpp.

References Schema::XSDType::getBaseTypeId().

◆ isValidInt()

◆ isValidFloat()

bool Schema::SimpleType::isValidFloat ( float val) const

isList

Returns
:is this a list type

Definition at line 242 of file SimpleType.cpp.

Referenced by Schema::SchemaValidator::validate().

◆ isValidString()

bool Schema::SimpleType::isValidString ( std::string val) const

◆ getFacetValue()

◆ unionTypes()

const std::list< int > * Schema::SimpleType::unionTypes ( ) const
inline

isList

Returns
:is this a list type

Definition at line 180 of file SimpleType.h.

◆ setUnionType()

void Schema::SimpleType::setUnionType ( int id)
inline

isList

Returns
:is this a list type

Definition at line 163 of file SimpleType.h.

◆ setListType()

void Schema::SimpleType::setListType ( int id)
inline

isList

Returns
:is this a list type

Definition at line 155 of file SimpleType.h.

References Schema::XSDType::setBaseType().

◆ setFacetValue()

◆ getName()

std::string Schema::XSDType::getName ( ) const
inlineinherited

getName

Returns
NCName of the type

Definition at line 148 of file XSDType.h.

Referenced by Schema::SchemaParser::getTypeName().

◆ getNamespace()

std::string Schema::XSDType::getNamespace ( ) const
inlineinherited

getNamespace

Returns
namespace this type belongs to

Definition at line 236 of file XSDType.h.

Referenced by Schema::SchemaParser::getType(), and Schema::SchemaValidator::validate().

◆ getQname()

Qname Schema::XSDType::getQname ( ) const
inlineinherited

getQName

Returns
QName (namespace qualified name)of the simple type

Definition at line 155 of file XSDType.h.

References Qname::setNamespace().

Referenced by Schema::TypesTable::addExternalTypeId(), Schema::TypesTable::addType(), and Schema::SchemaValidator::validate().

◆ getContentModel()

Schema::ContentModelType Schema::XSDType::getContentModel ( ) const
inlineinherited

getContentModel

Returns
content model which is simple,complex or mixed or none

Definition at line 164 of file XSDType.h.

Referenced by Schema::SchemaParser::getBasicContentType(), WsdlPull::WsdlInvoker::setInputValue(), WsdlPull::WsdlInvoker::setInputValue(), Schema::SchemaValidator::validate(), and Schema::SchemaValidator::validate().

◆ getTypeId()

int Schema::XSDType::getTypeId ( ) const
inlineinherited

getTypeId

Returns
the unique type id

Definition at line 171 of file XSDType.h.

◆ getBaseTypeId()

int Schema::XSDType::getBaseTypeId ( ) const
inlineinherited

getBaseTypeId

Returns
the unique type id of this type's base type default is anyType

Definition at line 185 of file XSDType.h.

Referenced by Schema::TypeContainer::getBaseTypeContainer(), isvalidFacet(), isValidInt(), Schema::SchemaValidator::validate(), and Schema::SchemaValidator::validate().

◆ getBaseDerivation()

Schema::Derivation Schema::XSDType::getBaseDerivation ( ) const
inlineinherited

getBaseDerivation

Returns
Extension or Derivation

Definition at line 192 of file XSDType.h.

◆ isAnonymous()

bool Schema::XSDType::isAnonymous ( ) const
inlineinherited

Definition at line 178 of file XSDType.h.

◆ setName()

void Schema::XSDType::setName ( std::string name)
inlinevirtualinherited

Definition at line 222 of file XSDType.h.

Referenced by Schema::TypesTable::addType().

◆ setContentModel()

void Schema::XSDType::setContentModel ( Schema::ContentModelType model)
inlinevirtualinherited

Definition at line 229 of file XSDType.h.

Referenced by Schema::ComplexType::ComplexType(), and SimpleType().

◆ setTypeId()

void Schema::XSDType::setTypeId ( int id)
inlinevirtualinherited

Definition at line 199 of file XSDType.h.

Referenced by Schema::TypesTable::addType().

◆ setAnonymous()

void Schema::XSDType::setAnonymous ( bool flag)
inlinevirtualinherited

Definition at line 215 of file XSDType.h.

Referenced by Schema::TypesTable::addType().

◆ setBaseType()

void Schema::XSDType::setBaseType ( int id,
Schema::Derivation type = Schema::Restriction )
inlineinherited

Definition at line 206 of file XSDType.h.

Referenced by setListType().

◆ setBaseTypeNamespace()

void Schema::XSDType::setBaseTypeNamespace ( std::string ns)
inherited

The documentation for this class was generated from the following files: