@Immutable public class UuidReference extends Object implements Reference
Reference implementation that uses a single UUID as the pointer.
//TODO author=Horia Chiorean date=5/18/12 description=Decide if this reference implementation is still needed| Constructor and Description |
|---|
UuidReference(UUID uuid) |
UuidReference(UUID uuid,
boolean weak) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
UUID |
getUuid() |
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() |
public UuidReference(UUID uuid)
public UuidReference(UUID uuid, boolean weak)
public UUID getUuid()
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 boolean isSimple()
Referencepublic boolean isForeign()
Referencepublic int compareTo(Reference that)
compareTo in interface Comparable<Reference>Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.