public class AnnotatedNode<A> extends NodeWrapper
Node but wich can be annotated with
some extra information. This information can be retrieved by getAnnotation(java.lang.String), or as a
matter of convience in e.g. JSPs using getValue(java.lang.String) with a field name starting with "annotation:".nodeCLOUD_COMMITNODE_KEY| Constructor and Description |
|---|
AnnotatedNode(Node n) |
| Modifier and Type | Method and Description |
|---|---|
A |
getAnnotation(String a) |
Object |
getValue(String fieldName)
Returns the value of the specified field as an object.
|
A |
putAnnotation(String a,
A o) |
cancel, commit, compareTo, countRelatedNodes, countRelatedNodes, countRelations, countRelations, createAlias, createParameters, createRelation, delete, delete, deleteAlias, deleteRelations, deleteRelations, equals, getAliases, getBooleanValue, getByteValue, getChanged, getCloud, getContext, getDateValue, getDecimalValue, getDoubleValue, getFieldValue, getFieldValue, getFloatValue, getFunction, getFunctions, getFunctionValue, getInputStreamValue, getIntValue, getListValue, getLongValue, getNode, getNodeManager, getNodeValue, getNumber, getObjectValue, getPossibleContexts, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getRelations, getRelations, getSize, getStringValue, getValueWithoutProcess, getXMLValue, getXMLValue, hashCode, hasRelations, isChanged, isChanged, isNew, isNodeManager, isNull, isRelation, isRelationManager, mayChangeContext, mayDelete, mayWrite, setBooleanValue, setByteValue, setContext, setDateValue, setDecimalValue, setDoubleValue, setFloatValue, setInputStreamValue, setIntValue, setListValue, setLongValue, setNodeManager, setNodeValue, setObjectValue, setStringValue, setValue, setValueWithoutProcess, setXMLValue, toNodeManager, toRelation, toRelationManager, toString, validatepublic AnnotatedNode(Node n)
public Object getValue(String fieldName)
Nodeint is returned as an Integer.
The object type may vary and is dependent on how data was stored in a field.
I.e. It may be possible for an Integer field to return it's value as a String
if it was stored that way in the first place.getValue in interface NodegetValue in class NodeWrapperfieldName - the name of the field to be returnedMMBase 1.9-SNAPSHOT - ${javadoctimestamp}