org.simantics.databoard.accessor.reference
Class ArrayIndexReference
java.lang.Object
org.simantics.databoard.accessor.reference.AccessorReference
org.simantics.databoard.accessor.reference.ArrayIndexReference
- All Implemented Interfaces:
- java.lang.Cloneable
public class ArrayIndexReference
- extends AccessorReference
Array element
"i-/"
Methods inherited from class org.simantics.databoard.accessor.reference.AccessorReference |
compile, concatenate, getChildReference, hasChildReference, parseBinary, parseString, setChildReference, tail, toPath, toPath, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
index
public int index
ArrayIndexReference
public ArrayIndexReference(int index)
ArrayIndexReference
public ArrayIndexReference(int index,
AccessorReference child)
toString
public java.lang.String toString(boolean labelReference)
- Description copied from class:
AccessorReference
- Convert the reference into string representation.
If labelReference
is true, the string representation is
more user readable but has weaker typing. It serializes into
instances of LabelReference.
For instance Record Field Reference is "n-Children", but label reference "Children".
Some references cannot be converted into LabelReference.
E.g. string representation of FieldNameReference("i-5") is ambiguous with ArrayIndexReference(5).
- Specified by:
toString
in class AccessorReference
- Parameters:
labelReference
- if true returns
- Returns:
- string representation
getIndex
public int getIndex()
setIndex
public void setIndex(int index)
clone
public AccessorReference clone()
- Specified by:
clone
in class AccessorReference
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object