NASA World Wind

gov.nasa.worldwind.ogc.collada
Class ColladaAbstractInstance<T>

java.lang.Object
  extended by gov.nasa.worldwind.util.xml.AbstractXMLEventParser
      extended by gov.nasa.worldwind.ogc.collada.ColladaAbstractObject
          extended by gov.nasa.worldwind.ogc.collada.ColladaAbstractInstance<T>
All Implemented Interfaces:
XMLEventParser
Direct Known Subclasses:
ColladaInstanceEffect, ColladaInstanceGeometry, ColladaInstanceMaterial, ColladaInstanceNode, ColladaInstanceVisualScene

public abstract class ColladaAbstractInstance<T>
extends ColladaAbstractObject

Represents the COLLADA Instance element. An Instance is a pointer to an element in a COLLADA document. The Instance may target another element in the current COLLADA document, or an element in a remote document.


Field Summary
protected  T instance
          Resolved target of the link.
 
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
 
Constructor Summary
ColladaAbstractInstance(String ns)
          Create an instance.
 
Method Summary
 T get()
          Retrieves the target resource for this instance.
 String getUrl()
          Indicates the URL of the target resource.
 
Methods inherited from class gov.nasa.worldwind.ogc.collada.ColladaAbstractObject
getLocalExtent, getRoot
 
Methods inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
allocate, doAddCharacters, doAddEventAttribute, doAddEventContent, doParseEventAttributes, doParseEventContent, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parse, parseCharacterContent, removeField, setField, setField, setFields, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected T instance
Resolved target of the link.

Constructor Detail

ColladaAbstractInstance

public ColladaAbstractInstance(String ns)
Create an instance.

Parameters:
ns - Namespace.
Method Detail

get

public T get()
Retrieves the target resource for this instance. Calling this method will cause the instance to resolve the linked resource. If the resource is external it may not be available immediately, in which case this method returns null.

Returns:
The linked resource, or null if the resource is not available.

getUrl

public String getUrl()
Indicates the URL of the target resource.

Returns:
URL field.

NASA World Wind