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

cl::utfsm::acs::types::ComplexObject Class Reference

Inheritance diagram for cl::utfsm::acs::types::ComplexObject:

Inheritance graph
[legend]
Collaboration diagram for cl::utfsm::acs::types::ComplexObject:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ComplexObject (AcsComplexType type)
void setAttributeValue (String name, String value)
String getAttributeValue (String name)
SimpleObject getAttribute (String name)
TreeMap< String, SimpleObjectgetAttributes ()

Protected Attributes

AcsComplexType cType
TreeMap< String, SimpleObjectattributes

Detailed Description

A complex object is a TypedObject that implements AcsComplexType definitions. This means, that has attributes defined in the AcsComplexType implemented here as TreeMaps. Why TreeMaps?, that is a good question, maybe an Arraylist is enought, but currently ErrorBrowserEditor application use TreeMaps for "historical" reasons.
Author:
Mauricio Araya (maray[at]inf.utfsm.cl)


Constructor & Destructor Documentation

cl::utfsm::acs::types::ComplexObject::ComplexObject AcsComplexType  type  )  [inline]
 

Setup the type, and with it creates the TreeMap entries.

Parameters:
type A complex type


Member Function Documentation

SimpleObject cl::utfsm::acs::types::ComplexObject::getAttribute String  name  )  [inline]
 

Get an attribute object by name.

Parameters:
name the attribute name
Returns:
the AcsAttribute object.

TreeMap<String,SimpleObject> cl::utfsm::acs::types::ComplexObject::getAttributes  )  [inline]
 

Return the attributes TreeMap.

Returns:
the attributes TreeMap.

String cl::utfsm::acs::types::ComplexObject::getAttributeValue String  name  )  [inline]
 

Get directly the value of a given attribute.

Parameters:
name the attribute name
Returns:
the string value of the attribute, or else null.

void cl::utfsm::acs::types::ComplexObject::setAttributeValue String  name,
String  value
[inline]
 

Set an attribute value, by name.

Parameters:
name the name of the attribute to setup.
value the string value to setup.


Member Data Documentation

TreeMap<String,SimpleObject> cl::utfsm::acs::types::ComplexObject::attributes [protected]
 

The attribute TreeMap, that containes SimpleObjects

AcsComplexType cl::utfsm::acs::types::ComplexObject::cType [protected]
 

The complex type.


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