@Immutable public class NodeKeyReference extends Object implements Reference
| Modifier | Constructor and Description |
|---|---|
protected |
NodeKeyReference(NodeKey key,
boolean weak,
boolean foreign) |
protected |
NodeKeyReference(NodeKey key,
boolean weak,
boolean foreign,
boolean simple) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Reference that) |
boolean |
equals(Object obj) |
NodeKey |
getNodeKey() |
String |
getString()
Get the string form of the Reference.
|
String |
getString(TextEncoder encoder)
Get the encoded string form of the Reference, using the supplied encoder to encode characters in the reference.
|
int |
hashCode() |
boolean |
isForeign()
Determine whether this reference is a reference to a node which belongs to another source as the owning node.
|
boolean |
isSimple()
Determine whether this reference is a uni-directional reference
|
boolean |
isWeak()
Determine whether this reference is considered a weak reference.
|
String |
toString() |
protected NodeKeyReference(NodeKey key, boolean weak, boolean foreign)
protected NodeKeyReference(NodeKey key, boolean weak, boolean foreign, boolean simple)
public boolean isForeign()
Referencepublic boolean isSimple()
Referencepublic NodeKey getNodeKey()
public String getString()
Referencedefault encoder is used to encode characters in the
reference.getString in interface ReferenceReference.getString(TextEncoder)public String getString(TextEncoder encoder)
ReferencegetString in interface Referenceencoder - the encoder to use, or null if the default encoder should be usedReference.getString()public boolean isWeak()
Referencepublic int compareTo(Reference that)
compareTo in interface Comparable<Reference>Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.