|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.commons.tom.Reference<T>
T - type of the referenced objectpublic class Reference<T extends Object>
Represents a lazy reference to an Object.
| Constructor Summary | |
|---|---|
Reference(ReferenceResolver resolver,
String uri,
String baseURL)
Creates a new Reference instance. |
|
| Method Summary | |
|---|---|
String |
getId()
Returns the id of the object. |
T |
getReferencedObject()
Returns the referenced Object instance (may trigger resolving and fetching it). |
String |
getURI()
Returns the URI of the object. |
boolean |
isLocal()
|
boolean |
isResolved()
Returns whether the reference has been resolved. |
void |
resolve(T object)
Sets the referenced object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Reference(ReferenceResolver resolver,
String uri,
String baseURL)
Reference instance.
resolver - used for resolving the reference, must not be nulluri - the object's uri, must not be nullbaseURL - base URL for resolving the uri, may be null (no resolving of relative URLs)| Method Detail |
|---|
public String getURI()
nullpublic boolean isResolved()
public boolean isLocal()
public void resolve(T object)
object - the referenced object, may be null
public T getReferencedObject()
throws ReferenceResolvingException
Object instance (may trigger resolving and fetching it).
Object instance
ReferenceResolvingException - if the reference cannot be resolvedpublic String getId()
Object
getId in interface Objectnull if it doesn't have an id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||