|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 null
uri
- the object's uri, must not be null
baseURL
- base URL for resolving the uri, may be null
(no resolving of relative URLs)Method Detail |
---|
public String getURI()
null
public 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 Object
null
if it doesn't have an id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |