src.gov.nasa.worldwind.ogc.collada.ColladaProfileCommon 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 profile_COMMON element and provides access to its contents.
*
* @author pabercrombie
* @version $Id: ColladaProfileCommon.java 675 2012-07-02 18:47:47Z pabercrombie $
*/
public class ColladaProfileCommon extends ColladaAbstractParamContainer
{
/**
* Construct an instance.
*
* @param ns the qualifying namespace URI. May be null to indicate no namespace qualification.
*/
public ColladaProfileCommon(String ns)
{
super(ns);
}
/**
* Indicates the technique field of this profile.
*
* @return The value of the technique field, or null if the field is not set.
*/
public ColladaTechnique getTechnique()
{
return (ColladaTechnique) this.getField("technique");
}
/**
* Indicates the extra field of this profile.
*
* @return The value of the technique field, or null if the field is not set.
*/
public ColladaExtra getExtra()
{
return (ColladaExtra) this.getField("extra");
}
/** {@inheritDoc} */
@Override
public ColladaNewParam getParam(String sid)
{
ColladaNewParam param = super.getParam(sid);
if (param != null)
return param;
ColladaTechnique technique = this.getTechnique();
if (technique == null)
return null;
return technique.getParam(sid);
}
}