deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.gml
Class GMLReference<T extends GMLObject>

java.lang.Object
  extended by org.deegree.gml.GMLReference<T>
Type Parameters:
T - type of the referenced object
All Implemented Interfaces:
GMLObject
Direct Known Subclasses:
FeatureReference, GeometryReference

public class GMLReference<T extends GMLObject>
extends Object
implements GMLObject

Represents a reference to a GMLObject, corresponds to a GML property with an xlink:href attribute (may be document-local or remote).

Version:
$Revision: 21659 $, $Date: 2009-12-23 14:29:54 +0100 (Mi, 23 Dez 2009) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
GMLReference(GMLReferenceResolver resolver, String uri, String baseURL)
          Creates a new GMLReference instance.
 
Method Summary
 GMLStdProps getGMLProperties()
          Returns the standard GML properties (e.g.
 String getId()
          Returns the id of the object.
 T getReferencedObject()
          Returns the referenced GMLObject instance (may trigger resolving and fetching it).
 String getURI()
          Returns the URI of the object.
 boolean isLocal()
          Returns whether the URI is local, i.e. if it starts with the # character.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMLReference

public GMLReference(GMLReferenceResolver resolver,
                    String uri,
                    String baseURL)
Creates a new GMLReference instance.

Parameters:
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

getURI

public String getURI()
Returns the URI of the object.

Returns:
the URI of the object, never null

isLocal

public boolean isLocal()
Returns whether the URI is local, i.e. if it starts with the # character.

Returns:
true, if the URI is local, false otherwise

getReferencedObject

public T getReferencedObject()
                                        throws ReferenceResolvingException
Returns the referenced GMLObject instance (may trigger resolving and fetching it).

Returns:
the referenced GMLObject instance
Throws:
ReferenceResolvingException - if the reference cannot be resolved

getId

public String getId()
Description copied from interface: GMLObject
Returns the id of the object.

Specified by:
getId in interface GMLObject
Returns:
the id of the object, or null if it doesn't have an id

getGMLProperties

public GMLStdProps getGMLProperties()
Description copied from interface: GMLObject
Returns the standard GML properties (e.g. gml:name).

Specified by:
getGMLProperties in interface GMLObject
Returns:
the standard GML properties, may be

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>