Interface AggregateObject
- All Superinterfaces:
DataObject
,PropertyHandler
- All Known Implementing Classes:
AggregateObjectImpl
An AggregateObject represents an collection of attribute value pairs.
A detailed description can be found in the AggregateClass
.
- Author:
- Rainer Maximini
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns an unmodifiable map of all attributes and values of this aggregate.Returns a collection of all attribute names.getAttributeValue
(String name) The method returns the value for a specific Attribute, which can be a subclass ofDataObject
.boolean
hasAttributeValue
(String string) Checks if the aggregate object contains an attribute with the given name whose value is not nullboolean
isEmpty()
Checks, if the aggregate object contains any values.void
setAttributeValue
(String name, DataObject value) Sets a value for the given attribute.int
size()
Returns the size of the underlying map of attributes.Methods inherited from interface de.uni_trier.wi2.procake.data.object.DataObject
assertSameValueAsIn, copy, getDataClass, getId, getModel, hasClassName, hasSameValueAsIn, hasSystemClassName, isAggregate, isAtomic, isBoolean, isByteArray, isChronologic, isCollection, isDataflowWrapper, isDataReference, isDate, isDouble, isInteger, isInterval, isKindOf, isList, isMemberOf, isNESTConstraintEdge, isNESTControlflowEdge, isNESTControlflowNode, isNESTDataflowEdge, isNESTDataNode, isNESTEdge, isNESTGraph, isNESTNode, isNESTPartOfEdge, isNESTSequenceNode, isNESTSequentialWorkflow, isNESTSubWorkflowNode, isNESTTaskNode, isNESTWorkflow, isNESTWorkflowNode, isNode, isNumeric, isSequence, isSet, isString, isSubWorkflow, isTask, isTime, isTimestamp, isUnion, isURI, isVoid, isWorkflow, removeId, setDataClass, setId, toDetailedString, toXML
Methods inherited from interface de.uni_trier.wi2.procake.data.PropertyHandler
addProperty, addProperty, getAllProperties, getAllPropertyNodes, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasProperties, removeProperty, setPropertyRootNode
-
Field Details
-
LOG_CREATING_VOID_OBJECT_FAILED
- See Also:
-
LOG_SET_ATTRIBUTE_TYPE_CONFLICT
- See Also:
-
LOG_UNKOWN_ATTRIBUTE
- See Also:
-
-
Method Details
-
getAggregateClass
AggregateClass getAggregateClass() -
getAttributeValue
The method returns the value for a specific Attribute, which can be a subclass ofDataObject
. If the given AggregateObject doesn't contain the attribute, null will be returned.- Parameters:
name
- the name of the requested attribute- Returns:
- the DataObject value of the requested attribute name.
-
resolveAttributeClass
- Throws:
ProCAKENoSuchAttributeException
-
resolveAttributeValue
- Throws:
ProCAKENoSuchAttributeException
-
setAttributeValue
void setAttributeValue(String name, DataObject value) throws ProCAKEInvalidTypeException, ProCAKENoSuchAttributeException Sets a value for the given attribute. Values can be removed by setting null.- Parameters:
name
- An existing attribute name for the AggregateObject.value
- A new DataObject object that matches to the specified type, a VoidObject object, or null.- Throws:
ProCAKEInvalidTypeException
- if the types of the given value and the attribute doesn't matchProCAKENoSuchAttributeException
- if the AggregateObject doesn't contain a attribute with this name
-
getAttributeMap
Map<String,DataObject> getAttributeMap()Returns an unmodifiable map of all attributes and values of this aggregate.- Returns:
- an unmodifiable map of all attributes and values
-
isEmpty
boolean isEmpty()Checks, if the aggregate object contains any values.- Returns:
-
hasAttributeValue
Checks if the aggregate object contains an attribute with the given name whose value is not null- Parameters:
string
- the name of the attribute- Returns:
-
getAttributeNames
Collection<String> getAttributeNames()Returns a collection of all attribute names.- Returns:
- a collection of all attribute names
-
size
int size()Returns the size of the underlying map of attributes.- Returns:
- the number of attributes
-