src.gov.nasa.worldwind.ogc.collada.ColladaSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worldwindx Show documentation
Show all versions of worldwindx Show documentation
World Wind is a collection of components that interactively display 3D geographic information within Java applications or applets.
/*
* Copyright (C) 2012 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration.
* All Rights Reserved.
*/
package gov.nasa.worldwind.ogc.collada;
/**
* Represents the COLLADA source element and provides access to its contents.
*
* @author pabercrombie
* @version $Id: ColladaSource.java 654 2012-06-25 04:15:52Z pabercrombie $
*/
public class ColladaSource extends ColladaAbstractObject
{
/**
* Construct an instance.
*
* @param ns the qualifying namespace URI. May be null to indicate no namespace qualification.
*/
public ColladaSource(String ns)
{
super(ns);
}
/**
* Indicates the value of the accessor field of the technique_common field.
*
* @return The value of the accessor field, or null if either the accessor or technique_common
* is not set.
*/
public ColladaAccessor getAccessor()
{
// Handles only the COLLADA Common profile
ColladaTechniqueCommon technique = (ColladaTechniqueCommon) this.getField("technique_common");
if (technique == null)
return null;
return (ColladaAccessor) technique.getField("accessor");
}
}