org.ipdr.xdr
Class CompositeAttributeDescriptor

java.lang.Object
  extended by org.ipdr.xdr.AttributeDescriptor
      extended by org.ipdr.xdr.CompositeAttributeDescriptor

public class CompositeAttributeDescriptor
extends AttributeDescriptor

The CompositeAttributeDescriptor is a structure to hold a Composite Attribute Descriptor. It contains a list of Attribute Descriptors, the child elements of the Composite Element.


Field Summary
protected  java.util.ArrayList listAttributeDescriptor_
          To store List of Attribute Descriptors.
 
Fields inherited from class org.ipdr.xdr.AttributeDescriptor
attributeName_, maxLength_, typeCode_
 
Constructor Summary
CompositeAttributeDescriptor(java.lang.String name, int code, int len)
          Constructor.
 
Method Summary
 boolean addAttributeDescriptor(AttributeDescriptor element)
          Method to add an Attribute Descriptor into the list.
 java.util.ArrayList getListAttributeDescriptors()
          Method to add get all Attribute Descriptors from the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listAttributeDescriptor_

protected java.util.ArrayList listAttributeDescriptor_
To store List of Attribute Descriptors.

Constructor Detail

CompositeAttributeDescriptor

public CompositeAttributeDescriptor(java.lang.String name,
                                    int code,
                                    int len)
Constructor. Derived from base AttributeDescriptor class

Parameters:
name - Name of the attribute
code - Type code of the attribute
len - Max Length of the attribute
Method Detail

addAttributeDescriptor

public boolean addAttributeDescriptor(AttributeDescriptor element)
Method to add an Attribute Descriptor into the list.

Parameters:
element - Attribute Descriptor to add
Returns:
True/False depending on Success/Fail

getListAttributeDescriptors

public java.util.ArrayList getListAttributeDescriptors()
Method to add get all Attribute Descriptors from the list.

Returns:
List of Attribute Descriptors