Public Types

decXmlElementDecl Class Reference

XML Element Declaration. More...

#include <decXmlElementDecl.h>

Inheritance diagram for decXmlElementDecl:
decXmlContainer decXmlElement

List of all members.

Public Types

enum  eContentTypes {
  ectEmpty, ectAny, ectMixed, ectComposed,
  ECT_COUNT
}
 

Content type enumeration.

More...

Public Member Functions

Constructors and Destructors
 decXmlElementDecl (const char *name)
 Creates a new xml element declaration.
 ~decXmlElementDecl ()
 Cleans up the xml element declaration.
Management
const char * GetName () const
void SetName (const char *name)
int GetContentType () const
void SetContentType (int contentType)
Visiting
void Visit (decXmlVisitor *visitor)
 Visits this node.
Casting
virtual bool CanCastToElementDecl ()
 Determines if this element can be cast to decXmlElementDecl which is by default false.
virtual decXmlElementDeclCastToElementDecl ()
 Safely casts this element to decXmlElementDecl or throwns an exception otherwise.

Detailed Description

XML Element Declaration.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Member Enumeration Documentation

Content type enumeration.

Enumerator:
ectEmpty 

Element has to be empty.

ectAny 

Any element is valid.

ectMixed 

Mixed content is valid.

ectComposed 

Composed content is valid.

ECT_COUNT 

Dummy entry representing the count of content types.


Constructor & Destructor Documentation

decXmlElementDecl::decXmlElementDecl ( const char *  name )

Creates a new xml element declaration.

decXmlElementDecl::~decXmlElementDecl (  )

Cleans up the xml element declaration.


Member Function Documentation

virtual bool decXmlElementDecl::CanCastToElementDecl (  ) [virtual]

Determines if this element can be cast to decXmlElementDecl which is by default false.

Reimplemented from decXmlElement.

virtual decXmlElementDecl* decXmlElementDecl::CastToElementDecl (  ) [virtual]

Safely casts this element to decXmlElementDecl or throwns an exception otherwise.

Reimplemented from decXmlElement.

int decXmlElementDecl::GetContentType (  ) const [inline]
const char* decXmlElementDecl::GetName (  ) const [inline]
void decXmlElementDecl::SetContentType ( int  contentType )
void decXmlElementDecl::SetName ( const char *  name )
void decXmlElementDecl::Visit ( decXmlVisitor visitor ) [virtual]

Visits this node.

Reimplemented from decXmlContainer.


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