It models a XML Schema SimpleType element. More...
#include <SimpleType.h>
  
 Public Member Functions | |
| Type * | clone () const | 
| Annotation * | getAnnotation () const | 
| It returns the associated annotation.  More... | |
| SimpleTypeConstructor * | getConstructor () const | 
| It returns the constructor of the element.  More... | |
| std::string * | getId () const | 
| It returns a pointer (may be NULL) to the object id.  More... | |
| std::string * | getName () const | 
| It returns the name of the element.  More... | |
| SimpleType & | operator= (const SimpleType &rhs) | 
| Assignment operator.  More... | |
| void | setAnnotation (Annotation *ann) | 
| It sets the associated annotation.  More... | |
| void | setConstructor (SimpleTypeConstructor *c) | 
| It sets the constructor of the element.  More... | |
| void | setId (std::string *id) | 
| it sets the id.  More... | |
| void | setName (std::string *name) | 
| It sets the name of the element.  More... | |
| SimpleType (Annotation *ann=0, std::string *id=0) | |
| Constructor.  More... | |
| SimpleType (const SimpleType &rhs) | |
| Copy constructor.  More... | |
| ~SimpleType () | |
| Destructor.  More... | |
Private Attributes | |
| SimpleTypeConstructor * | m_constructor | 
| restriction | list | union.  More... | |
| std::string * | m_name | 
| It specifies a name for the element. Required if the simpleType element is a child of the schema element, otherwise it is not allowed.  More... | |
It models a XML Schema SimpleType element.
The simpleType element defines a simple type and specifies the constraints and information about the values of attributes or text-only elements.
Definition at line 54 of file SimpleType.h.
| te::xsd::SimpleType::SimpleType | ( | Annotation * | ann = 0,  | 
        
| std::string * | id = 0  | 
        ||
| ) | 
Constructor.
| ann | An annotation. | 
| id | It specifies a unique ID for the element. | 
Definition at line 30 of file SimpleType.cpp.
| te::xsd::SimpleType::SimpleType | ( | const SimpleType & | rhs | ) | 
Copy constructor.
| rhs | Right-hand-side object. | 
Definition at line 38 of file SimpleType.cpp.
References te::xsd::SimpleTypeConstructor::clone(), m_constructor, and m_name.
| te::xsd::SimpleType::~SimpleType | ( | ) | 
Destructor.
Definition at line 49 of file SimpleType.cpp.
      
  | 
  virtual | 
Implements te::xsd::Type.
Definition at line 97 of file SimpleType.cpp.
Referenced by te::xsd::List::List(), and te::xsd::List::operator=().
      
  | 
  inherited | 
It returns the associated annotation.
Definition at line 30 of file Annotated.cpp.
References te::xsd::Annotated::m_annotation.
| te::xsd::SimpleTypeConstructor * te::xsd::SimpleType::getConstructor | ( | ) | const | 
It returns the constructor of the element.
Definition at line 80 of file SimpleType.cpp.
      
  | 
  inherited | 
It returns a pointer (may be NULL) to the object id.
Definition at line 35 of file Identifiable.cpp.
| std::string * te::xsd::SimpleType::getName | ( | ) | const | 
It returns the name of the element.
Definition at line 75 of file SimpleType.cpp.
| te::xsd::SimpleType & te::xsd::SimpleType::operator= | ( | const SimpleType & | rhs | ) | 
Assignment operator.
| rhs | Right-hand-side object. | 
Definition at line 55 of file SimpleType.cpp.
References te::xsd::SimpleTypeConstructor::clone(), m_constructor, m_name, te::xsd::Identifiable::operator=(), and te::xsd::Annotated::operator=().
      
  | 
  inherited | 
It sets the associated annotation.
| ann | The annotation to be associated to the object. The annotated class will take the ownership of the given pointer. | 
Definition at line 35 of file Annotated.cpp.
Referenced by te::serialize::ReadAnnotated().
| void te::xsd::SimpleType::setConstructor | ( | SimpleTypeConstructor * | c | ) | 
It sets the constructor of the element.
| c | It specifies the constructor of the element. | 
Definition at line 91 of file SimpleType.cpp.
      
  | 
  inherited | 
it sets the id.
| id | The id to be associated to the object. It will take the ownership of the given string. | 
Definition at line 29 of file Identifiable.cpp.
References te::xsd::Identifiable::m_id.
Referenced by te::serialize::ReadIdentifiable().
| void te::xsd::SimpleType::setName | ( | std::string * | name | ) | 
It sets the name of the element.
| name | It specifies the element name. | 
Definition at line 85 of file SimpleType.cpp.
      
  | 
  private | 
restriction | list | union.
Definition at line 124 of file SimpleType.h.
Referenced by operator=(), and SimpleType().
      
  | 
  private | 
It specifies a name for the element. Required if the simpleType element is a child of the schema element, otherwise it is not allowed.
Definition at line 123 of file SimpleType.h.
Referenced by operator=(), and SimpleType().