All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.gov.nasa.worldwind.ogc.collada.ColladaProfileCommon Maven / Gradle / Ivy

Go to download

World Wind is a collection of components that interactively display 3D geographic information within Java applications or applets.

There is a newer version: 2.0.0-986
Show newest version
/*
 * 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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy