|
ModeShape Distribution 3.5.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.jcr.value.basic.NodeKeyReference
@Immutable public class NodeKeyReference
A Reference implementation that uses a single NodeKey as the pointer.
| Constructor Summary | |
|---|---|
protected |
NodeKeyReference(NodeKey key,
boolean weak,
boolean foreign)
|
protected |
NodeKeyReference(NodeKey key,
boolean weak,
boolean foreign,
boolean simple)
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected NodeKeyReference(NodeKey key,
boolean weak,
boolean foreign)
protected NodeKeyReference(NodeKey key,
boolean weak,
boolean foreign,
boolean simple)
| Method Detail |
|---|
public boolean isForeign()
Reference
isForeign in interface Referencepublic boolean isSimple()
Reference
isSimple in interface 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)
Reference
getString in interface Referenceencoder - the encoder to use, or null if the default encoder should be used
Reference.getString()public boolean isWeak()
Reference
isWeak in interface Referencepublic int hashCode()
hashCode in class Objectpublic int compareTo(Reference that)
compareTo in interface Comparable<Reference>public boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
ModeShape Distribution 3.5.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||