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

no.kith.xmlstds.ENCAttribute Maven / Gradle / Ivy

There is a newer version: 4.2.0
Show newest version
/*
 * An XML attribute type.
 * Localname: ENC
 * Namespace: http://www.kith.no/xmlstds
 * Java type: no.kith.xmlstds.ENCAttribute
 *
 * Automatically generated - do not modify.
 */
package no.kith.xmlstds;

import org.apache.xmlbeans.impl.schema.ElementFactory;
import org.apache.xmlbeans.impl.schema.AbstractDocumentFactory;
import org.apache.xmlbeans.impl.schema.DocumentFactory;
import org.apache.xmlbeans.impl.schema.SimpleTypeFactory;


/**
 * A document containing one ENC(@http://www.kith.no/xmlstds) attribute.
 *
 * This is a complex type.
 */
public interface ENCAttribute extends org.apache.xmlbeans.XmlObject {
    DocumentFactory Factory = new DocumentFactory<>(io.github.mjhaugsdal.system.m96.x20180701.TypeSystemHolder.typeSystem, "enc3a9dattrtypetype");
    org.apache.xmlbeans.SchemaType type = Factory.getType();


    /**
     * Gets the "ENC" attribute
     */
    no.kith.xmlstds.ENCAttribute.ENC.Enum getENC();

    /**
     * Gets (as xml) the "ENC" attribute
     */
    no.kith.xmlstds.ENCAttribute.ENC xgetENC();

    /**
     * True if has "ENC" attribute
     */
    boolean isSetENC();

    /**
     * Sets the "ENC" attribute
     */
    void setENC(no.kith.xmlstds.ENCAttribute.ENC.Enum enc);

    /**
     * Sets (as xml) the "ENC" attribute
     */
    void xsetENC(no.kith.xmlstds.ENCAttribute.ENC enc);

    /**
     * Unsets the "ENC" attribute
     */
    void unsetENC();

    /**
     * An XML ENC(@http://www.kith.no/xmlstds).
     *
     * This is an atomic type that is a restriction of no.kith.xmlstds.ENCAttribute$ENC.
     */
    public interface ENC extends org.apache.xmlbeans.XmlNMTOKEN {
        ElementFactory Factory = new ElementFactory<>(io.github.mjhaugsdal.system.m96.x20180701.TypeSystemHolder.typeSystem, "enc31abattrtype");
        org.apache.xmlbeans.SchemaType type = Factory.getType();


        org.apache.xmlbeans.StringEnumAbstractBase getEnumValue();
        void setEnumValue(org.apache.xmlbeans.StringEnumAbstractBase e);

        Enum B_64 = Enum.forString("B64");
        Enum TXT = Enum.forString("TXT");

        int INT_B_64 = Enum.INT_B_64;
        int INT_TXT = Enum.INT_TXT;

        /**
         * Enumeration value class for no.kith.xmlstds.ENCAttribute$ENC.
         * These enum values can be used as follows:
         * 
         * enum.toString(); // returns the string value of the enum
         * enum.intValue(); // returns an int value, useful for switches
         * // e.g., case Enum.INT_B_64
         * Enum.forString(s); // returns the enum value for a string
         * Enum.forInt(i); // returns the enum value for an int
         * 
* Enumeration objects are immutable singleton objects that * can be compared using == object equality. They have no * public constructor. See the constants defined within this * class for all the valid values. */ final class Enum extends org.apache.xmlbeans.StringEnumAbstractBase { /** * Returns the enum value for a string, or null if none. */ public static Enum forString(java.lang.String s) { return (Enum)table.forString(s); } /** * Returns the enum value corresponding to an int, or null if none. */ public static Enum forInt(int i) { return (Enum)table.forInt(i); } private Enum(java.lang.String s, int i) { super(s, i); } static final int INT_B_64 = 1; static final int INT_TXT = 2; public static final org.apache.xmlbeans.StringEnumAbstractBase.Table table = new org.apache.xmlbeans.StringEnumAbstractBase.Table(new Enum[] { new Enum("B64", INT_B_64), new Enum("TXT", INT_TXT), }); private static final long serialVersionUID = 1L; private java.lang.Object readResolve() { return forInt(intValue()); } } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy