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

org.exolab.castor.mapping.xml.types.BindXmlNodeType Maven / Gradle / Ivy

Go to download

The core XML data binding framework with support for marshalling Java objects to and unmarshalling from XML documents.

The newest version!
/*
 * This class was automatically generated with 
 * Castor 1.3.1, using an XML
 * Schema.
 * $Id$
 */

package org.exolab.castor.mapping.xml.types;

/**
 * Enumeration BindXmlNodeType.
 * 
 * @version $Revision$ $Date$
 */
public enum BindXmlNodeType {


      //------------------/
     //- Enum Constants -/
    //------------------/

    /**
     * Constant ATTRIBUTE
     */
    ATTRIBUTE("attribute"),
    /**
     * Constant ELEMENT
     */
    ELEMENT("element"),
    /**
     * Constant NAMESPACE
     */
    NAMESPACE("namespace"),
    /**
     * Constant TEXT
     */
    TEXT("text");

      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * Field value.
     */
    private final java.lang.String value;

    /**
     * Field enumConstants.
     */
    private static final java.util.Map enumConstants = new java.util.HashMap();


    static {
        for (BindXmlNodeType c: BindXmlNodeType.values()) {
            BindXmlNodeType.enumConstants.put(c.value, c);
        }

    };


      //----------------/
     //- Constructors -/
    //----------------/

    private BindXmlNodeType(final java.lang.String value) {
        this.value = value;
    }


      //-----------/
     //- Methods -/
    //-----------/

    /**
     * Method fromValue.
     * 
     * @param value
     * @return the constant for this value
     */
    public static org.exolab.castor.mapping.xml.types.BindXmlNodeType fromValue(
            final java.lang.String value) {
        BindXmlNodeType c = BindXmlNodeType.enumConstants.get(value);
        if (c != null) {
            return c;
        }
        throw new IllegalArgumentException(value);
    }

    /**
     * 
     * 
     * @param value
     */
    public void setValue(
            final java.lang.String value) {
    }

    /**
     * Method toString.
     * 
     * @return the value of this constant
     */
    public java.lang.String toString(
    ) {
        return this.value;
    }

    /**
     * Method value.
     * 
     * @return the value of this constant
     */
    public java.lang.String value(
    ) {
        return this.value;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy