/**
 * gles_texcombiner_argument_index_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.SchemaInteger;

public class gles_texcombiner_argument_index_type extends SchemaInteger {

    private static final long serialVersionUID = 1L;

    public gles_texcombiner_argument_index_type() {
        super();
    }

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

    public gles_texcombiner_argument_index_type(SchemaInteger newValue) {
        super(newValue);
        validate();
    }

    public void validate() {

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

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

    public SchemaInteger getMaxInclusive() {
        return new SchemaInteger("2");
    }

    public SchemaInteger getMinInclusive() {
        return new SchemaInteger("0");
    }
}
