no.kith.xmlstds.COMPNAttribute Maven / Gradle / Ivy
/*
* An XML attribute type.
* Localname: COMPN
* Namespace: http://www.kith.no/xmlstds
* Java type: no.kith.xmlstds.COMPNAttribute
*
* 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 COMPN(@http://www.kith.no/xmlstds) attribute.
*
* This is a complex type.
*/
public interface COMPNAttribute extends org.apache.xmlbeans.XmlObject {
DocumentFactory Factory = new DocumentFactory<>(io.github.mjhaugsdal.system.m922.x20131015.TypeSystemHolder.typeSystem, "compna658attrtypetype");
org.apache.xmlbeans.SchemaType type = Factory.getType();
/**
* Gets the "COMPN" attribute
*/
no.kith.xmlstds.COMPNAttribute.COMPN.Enum getCOMPN();
/**
* Gets (as xml) the "COMPN" attribute
*/
no.kith.xmlstds.COMPNAttribute.COMPN xgetCOMPN();
/**
* True if has "COMPN" attribute
*/
boolean isSetCOMPN();
/**
* Sets the "COMPN" attribute
*/
void setCOMPN(no.kith.xmlstds.COMPNAttribute.COMPN.Enum compn);
/**
* Sets (as xml) the "COMPN" attribute
*/
void xsetCOMPN(no.kith.xmlstds.COMPNAttribute.COMPN compn);
/**
* Unsets the "COMPN" attribute
*/
void unsetCOMPN();
/**
* An XML COMPN(@http://www.kith.no/xmlstds).
*
* This is an atomic type that is a restriction of no.kith.xmlstds.COMPNAttribute$COMPN.
*/
public interface COMPN extends org.apache.xmlbeans.XmlToken {
ElementFactory Factory = new ElementFactory<>(io.github.mjhaugsdal.system.m922.x20131015.TypeSystemHolder.typeSystem, "compn4e61attrtype");
org.apache.xmlbeans.SchemaType type = Factory.getType();
org.apache.xmlbeans.StringEnumAbstractBase getEnumValue();
void setEnumValue(org.apache.xmlbeans.StringEnumAbstractBase e);
Enum DF = Enum.forString("DF");
Enum GZ = Enum.forString("GZ");
Enum ZL = Enum.forString("ZL");
Enum Z = Enum.forString("Z");
int INT_DF = Enum.INT_DF;
int INT_GZ = Enum.INT_GZ;
int INT_ZL = Enum.INT_ZL;
int INT_Z = Enum.INT_Z;
/**
* Enumeration value class for no.kith.xmlstds.COMPNAttribute$COMPN.
* 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_DF
* 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_DF = 1;
static final int INT_GZ = 2;
static final int INT_ZL = 3;
static final int INT_Z = 4;
public static final org.apache.xmlbeans.StringEnumAbstractBase.Table table =
new org.apache.xmlbeans.StringEnumAbstractBase.Table(new Enum[] {
new Enum("DF", INT_DF),
new Enum("GZ", INT_GZ),
new Enum("ZL", INT_ZL),
new Enum("Z", INT_Z),
});
private static final long serialVersionUID = 1L;
private java.lang.Object readResolve() {
return forInt(intValue());
}
}
}
}