|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection java.util.AbstractList java.util.Vector context.arch.storage.AttributeFunctions
This class is a container for a group of related attributes and functions. AttributeFunctions can be added, removed, and found in the container.
Field Summary | |
static java.lang.String |
ALL
Tag to indicate all attributes are to be used |
static java.lang.String |
ATTRIBUTE_FUNCTIONS
Tag for attributes |
static char |
SEPARATOR
Connector for nested attributes |
static java.lang.String |
SEPARATOR_STRING
Connector for nested attributes - String |
Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
AttributeFunctions()
Empty constructor |
|
AttributeFunctions(DataObject data)
Constructor that takes a DataObject as a parameter. |
Method Summary | |
void |
addAttributeFunction(AttributeFunction att)
Adds the given AttributeFunction object to the container. |
void |
addAttributeFunction(java.lang.String name)
Adds the given attribute name. |
void |
addAttributeFunction(java.lang.String name,
AttributeFunctions attributes)
Adds the given attribute name and value to the container. |
void |
addAttributeFunction(java.lang.String name,
AttributeFunctions attributes,
java.lang.String type)
Adds the given attribute name, subAttributes and type to the container |
void |
addAttributeFunction(java.lang.String name,
AttributeFunctions attributes,
java.lang.String type,
java.lang.String function)
Adds the given attribute name, subAttributes and type to the container |
void |
addAttributeFunction(java.lang.String name,
java.lang.String type)
Adds the given attribute name and data type |
void |
addAttributeFunction(java.lang.String name,
java.lang.String type,
java.lang.String function)
Adds the given attribute name and data type and function |
void |
addAttributeFunctions(AttributeFunctions atts)
Adds the given AttributeFunctions object to the container. |
AttributeFunction |
getAttributeFunction(java.lang.String name)
This method returns the AttributeFunction with the given name from this list of AttributeFunctions. |
AttributeFunction |
getAttributeFunction(java.lang.String name,
java.lang.String prefix)
This method returns the AttributeFunction with the given name from this list of AttributeFunctions. |
AttributeFunction |
getAttributeFunctionAt(int index)
Returns the AttributeFunction object at the given index |
AttributeFunctions |
getSubset(AttributeFunctions atts)
This method takes a DataObject containing the list of attributes (names) wanted and it filters all the rest out from this AttributeFunctions object. |
boolean |
hasAttributeFunction(AttributeFunction att)
Determines whether the given AttributeFunction object is in the container |
boolean |
hasAttributeFunction(java.lang.String name,
AttributeFunctions attributes)
Determines whether the given attribute name and subAttributes are in the container, using the default datatype. |
boolean |
hasAttributeFunction(java.lang.String name,
AttributeFunctions attributes,
java.lang.String type)
Determines whether the given attribute name, subAttributes and type are in the container, |
int |
indexOfAttributeFunction(AttributeFunction att)
Returns the index at which the AttributeFunction object occurs |
int |
indexOfAttributeFunction(java.lang.String name,
AttributeFunctions attributes)
Returns the index at which the given attribute name and subAttributes occurs, using the default datatype |
int |
indexOfAttributeFunction(java.lang.String name,
AttributeFunctions attributes,
java.lang.String type)
Returns the index at which the given attribute name, subAttributes and type occurs. |
int |
numAttributeFunctions()
Returns the number of AttributeFunctions in the container return the number of AttributeFunctions in the container |
java.lang.String |
toAString()
A printable version of this class. |
DataObject |
toDataObject()
Converts to a DataObject. |
Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
Field Detail |
public static final char SEPARATOR
public static final java.lang.String SEPARATOR_STRING
public static final java.lang.String ATTRIBUTE_FUNCTIONS
public static final java.lang.String ALL
Constructor Detail |
public AttributeFunctions()
public AttributeFunctions(DataObject data)
data
- DataObject that contains the attribute name (and possibly type and function) infoMethod Detail |
public DataObject toDataObject()
public void addAttributeFunction(AttributeFunction att)
att
- AttributeFunction to addpublic void addAttributeFunction(java.lang.String name)
name
- Name of the attribute to addpublic void addAttributeFunction(java.lang.String name, java.lang.String type)
name
- Name of the attribute to addtype
- Datatype of the attribute to addpublic void addAttributeFunction(java.lang.String name, java.lang.String type, java.lang.String function)
name
- Name of the attribute to addtype
- Datatype of the attribute to addfunction
- Function of the attribute to addpublic void addAttributeFunction(java.lang.String name, AttributeFunctions attributes)
name
- Name of the attribute to addattributes
- SubAttributes of the attribute to addpublic void addAttributeFunction(java.lang.String name, AttributeFunctions attributes, java.lang.String type)
name
- Name of the attribute to addattributes
- SubAttributes of the attribute to addtype
- Datatype of the attribute to addpublic void addAttributeFunction(java.lang.String name, AttributeFunctions attributes, java.lang.String type, java.lang.String function)
name
- Name of the attribute to addattributes
- SubAttributes of the attribute to addtype
- Datatype of the attribute to addfunction
- Function of the attribute to addpublic void addAttributeFunctions(AttributeFunctions atts)
atts
- Attributes to addpublic AttributeFunction getAttributeFunctionAt(int index)
index
- Index into the container
public boolean hasAttributeFunction(AttributeFunction att)
att
- AttributeFunction to check
public boolean hasAttributeFunction(java.lang.String name, AttributeFunctions attributes)
name
- Name of the attribute to checkattributes
- SubAttributes of the attribute to check
public boolean hasAttributeFunction(java.lang.String name, AttributeFunctions attributes, java.lang.String type)
name
- Name of the attribute to checkattributes
- SubAttributes of the attribute to checktype
- Datatype of the attribute to check
public int indexOfAttributeFunction(AttributeFunction att)
att
- AttributeFunction to look for
public int indexOfAttributeFunction(java.lang.String name, AttributeFunctions attributes)
name
- Name of the attribute to look forattributes
- SubAttributes of the attribute to look for
public int indexOfAttributeFunction(java.lang.String name, AttributeFunctions attributes, java.lang.String type)
name
- Name of the attribute to look forattributes
- SubAttributes of the attribute to look fortype
- Datatype of the attribute to look for
public int numAttributeFunctions()
public AttributeFunction getAttributeFunction(java.lang.String name)
name
- of the AttributeFunction to return
public AttributeFunction getAttributeFunction(java.lang.String name, java.lang.String prefix)
name
- of the AttributeFunction to returnprefix
- Structure name to use
public AttributeFunctions getSubset(AttributeFunctions atts)
atts
- AttributeFunctions object containing the attributes to return
public java.lang.String toAString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |