@Immutable public class StringReference extends Object implements Reference
| Constructor and Description |
|---|
StringReference(String id) |
StringReference(String id,
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.
|
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 StringReference(String id)
public StringReference(String id, boolean weak)
public boolean isWeak()
Referencepublic boolean isSimple()
Referencepublic boolean isForeign()
Referencepublic 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 int compareTo(Reference that)
compareTo in interface Comparable<Reference>Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.