gov.nasa.worldwind.ogc.collada
Class ColladaAbstractInstance<T>
java.lang.Object
gov.nasa.worldwind.util.xml.AbstractXMLEventParser
gov.nasa.worldwind.ogc.collada.ColladaAbstractObject
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. |
|
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.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 |
instance
protected T instance
- Resolved target of the link.
ColladaAbstractInstance
public ColladaAbstractInstance(String ns)
- Create an instance.
- Parameters:
ns - Namespace.
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.