@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()
Reference
public boolean isSimple()
Reference
public NodeKey getNodeKey()
public String getString()
Reference
default encoder
is used to encode characters in the
reference.getString
in interface Reference
Reference.getString(TextEncoder)
public String getString(TextEncoder encoder)
Reference
getString
in interface Reference
encoder
- the encoder to use, or null if the default encoder
should be usedReference.getString()
public boolean isWeak()
Reference
public int compareTo(Reference that)
compareTo
in interface Comparable<Reference>
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.