atg.cortex
Class PropertyList

java.lang.Object
  extended by atg.cortex.PropertyList
Direct Known Subclasses:
ResultSetProcessor

public class PropertyList
extends java.lang.Object

This represents an ordered list of Property objects.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
PropertyList()
          Constructs a new PropertyList
 
Method Summary
 void addProperties(Property[] pProperties)
          Adds a list of properties.
 void addProperty(Property pProperty)
          Adds a new property to the list of properties.
 java.lang.Class getBeanClass()
          Returns the bean class referenced by the properties.
 java.lang.Class[] getBeanClasses()
          Returns the list of bean classes referenced by the properties
 Property[] getClassProperties(java.lang.Class pClass)
          Returns the list of Property objects that are associated with the specified class, specified property, or null if there are no columns mapped to that property.
 Property[] getProperties()
          Returns the list of properties as an array
 Property getProperty(int pIndex)
          Returns the Property at the given index
 int getPropertyCount()
          Returns the number of Property objects in the list
 int[] getPropertyToClassTable()
          Returns the table mapping property number to class number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values
Constructor Detail

PropertyList

public PropertyList()
Constructs a new PropertyList

Method Detail

addProperty

public void addProperty(Property pProperty)
Adds a new property to the list of properties. The property may be null.


addProperties

public void addProperties(Property[] pProperties)
Adds a list of properties.


getPropertyCount

public int getPropertyCount()
Returns the number of Property objects in the list


getProperty

public Property getProperty(int pIndex)
Returns the Property at the given index


getProperties

public Property[] getProperties()
Returns the list of properties as an array


getClassProperties

public Property[] getClassProperties(java.lang.Class pClass)
Returns the list of Property objects that are associated with the specified class, specified property, or null if there are no columns mapped to that property.


getBeanClasses

public java.lang.Class[] getBeanClasses()
Returns the list of bean classes referenced by the properties


getBeanClass

public java.lang.Class getBeanClass()
Returns the bean class referenced by the properties. If the properties reference more than one bean class, then only one of the classes is returned.


getPropertyToClassTable

public int[] getPropertyToClassTable()
Returns the table mapping property number to class number. The property number is the same number that is passed to getProperty(), and the class number is the index into the array returned by getBeanClasses().