|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.gml.GMLReference<T>
T
- type of the referenced objectpublic class GMLReference<T extends GMLObject>
Represents a reference to a GMLObject
, corresponds to a GML property with an xlink:href
attribute.
Constructor Summary | |
---|---|
GMLReference(GMLReferenceResolver resolver,
java.lang.String uri,
java.lang.String baseURL)
Creates a new GMLReference instance. |
Method Summary | |
---|---|
GMLStdProps |
getGMLProperties()
Returns the standard GML properties (e.g. |
java.lang.String |
getId()
Returns the id of the object. |
T |
getReferencedObject()
Returns the referenced GMLObject instance (may trigger resolving and fetching it). |
java.lang.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 GMLReference(GMLReferenceResolver resolver, java.lang.String uri, java.lang.String baseURL)
GMLReference
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 java.lang.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
GMLObject
instance (may trigger resolving and fetching it).
GMLObject
instance
ReferenceResolvingException
- if the reference cannot be resolvedpublic java.lang.String getId()
GMLObject
getId
in interface GMLObject
null
if it doesn't have an idpublic GMLStdProps getGMLProperties()
GMLObject
gml:name
).
getGMLProperties
in interface GMLObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |