Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cl::utfsm::acs::xml::CommonSchema Class Reference

Inheritance diagram for cl::utfsm::acs::xml::CommonSchema:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CommonSchema ()
void searchSimpleTypes (Document doc, String namespace)
AcsAttribute readAttribute (Node one)
String readDocumentation (Node anno)
void searchComplexTypes (Document doc, String namespace)
AcsType getType (String name)

Protected Attributes

DOMParser parser
Document commonTypes
ArrayList< AcsTypetypeList

Static Protected Attributes

String COMMON_TYPES = "commontypes.xsd"

Detailed Description

The common schema reads the COMMON_TYPES schema file, and setup general types definitions. The main purpose of this class is to have the information of the schema files centralized in a schema class. This object automatically parse the schema file and save all the simple and complex types into an internal Arraylist.
Author:
Mauricio Araya (maray[at]inf.utfsm.cl)


Constructor & Destructor Documentation

cl::utfsm::acs::xml::CommonSchema::CommonSchema  )  [inline]
 

Parse the schema file and initialize the class. Also adds basic types from the classic schema definition.

TODO: add all the classic schema definitions


Member Function Documentation

AcsType cl::utfsm::acs::xml::CommonSchema::getType String  name  )  [inline]
 

Get a type (simple or complex) by name.

Parameters:
name the name of the type
Returns:
the type, or null if not found.

AcsAttribute cl::utfsm::acs::xml::CommonSchema::readAttribute Node  one  )  [inline]
 

Read a DOM attribute node and return a new AcsAttribute object

Parameters:
node the DOM attribute node
Returns:
A new AcsAttribute object from the node

String cl::utfsm::acs::xml::CommonSchema::readDocumentation Node  anno  )  [inline]
 

Read a DOM annotation node with documentation, and return the string documentation.

Parameters:
anno the DOM node
Returns:
The String with the documentation

void cl::utfsm::acs::xml::CommonSchema::searchComplexTypes Document  doc,
String  namespace
[inline]
 

Search for ComplexTypes in the parsed document and add them to the Arraylist. This class is unstable, and untested. I asure that works with the commontypes file only.

Parameters:
doc The DOM document to search
namespace The namespace that those types should have

void cl::utfsm::acs::xml::CommonSchema::searchSimpleTypes Document  doc,
String  namespace
[inline]
 

Search for SimpleTypes in the parsed document and add them to the Arraylist.

Parameters:
doc The DOM document to search
namespace The namespace that those types should have


Member Data Documentation

String cl::utfsm::acs::xml::CommonSchema::COMMON_TYPES = "commontypes.xsd" [static, protected]
 

The common types schema filename

Document cl::utfsm::acs::xml::CommonSchema::commonTypes [protected]
 

The DOM Document object.

DOMParser cl::utfsm::acs::xml::CommonSchema::parser [protected]
 

The local DOM parser reference

ArrayList<AcsType> cl::utfsm::acs::xml::CommonSchema::typeList [protected]
 

The list of types on the schema


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:09:59 2009 for ACS Java API by doxygen 1.3.8