public interface Reference<T extends Referenceable>
Note: Client code should always check for brokeness before access the referenced.
Modifier and Type | Method and Description |
---|---|
T |
get() |
String |
getRefString() |
Class<T> |
getType()
Returns type of the referenced.
|
boolean |
isBroken()
Returns true if the reference cannot be resolved in the current document
|
boolean |
references(T target)
Returns true if this reference refers to target.
|
T get()
boolean isBroken()
boolean references(T target)
Note: In some implementation, this method could be more efficient than invoking #get() for direct checking.
String getRefString()