ponderToolkit.compiler.codeGen.policyObjects
Class TypesList

java.lang.Object
  |
  +--ponderToolkit.compiler.codeGen.policyObjects.TypesList
All Implemented Interfaces:
java.io.Serializable, TypesListI

public class TypesList
extends java.lang.Object
implements TypesListI, java.io.Serializable

Function: Models a list of Composite Policy Type Names.

See Also:
Serialized Form

Constructor Summary
TypesList()
          Constructor.
TypesList(java.util.LinkedList newLinkedList)
          Constructor from a given LinkedList of Type-names
 
Method Summary
 void addType(java.lang.String newType)
          Add a new Type
 int getSize()
           
 java.lang.String getString()
          Return a String representation of the List
 java.lang.String getTypeNameAt(int pos)
          Get the Name of the type at position: pos.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypesList

public TypesList()
Constructor. Empty Types List

TypesList

public TypesList(java.util.LinkedList newLinkedList)
Constructor from a given LinkedList of Type-names
Method Detail

getTypeNameAt

public java.lang.String getTypeNameAt(int pos)
Get the Name of the type at position: pos.
Specified by:
getTypeNameAt in interface TypesListI

getSize

public int getSize()
Specified by:
getSize in interface TypesListI
Returns:
The size of the list

addType

public void addType(java.lang.String newType)
Add a new Type
Specified by:
addType in interface TypesListI
Parameters:
newType - A String for the new Type

getString

public java.lang.String getString()
Return a String representation of the List
Specified by:
getString in interface TypesListI