All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::xsd::AnyAttribute Class Reference

It models an XML anyAttribute element. More...

#include <AnyAttribute.h>

Inheritance diagram for te::xsd::AnyAttribute:
te::xsd::Identifiable te::xsd::Annotated

Public Member Functions

 AnyAttribute (Annotation *ann=0, std::string *id=0)
 Constructor. More...
 
 AnyAttribute (const AnyAttribute &rhs)
 Copy constructor. More...
 
AnnotationgetAnnotation () const
 It returns the associated annotation. More...
 
std::string * getId () const
 It returns a pointer (may be NULL) to the object id. More...
 
std::string * getNamespace () const
 It returns the namespaces containing the elements that can be used. More...
 
ProcessContents getProcessContent () const
 It returns how the XML processor should handle validation against the elements specified by this any element. More...
 
AnyAttributeoperator= (const AnyAttribute &rhs)
 Assignment operator. More...
 
void setAnnotation (Annotation *ann)
 It sets the associated annotation. More...
 
void setId (std::string *id)
 it sets the id. More...
 
void setNamespace (std::string *ns)
 It sets the namespaces containing the elements that can be used. More...
 
void setProcessContents (ProcessContents pc)
 It sets how the XML processor should handle validation against the elements specified by this any element. More...
 
 ~AnyAttribute ()
 Destructor. More...
 

Private Attributes

std::string * m_namespace
 It specifies the namespaces containing the attributes that can be used. (Optional) More...
 
ProcessContents m_pContents
 It specifies how the XML processor should handle validation against the elements specified by this any element. (Optional) More...
 

Detailed Description

It models an XML anyAttribute element.

The anyAttribute element can be used to extend the XML document with attributes not specified by the schema.

Definition at line 49 of file AnyAttribute.h.

Constructor & Destructor Documentation

te::xsd::AnyAttribute::AnyAttribute ( Annotation ann = 0,
std::string *  id = 0 
)

Constructor.

Parameters
annAn annotation.
idIt specifies a unique ID for the element.
Note
The AnyAttribute object will take the ownership of the annotation and id.

Definition at line 29 of file AnyAttribute.cpp.

te::xsd::AnyAttribute::AnyAttribute ( const AnyAttribute rhs)

Copy constructor.

Parameters
rhsRight-hand-side object.

Definition at line 37 of file AnyAttribute.cpp.

References m_namespace.

te::xsd::AnyAttribute::~AnyAttribute ( )

Destructor.

Definition at line 46 of file AnyAttribute.cpp.

Member Function Documentation

te::xsd::Annotation * te::xsd::Annotated::getAnnotation ( ) const
inherited

It returns the associated annotation.

Returns
The associated annotation.

Definition at line 30 of file Annotated.cpp.

References te::xsd::Annotated::m_annotation.

std::string * te::xsd::Identifiable::getId ( ) const
inherited

It returns a pointer (may be NULL) to the object id.

Definition at line 35 of file Identifiable.cpp.

std::string * te::xsd::AnyAttribute::getNamespace ( ) const

It returns the namespaces containing the elements that can be used.

Returns
The namespaces containing the elements that can be used.

Definition at line 68 of file AnyAttribute.cpp.

te::xsd::ProcessContents te::xsd::AnyAttribute::getProcessContent ( ) const

It returns how the XML processor should handle validation against the elements specified by this any element.

Returns
The mode how the XML processor should handle validation: STRICT | LAX | SKIP.

Definition at line 73 of file AnyAttribute.cpp.

te::xsd::AnyAttribute & te::xsd::AnyAttribute::operator= ( const AnyAttribute rhs)

Assignment operator.

Parameters
rhsRight-hand-side object.
Returns
A reference to this object.

Definition at line 51 of file AnyAttribute.cpp.

References m_namespace, m_pContents, te::xsd::Identifiable::operator=(), and te::xsd::Annotated::operator=().

void te::xsd::Annotated::setAnnotation ( Annotation ann)
inherited

It sets the associated annotation.

Parameters
annThe 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::xsd::serialize::ReadAnnotated().

void te::xsd::Identifiable::setId ( std::string *  id)
inherited

it sets the id.

Parameters
idThe 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::xsd::serialize::ReadIdentifiable().

void te::xsd::AnyAttribute::setNamespace ( std::string *  ns)

It sets the namespaces containing the elements that can be used.

Parameters
nsThe namespaces that will be used.
Note
The Any object will take the ownership of the given pointer.

Definition at line 78 of file AnyAttribute.cpp.

void te::xsd::AnyAttribute::setProcessContents ( ProcessContents  pc)

It sets how the XML processor should handle validation against the elements specified by this any element.

Parameters
pcIt specifies how the XML processor should handle validation: STRICT | LAX | SKIP.

Definition at line 84 of file AnyAttribute.cpp.

Member Data Documentation

std::string* te::xsd::AnyAttribute::m_namespace
private

It specifies the namespaces containing the attributes that can be used. (Optional)

Definition at line 114 of file AnyAttribute.h.

Referenced by AnyAttribute(), and operator=().

ProcessContents te::xsd::AnyAttribute::m_pContents
private

It specifies how the XML processor should handle validation against the elements specified by this any element. (Optional)

Definition at line 115 of file AnyAttribute.h.

Referenced by operator=().


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