

Public Member Functions | |
| ComplexObject (AcsComplexType type) | |
| void | setAttributeValue (String name, String value) |
| String | getAttributeValue (String name) |
| SimpleObject | getAttribute (String name) |
| TreeMap< String, SimpleObject > | getAttributes () |
Protected Attributes | |
| AcsComplexType | cType |
| TreeMap< String, SimpleObject > | attributes |
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.
| cl::utfsm::acs::types::ComplexObject::ComplexObject | ( | AcsComplexType | type | ) | [inline] |
Setup the type, and with it creates the TreeMap entries.
| 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().
| SimpleObject cl::utfsm::acs::types::ComplexObject::getAttribute | ( | String | name | ) | [inline] |
Get an attribute object by name.
| name | the attribute name |
References attributes.
| TreeMap<String,SimpleObject> cl::utfsm::acs::types::ComplexObject::getAttributes | ( | ) | [inline] |
Return the attributes TreeMap.
References attributes.
Referenced by cl::utfsm::acs::ebe::util::EbeTableModel::EbeTableModel(), cl::utfsm::acs::ebe::EbeDocument::fillAttributes(), and cl::utfsm::acs::types::ComplexObjectTEST::testAttributes().
| String cl::utfsm::acs::types::ComplexObject::getAttributeValue | ( | String | name | ) | [inline] |
Get directly the value of a given attribute.
| name | the attribute name |
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] |
Set an attribute value, by name.
| name | the name of the attribute to setup. | |
| value | the string value to setup. |
References 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::ErrorBrowserEditor::getAddMemmberButton(), cl::utfsm::acs::ebe::ErrorBrowserEditor::getNewCompletionMenuItem(), cl::utfsm::acs::ebe::ErrorBrowserEditor::getNewErrorMenuItem(), cl::utfsm::acs::ebe::EbeDocument::readNode(), cl::utfsm::acs::ebe::EbeDocument::setDocumentInfo(), cl::utfsm::acs::ebe::util::MembersTableModel::setValueAt(), cl::utfsm::acs::types::ComplexObjectTEST::testAttrValues(), and cl::utfsm::acs::ebe::EbeDocumentTEST::testSave().
TreeMap<String,SimpleObject> cl::utfsm::acs::types::ComplexObject::attributes [protected] |
The attribute TreeMap, that containes SimpleObjects
Referenced by ComplexObject(), getAttribute(), getAttributes(), getAttributeValue(), and setAttributeValue().
The complex type.
Referenced by ComplexObject().
1.6.2