Public Member Functions | Public Attributes

cl.utfsm.acs.types.AcsComplexType Class Reference

Inheritance diagram for cl.utfsm.acs.types.AcsComplexType:
cl.utfsm.acs.types.AcsType

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 
)

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 cl.utfsm.acs.types.AcsComplexType.attrs.


Member Function Documentation

void cl.utfsm.acs.types.AcsComplexType.addAttr ( AcsAttribute  attr  ) 

Add an Attribute to the Arraylist.

Parameters:
attr The attribute to add

References cl.utfsm.acs.types.AcsComplexType.attrs.

Referenced by cl.utfsm.acs.ebe.ErrorSchema.fillSchema(), and cl.utfsm.acs.xml.CommonSchema.searchComplexTypes().

ArrayList<String> cl.utfsm.acs.types.AcsComplexType.getAttrNames (  ) 

Get an Arraylist of the attributes names.

Returns:
An Arraylist of attributes names

References cl.utfsm.acs.types.AcsComplexType.attrs.

Referenced by cl.utfsm.acs.types.ComplexObject.ComplexObject().

AcsSimpleType cl.utfsm.acs.types.AcsComplexType.getAttrType ( String  myName  ) 

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 cl.utfsm.acs.types.AcsComplexType.attrs.

Referenced by cl.utfsm.acs.types.ComplexObject.ComplexObject().

String cl.utfsm.acs.types.AcsComplexType.getAttrUse ( String  myName  ) 

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 cl.utfsm.acs.types.AcsComplexType.attrs.


Member Data Documentation


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