Schema::SimpleType Class Reference

#include <SimpleType.h>

Inheritance diagram for Schema::SimpleType:

Inheritance graph
[legend]
Collaboration diagram for Schema::SimpleType:

Collaboration graph
[legend]

List of all members.

Public Types

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 }

Public Member Functions

Constructors and Destructors


 SimpleType (const std::string &ns)
 ~SimpleType ()
Various Getter methods


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

Enumerator:
NONE 
LENGTH 
MINLEN 
MAXLEN 
ENUM 
WSP 
MAXINC 
MININC 
MAXEX 
MINEX 
TOTALDIGITS 
FRAC 
PATTERN 

Definition at line 100 of file SimpleType.h.

anonymous enum

Enumerator:
PRESERVE 
REPLACE 
COLLAPSE 

Definition at line 118 of file SimpleType.h.


Constructor & Destructor Documentation

Schema::SimpleType::SimpleType ( const std::string &  ns  ) 

Schema::SimpleType::~SimpleType (  ) 

Definition at line 76 of file SimpleType.cpp.


Member Function Documentation

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().

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().

bool Schema::SimpleType::isSimple (  )  const [inline, virtual]

isSimple return false

Implements Schema::XSDType.

Definition at line 174 of file SimpleType.h.

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

Definition at line 82 of file SimpleType.cpp.

References Schema::XSDType::getBaseTypeId().

bool Schema::SimpleType::isValidInt ( int  val  )  const

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

Definition at line 242 of file SimpleType.cpp.

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

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

bool Schema::SimpleType::getFacetValue ( int  facet,
void *&  val 
)

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

Definition at line 180 of file SimpleType.h.

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

Definition at line 163 of file SimpleType.h.

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

Definition at line 155 of file SimpleType.h.

References Schema::XSDType::setBaseType().

void Schema::SimpleType::setFacetValue ( std::string  facet,
std::string  val 
)


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

Generated on Sat Jan 10 19:07:17 2009 for wsdlpull by  doxygen 1.5.5