IT_Bus::Token Class Reference

#include <it_bus/token.h>

Inheritance diagram for IT_Bus::Token:

IT_Bus::NormalizedString IT_Bus::AnySimpleType IT_Bus::AnyType IT_Bus::ImplementationDetails IT_Bus::Language IT_Bus::Name IT_Bus::NMToken IT_Bus::NCName IT_Bus::ID List of all members.

Detailed Description

Token class.

Definition at line 23 of file token.h.

Public Types

typedef IT_Reflect::ValueRef<
IT_Bus::Token
IT_ReflectionType

Public Member Functions

 Token () throw (())
 No argument constructor.
 Token (const String &value) throw ((IT_Bus::Exception))
 Constructor.
 Token (const char *value) throw ((IT_Bus::Exception))
 Constructor.
 Token (const Token &copy) throw (())
 Copy constructor.
Tokenoperator= (const Token &rhs) throw (())
 Assignment operator.
virtual AnyTypecopy (const AnyType &copy)
 Returns a reference to an AnyType that is a copy of the AnyType parameter.
virtual const QNameget_type () const
 Returns the IT_Bus::QName for the type.
virtual IT_Reflect::Reflectionget_reflection () throw ((IT_Reflect::ReflectException))
 Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.
virtual const IT_Reflect::Reflectionget_reflection () const throw ((IT_Reflect::ReflectException))
 Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.

Static Public Member Functions

static bool is_valid_token (const String &value) throw (())
 Confirms that supplied string does not include invalid characters.

Protected Member Functions

virtual void validate_string (const String &value) throw ((IT_Bus::Exception))
 Confirms that supplied string does not include invalid characters.


Constructor & Destructor Documentation

IT_Bus::Token::Token ( const String value  )  throw ((IT_Bus::Exception))

Constructor.

Parameters:
String 

IT_Bus::Token::Token ( const char *  value  )  throw ((IT_Bus::Exception))

Constructor.

Parameters:
const char*


Member Function Documentation

static bool IT_Bus::Token::is_valid_token ( const String value  )  throw (()) [static]

Confirms that supplied string does not include invalid characters.

Parameters:
String to test for validity.

virtual AnyType& IT_Bus::Token::copy ( const AnyType copy  )  [virtual]

Returns a reference to an AnyType that is a copy of the AnyType parameter.

Derived classes override this method, providing an appropriate implementation. In this base class, this method is not supported; an exception is always thrown.

Parameters:
AnyType to be copied.
Returns:
A reference to AnyType.
Exceptions:
IT_Bus::Exception with message "Copy not supported"

Reimplemented from IT_Bus::NormalizedString.

Reimplemented in IT_Bus::ID, IT_Bus::Language, IT_Bus::Name, IT_Bus::NCName, and IT_Bus::NMToken.

virtual const QName& IT_Bus::Token::get_type (  )  const [virtual]

Returns the IT_Bus::QName for the type.

Derived subclasses implement this method and return their QName.

Returns:
NT_SCHEMA_TOKEN.

Reimplemented from IT_Bus::NormalizedString.

Reimplemented in IT_Bus::ID, IT_Bus::Language, IT_Bus::Name, IT_Bus::NCName, and IT_Bus::NMToken.

virtual IT_Reflect::Reflection* IT_Bus::Token::get_reflection (  )  throw ((IT_Reflect::ReflectException)) [virtual]

Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.

Returns:
IT_Reflect::Reflection
Exceptions:
IT_Reflect::ReflectException 

Reimplemented from IT_Bus::NormalizedString.

Reimplemented in IT_Bus::ID, IT_Bus::Language, IT_Bus::Name, IT_Bus::NCName, and IT_Bus::NMToken.

virtual const IT_Reflect::Reflection* IT_Bus::Token::get_reflection (  )  const throw ((IT_Reflect::ReflectException)) [virtual]

Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.

Returns:
IT_Reflect::Reflection
Exceptions:
IT_Reflect::ReflectException 

Reimplemented from IT_Bus::NormalizedString.

Reimplemented in IT_Bus::ID, IT_Bus::Language, IT_Bus::Name, IT_Bus::NCName, and IT_Bus::NMToken.

virtual void IT_Bus::Token::validate_string ( const String value  )  throw ((IT_Bus::Exception)) [protected, virtual]

Confirms that supplied string does not include invalid characters.

This method simply invokes the is_valid_token() method.

Parameters:
String to test for validity.

Reimplemented from IT_Bus::NormalizedString.

Reimplemented in IT_Bus::ID, IT_Bus::Language, IT_Bus::Name, IT_Bus::NCName, and IT_Bus::NMToken.


Generated on Tue Mar 20 15:28:08 2007 for Artix by  doxygen 1.5.1-p1