|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcontext.arch.storage.Attribute
context.arch.storage.AttributeFunction
This class is a container for an attribute name, a function, subAttributes (used for structures - STRUCT) and type.
| Field Summary | |
protected AttributeFunctions |
afs
|
static java.lang.String |
ATTRIBUTE
Tag for an attribute |
static java.lang.String |
ATTRIBUTE_FUNCTION
Tag for an attribute function object |
protected java.lang.String |
function
|
static java.lang.String |
FUNCTION
Tag for an attribute function |
static java.lang.String |
FUNCTION_AVG
Tag for AVG function |
static java.lang.String |
FUNCTION_COUNT
Tag for COUNT function |
static java.lang.String |
FUNCTION_MAX
Tag for MAX function |
static java.lang.String |
FUNCTION_MIN
Tag for MIN function |
static java.lang.String |
FUNCTION_NONE
Tag for default function - none |
static java.lang.String |
FUNCTION_SUM
Tag for SUM function |
| Fields inherited from class context.arch.storage.Attribute |
ATTRIBUTE_TYPE, attributes, DEFAULT_TYPE, DOUBLE, FLOAT, INT, LONG, name, SHORT, STRING, STRUCT, type |
| Constructor Summary | |
AttributeFunction()
Empty constructor |
|
AttributeFunction(DataObject af)
Constructor that takes a DataObject as input. |
|
AttributeFunction(java.lang.String name)
Constructor that takes only a name |
|
AttributeFunction(java.lang.String name,
AttributeFunctions afs,
java.lang.String type)
Constructor that takes a name, value, and type |
|
AttributeFunction(java.lang.String name,
AttributeFunctions afs,
java.lang.String type,
java.lang.String function)
Constructor that takes a name, value, and type |
|
AttributeFunction(java.lang.String name,
java.lang.String function)
Constructor that takes only a name and a function |
|
| Method Summary | |
java.lang.String |
getFunction()
Returns the function of an attribute |
AttributeFunctions |
getSubAttributeFunctions()
Returns the subAttributes of the stored attribute |
void |
setFunction(java.lang.String function)
Sets the function of an attribute |
void |
setSubAttributes(AttributeFunctions afs)
Sets the subAttributes of this attribute |
DataObject |
toDataObject()
Converts this object to a DataObject. |
java.lang.String |
toString()
A printable version of this class. |
| Methods inherited from class context.arch.storage.Attribute |
compareTo, getName, getSubAttributes, getType, setName, setSubAttributes, setType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected AttributeFunctions afs
protected java.lang.String function
public static final java.lang.String ATTRIBUTE_FUNCTION
public static final java.lang.String FUNCTION
public static final java.lang.String ATTRIBUTE
public static final java.lang.String FUNCTION_NONE
public static final java.lang.String FUNCTION_MAX
public static final java.lang.String FUNCTION_MIN
public static final java.lang.String FUNCTION_COUNT
public static final java.lang.String FUNCTION_AVG
public static final java.lang.String FUNCTION_SUM
| Constructor Detail |
public AttributeFunction()
public AttributeFunction(java.lang.String name)
name - Name of attribute to store
public AttributeFunction(java.lang.String name,
java.lang.String function)
name - Name of attribute to storefunction - Function to execute on attribute
public AttributeFunction(java.lang.String name,
AttributeFunctions afs,
java.lang.String type)
name - Name of attribute to storeafs - subAttributes of this attributetype - Datatype of attribute to store
public AttributeFunction(java.lang.String name,
AttributeFunctions afs,
java.lang.String type,
java.lang.String function)
name - Name of attribute to storeafs - subAttributes of this attributetype - Datatype of attribute to storefunction - Function to execute on attributepublic AttributeFunction(DataObject af)
| Method Detail |
public DataObject toDataObject()
toDataObject in class Attributepublic void setSubAttributes(AttributeFunctions afs)
afs - subAttributes of the attribute to storepublic void setFunction(java.lang.String function)
function - Function to act on the attributepublic AttributeFunctions getSubAttributeFunctions()
public java.lang.String getFunction()
public java.lang.String toString()
toString in class Attribute
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||