Package org.vanted.indexednodes
Class IndexAttribute
java.lang.Object
org.graffiti.attributes.AbstractAttribute
org.vanted.indexednodes.IndexAttribute
- All Implemented Interfaces:
Attribute
,DeepCopy
,Displayable
public class IndexAttribute extends AbstractAttribute
Stores indices for nodes to allow fast index finding.
- Since:
- 2.8
- Author:
- Benjamin Moser
-
Field Summary
-
Method Summary
Modifier and Type Method Description Object
copy()
Returns a deep copy of this object.Object
getValue()
Returns the value of thisAttribute
.void
setDefaultValue()
The attribute's value is set so that itsgetValue()
method will not returnnull
.Methods inherited from class org.graffiti.attributes.AbstractAttribute
addEdgeAttributeType, addNodeAttributeType, getAttributable, getDescription, getIcon, getId, getName, getParent, getPath, getTypedAttribute, isDeleted, isTypedAttributeFromID, setDeleted, setDescription, setId, setParent, setValue, toString, toString, toXMLString
-
Method Details
-
setDefaultValue
public void setDefaultValue()Description copied from interface:Attribute
The attribute's value is set so that itsgetValue()
method will not returnnull
. -
getValue
Description copied from interface:Attribute
Returns the value of thisAttribute
. If the value is set viaatt.setValue(x)
and then retrieved viay = att.getValue()
it is only guaranteed that x.equals(y) not x==y, i.e. some particular implementations can provide x==y but this behaviour is not general, in contrast x.equals(y) must be always guaranteed. See documentation of particular implementations of this interface for exact specification of this method's behaviour!- Returns:
- the value of this
Attribute
.
-
copy
Description copied from interface:DeepCopy
Returns a deep copy of this object.- Returns:
- A deep copy of this object.
-