Package 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
Fields Modifier and Type Field Description 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
Constructors Constructor Description ColladaAbstractInstance(java.lang.String ns)
Create an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get()
Retrieves the target resource for this instance.java.lang.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, setNamespaceURI, setParent
-
-
-
-
Field Detail
-
instance
protected T instance
Resolved target of the link.
-
-
Method Detail
-
getUrl
public java.lang.String getUrl()
Indicates the URL of the target resource.- Returns:
- URL field.
-
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.
-
-