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

References attributes, cType, cl::utfsm::acs::types::AcsComplexType::getAttrNames(), cl::utfsm::acs::types::AcsComplexType::getAttrType(), and cl::utfsm::acs::types::TypedObject::setValue().


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.

References attributes.

TreeMap<String,SimpleObject> cl::utfsm::acs::types::ComplexObject::getAttributes (  )  [inline]
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.

References attributes, and cl::utfsm::acs::types::TypedObject::getValue().

Referenced by cl::utfsm::acs::ebe::EbeDocument::fillAttributes(), cl::utfsm::acs::types::ComplexObjectTEST::testAttrValues(), and cl::utfsm::acs::ebe::EbeDocumentTEST::testLoad().

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

Member Data Documentation

The attribute TreeMap, that containes SimpleObjects

Referenced by ComplexObject(), getAttribute(), getAttributes(), getAttributeValue(), and setAttributeValue().

The complex type.

Referenced by ComplexObject().


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

Generated by  doxygen 1.6.2