Public Member Functions | Protected Attributes

cl.utfsm.acs.types.ComplexObject Class Reference

Inheritance diagram for cl.utfsm.acs.types.ComplexObject:
cl.utfsm.acs.types.TypedObject cl.utfsm.acs.ebe.Completion cl.utfsm.acs.ebe.EbeDocument cl.utfsm.acs.ebe.Error cl.utfsm.acs.ebe.Member

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  ) 

Member Function Documentation

SimpleObject cl.utfsm.acs.types.ComplexObject.getAttribute ( String  name  ) 

Get an attribute object by name.

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

References cl.utfsm.acs.types.ComplexObject.attributes.

TreeMap<String,SimpleObject> cl.utfsm.acs.types.ComplexObject.getAttributes (  ) 

Return the attributes TreeMap.

Returns:
the attributes TreeMap.

References cl.utfsm.acs.types.ComplexObject.attributes.

Referenced by cl.utfsm.acs.ebe.util.EbeTableModel.EbeTableModel().

String cl.utfsm.acs.types.ComplexObject.getAttributeValue ( String  name  ) 

Get directly the value of a given attribute.

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

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

void cl.utfsm.acs.types.ComplexObject.setAttributeValue ( String  name,
String  value 
)

Set an attribute value, by name.

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

References cl.utfsm.acs.types.ComplexObject.attributes, cl.utfsm.acs.types.AcsType.name, cl.utfsm.acs.types.TypedObject.setValue(), and cl.utfsm.acs.types.TypedObject.type.

Referenced by cl.utfsm.acs.ebe.EbeDocument.setDocumentInfo(), and cl.utfsm.acs.ebe.util.MembersTableModel.setValueAt().


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties