|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.value.basic.StringReference
@Immutable public class StringReference
A Reference
implementation that uses a single UUID
as the pointer.
Constructor Summary | |
---|---|
StringReference(String id)
|
|
StringReference(String id,
boolean weak)
|
Method Summary | |
---|---|
int |
compareTo(Reference that)
|
boolean |
equals(Object obj)
|
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 |
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 |
---|
public StringReference(String id)
public StringReference(String id, boolean weak)
Method Detail |
---|
public boolean isWeak()
Reference
isWeak
in interface Reference
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 used
Reference.getString()
public int hashCode()
hashCode
in class Object
public int compareTo(Reference that)
compareTo
in interface Comparable<Reference>
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |