/**
 * gl_alpha_value_type.java This file was generated by XMLSpy 2006sp2 Enterprise
 * Edition. YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE OVERWRITTEN WHEN
 * YOU RE-RUN CODE GENERATION. Refer to the XMLSpy Documentation for further
 * details. http://www.altova.com/xmlspy
 */

package com.jmex.model.collada.schema;

import com.jmex.model.collada.types.SchemaFloat;

public class gl_alpha_value_type extends SchemaFloat {

    private static final long serialVersionUID = 1L;

    public gl_alpha_value_type() {
        super();
    }

    public gl_alpha_value_type(String newValue) {
        super(newValue);
        validate();
    }

    public gl_alpha_value_type(SchemaFloat newValue) {
        super(newValue);
        validate();
    }

    public void validate() {

        if (compareTo(getMaxInclusive()) > 0)
            throw new com.jmex.model.collada.xml.XmlException(
                    "Value of gl_alpha_value_type is out of range.");

        if (compareTo(getMinInclusive()) < 0)
            throw new com.jmex.model.collada.xml.XmlException(
                    "Value of gl_alpha_value_type is out of range.");
    }

    public SchemaFloat getMaxInclusive() {
        return new SchemaFloat("1.0");
    }

    public SchemaFloat getMinInclusive() {
        return new SchemaFloat("0.0");
    }
}
