cl::utfsm::acs::types::AcsComplexType Class Reference

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

List of all members.

Public Member Functions

 AcsComplexType (String namespace, String name, String documentation)
void addAttr (AcsAttribute attr)
ArrayList< String > getAttrNames ()
AcsSimpleType getAttrType (String myName)
String getAttrUse (String myName)

Public Attributes

ArrayList< AcsAttributeattrs

Detailed Description

This is a complex type, because contains an Arraylist with attributes. The main idea of this class is to setup a ComplexType for a complex object with not only a value, but with attributes.

Author:
Mauricio Araya (maray[at]inf.utfsm.cl)

Constructor & Destructor Documentation

cl::utfsm::acs::types::AcsComplexType::AcsComplexType ( String  namespace,
String  name,
String  documentation 
) [inline]

Fill the common AcsType values. Also initialize the ArrayList.

Parameters:
namespace Every type has a namespace
name The name of the type definition
documentation Some information of the type

References attrs.


Member Function Documentation

void cl::utfsm::acs::types::AcsComplexType::addAttr ( AcsAttribute  attr  )  [inline]
ArrayList<String> cl::utfsm::acs::types::AcsComplexType::getAttrNames (  )  [inline]

Get an Arraylist of the attributes names.

Returns:
An Arraylist of attributes names

References attrs.

Referenced by cl::utfsm::acs::types::ComplexObject::ComplexObject(), cl::utfsm::acs::types::AcsComplexTypeTEST::testEmpty(), and cl::utfsm::acs::types::AcsComplexTypeTEST::testNames().

AcsSimpleType cl::utfsm::acs::types::AcsComplexType::getAttrType ( String  myName  )  [inline]

Return an attribute type by name.

Parameters:
myName the name of the attribute
Returns:
An attribute type, and null if myName was not found.

References attrs.

Referenced by cl::utfsm::acs::types::ComplexObject::ComplexObject(), cl::utfsm::acs::types::AcsComplexTypeTEST::testEmpty(), and cl::utfsm::acs::types::AcsComplexTypeTEST::testUseAndType().

String cl::utfsm::acs::types::AcsComplexType::getAttrUse ( String  myName  )  [inline]

Return the usage information of an attribute

Parameters:
myName the name of the attribute
Returns:
the string with the usage information, and null if myName was not found.

References attrs.

Referenced by cl::utfsm::acs::types::AcsComplexTypeTEST::testEmpty(), and cl::utfsm::acs::types::AcsComplexTypeTEST::testUseAndType().


Member Data Documentation

An Arraylist with the attributes.

Referenced by AcsComplexType(), addAttr(), getAttrNames(), getAttrType(), and getAttrUse().


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

Generated by  doxygen 1.6.2