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

cl::utfsm::acs::ebe::EbeDocument Class Reference

Inheritance diagram for cl::utfsm::acs::ebe::EbeDocument:

Inheritance graph
[legend]
Collaboration diagram for cl::utfsm::acs::ebe::EbeDocument:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EbeDocument ()
void setPath (String path)
String getPath ()
void load ()
void save () throws FileNotFoundException, IOException
void putNode (ComplexObject obj)
TreeMap< String, ComplexObjectgetNodes ()
ComplexObject getNode (String name)
void setDocumentInfo (String _prefix, String xsi, String xsiNamespace, String xsiLocation, String name)
void setDocumentInfo (String name)

Static Public Member Functions

void setClassType (AcsComplexType t)
AcsComplexType getClassType ()

Protected Attributes

TreeMap< String, ComplexObjectnodes

Static Protected Attributes

AcsComplexType typeType

Private Member Functions

void readNode (Node no, ComplexObject obj)
void fillAttributes (ComplexObject obj, Element toFill)
void saveXmlDocument (Document docu, String name) throws FileNotFoundException, java.io.IOException

Private Attributes

String path
Document doc

Static Private Attributes

DOMParser parser

Detailed Description

Error Browser and Editor Document object. This object is the representation of a document (and a file). This is the start point for any client. Each document is a ComplexObject, as all its contents.
Author:
Mauricio Araya (maray[at]inf.utfsm.cl)


Constructor & Destructor Documentation

cl::utfsm::acs::ebe::EbeDocument::EbeDocument  )  [inline]
 

Initialize a new EbeDocument


Member Function Documentation

void cl::utfsm::acs::ebe::EbeDocument::fillAttributes ComplexObject  obj,
Element  toFill
[inline, private]
 

Fill a DOM Element from a ComplexObject (for save)

Parameters:
obj the ComplexObject with attributes
toFill the DOM element to fill

AcsComplexType cl::utfsm::acs::ebe::EbeDocument::getClassType  )  [inline, static]
 

The class type getter

ComplexObject cl::utfsm::acs::ebe::EbeDocument::getNode String  name  )  [inline]
 

Get a node by name

Parameters:
name a name to get the node
Returns:
a ComplexNode

TreeMap<String,ComplexObject> cl::utfsm::acs::ebe::EbeDocument::getNodes  )  [inline]
 

Get the nodes (completion/error) TreeMap

Returns:
the nodes TreeMap

String cl::utfsm::acs::ebe::EbeDocument::getPath  )  [inline]
 

Get the current filename Path

Returns:
the path

void cl::utfsm::acs::ebe::EbeDocument::load  )  [inline]
 

Load the data from the selected path

void cl::utfsm::acs::ebe::EbeDocument::putNode ComplexObject  obj  )  [inline]
 

Add a node (completion/error) to the document

Parameters:
obj the Object to add

void cl::utfsm::acs::ebe::EbeDocument::readNode Node  no,
ComplexObject  obj
[inline, private]
 

Read the node into a ComplexObject

Parameters:
no the DOM node to read
obj the Complex Object to fill

void cl::utfsm::acs::ebe::EbeDocument::save  )  throws FileNotFoundException, IOException [inline]
 

Save the data to the selected path

Exceptions:
IOException 
FileNotFoundException 

void cl::utfsm::acs::ebe::EbeDocument::saveXmlDocument Document  docu,
String  name
throws FileNotFoundException, java.io.IOException [inline, private]
 

Save the DOM document into the name path

Parameters:
docu The DOM document
name the filename path

void cl::utfsm::acs::ebe::EbeDocument::setClassType AcsComplexType  t  )  [inline, static]
 

The class type setter

void cl::utfsm::acs::ebe::EbeDocument::setDocumentInfo String  name  )  [inline]
 

Set the basic document info defaults

Parameters:
name the document name

void cl::utfsm::acs::ebe::EbeDocument::setDocumentInfo String  _prefix,
String  xsi,
String  xsiNamespace,
String  xsiLocation,
String  name
[inline]
 

Set the basic document info

Parameters:
_prefix prefix (like alma)
xsi xsi info
xsiLocation the xsi location
name the document name

void cl::utfsm::acs::ebe::EbeDocument::setPath String  path  )  [inline]
 

Set the Path of the Document

Parameters:
path the absolute path to the file


Member Data Documentation

Document cl::utfsm::acs::ebe::EbeDocument::doc [private]
 

The DOM document

TreeMap<String,ComplexObject> cl::utfsm::acs::ebe::EbeDocument::nodes [protected]
 

The nodes (completions and errors) TreeMap

DOMParser cl::utfsm::acs::ebe::EbeDocument::parser [static, private]
 

The common DOM parser

String cl::utfsm::acs::ebe::EbeDocument::path [private]
 

The file path

AcsComplexType cl::utfsm::acs::ebe::EbeDocument::typeType [static, protected]
 

The class type


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