no.kith.xmlstds.NULLAttribute Maven / Gradle / Ivy
/*
* An XML attribute type.
* Localname: NULL
* Namespace: http://www.kith.no/xmlstds
* Java type: no.kith.xmlstds.NULLAttribute
*
* 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 NULL(@http://www.kith.no/xmlstds) attribute.
*
* This is a complex type.
*/
public interface NULLAttribute extends org.apache.xmlbeans.XmlObject {
DocumentFactory Factory = new DocumentFactory<>(io.github.mjhaugsdal.system.m96.x20180701.TypeSystemHolder.typeSystem, "nullb53aattrtypetype");
org.apache.xmlbeans.SchemaType type = Factory.getType();
/**
* Gets the "NULL" attribute
*/
no.kith.xmlstds.NULLAttribute.NULL.Enum getNULL();
/**
* Gets (as xml) the "NULL" attribute
*/
no.kith.xmlstds.NULLAttribute.NULL xgetNULL();
/**
* True if has "NULL" attribute
*/
boolean isSetNULL();
/**
* Sets the "NULL" attribute
*/
void setNULL(no.kith.xmlstds.NULLAttribute.NULL.Enum xnull);
/**
* Sets (as xml) the "NULL" attribute
*/
void xsetNULL(no.kith.xmlstds.NULLAttribute.NULL xnull);
/**
* Unsets the "NULL" attribute
*/
void unsetNULL();
/**
* An XML NULL(@http://www.kith.no/xmlstds).
*
* This is an atomic type that is a restriction of no.kith.xmlstds.NULLAttribute$NULL.
*/
public interface NULL extends org.apache.xmlbeans.XmlNMTOKEN {
ElementFactory Factory = new ElementFactory<>(io.github.mjhaugsdal.system.m96.x20180701.TypeSystemHolder.typeSystem, "null7111attrtype");
org.apache.xmlbeans.SchemaType type = Factory.getType();
org.apache.xmlbeans.StringEnumAbstractBase getEnumValue();
void setEnumValue(org.apache.xmlbeans.StringEnumAbstractBase e);
Enum NI = Enum.forString("NI");
Enum NA = Enum.forString("NA");
Enum UNK = Enum.forString("UNK");
Enum NASK = Enum.forString("NASK");
Enum ASKU = Enum.forString("ASKU");
Enum NAV = Enum.forString("NAV");
Enum OTH = Enum.forString("OTH");
Enum PINF = Enum.forString("PINF");
Enum NINF = Enum.forString("NINF");
int INT_NI = Enum.INT_NI;
int INT_NA = Enum.INT_NA;
int INT_UNK = Enum.INT_UNK;
int INT_NASK = Enum.INT_NASK;
int INT_ASKU = Enum.INT_ASKU;
int INT_NAV = Enum.INT_NAV;
int INT_OTH = Enum.INT_OTH;
int INT_PINF = Enum.INT_PINF;
int INT_NINF = Enum.INT_NINF;
/**
* Enumeration value class for no.kith.xmlstds.NULLAttribute$NULL.
* 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_NI
* 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_NI = 1;
static final int INT_NA = 2;
static final int INT_UNK = 3;
static final int INT_NASK = 4;
static final int INT_ASKU = 5;
static final int INT_NAV = 6;
static final int INT_OTH = 7;
static final int INT_PINF = 8;
static final int INT_NINF = 9;
public static final org.apache.xmlbeans.StringEnumAbstractBase.Table table =
new org.apache.xmlbeans.StringEnumAbstractBase.Table(new Enum[] {
new Enum("NI", INT_NI),
new Enum("NA", INT_NA),
new Enum("UNK", INT_UNK),
new Enum("NASK", INT_NASK),
new Enum("ASKU", INT_ASKU),
new Enum("NAV", INT_NAV),
new Enum("OTH", INT_OTH),
new Enum("PINF", INT_PINF),
new Enum("NINF", INT_NINF),
});
private static final long serialVersionUID = 1L;
private java.lang.Object readResolve() {
return forInt(intValue());
}
}
}
}