|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--context.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 | |
static java.lang.String |
ATTRIBUTE
Tag for an attribute |
static java.lang.String |
ATTRIBUTE_FUNCTION
Tag for an attribute function object |
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,
ATTRIBUTE_TYPE,
DEFAULT_TYPE,
DOUBLE,
FLOAT,
INT,
LONG,
SHORT,
STRING,
STRUCT |
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 |
java.lang.String |
getName()
Returns the name of the stored attribute |
AttributeFunctions |
getSubAttributeFunctions()
Returns the subAttributes of the stored attribute |
java.lang.String |
getType()
Returns the datatype of the attribute |
void |
setFunction(java.lang.String function)
Sets the function of an attribute |
void |
setName(java.lang.String name)
Sets the name of an attribute |
void |
setSubAttributes(AttributeFunctions afs)
Sets the subAttributes of this attribute |
void |
setType(java.lang.String type)
Sets the datatype of an 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 |
getSubAttributes,
setSubAttributes |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
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 storepublic AttributeFunction(java.lang.String name, java.lang.String function)
name
- Name of attribute to storefunction
- Function to execute on attributepublic 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 storepublic 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)
attribute
- DataObject containing the attribute infoMethod Detail |
public DataObject toDataObject()
public void setName(java.lang.String name)
name
- Name of the attribute to storepublic void setSubAttributes(AttributeFunctions afs)
afs
- subAttributes of the attribute to storepublic void setType(java.lang.String type)
type
- Datatype of the attribute to storepublic void setFunction(java.lang.String function)
function
- Function to act on the attributepublic java.lang.String getName()
public AttributeFunctions getSubAttributeFunctions()
public java.lang.String getType()
public java.lang.String getFunction()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |