public class XmlUnionImpl extends XmlObjectBase implements XmlAnySimpleType
XmlAnySimpleType.Factory
_voorVc, KIND_SETTERHELPER_ARRAYITEM, KIND_SETTERHELPER_SINGLETON, MAJOR_VERSION_NUMBER, MINOR_VERSION_NUMBER
type
EQUAL, GREATER_THAN, LESS_THAN, NOT_EQUAL
Constructor and Description |
---|
XmlUnionImpl(SchemaType type,
boolean complex) |
Modifier and Type | Method and Description |
---|---|
protected String |
compute_text(NamespaceManager nsm)
This should return the canonical string value of the primitive.
|
protected boolean |
equal_to(XmlObject xmlobj) |
protected int |
get_wscanon_rule()
Returns the whitespace rule that will be applied before
building a string to pass to get_text().
|
BigDecimal |
getBigDecimalValue()
Returns the value as a
BigDecimal . |
BigInteger |
getBigIntegerValue()
Returns the value as a
BigInteger . |
boolean |
getBooleanValue()
Returns the value as a boolean.
|
byte[] |
getByteArrayValue()
Returns the value as a byte array.
|
byte |
getByteValue()
Returns the value as a byte.
|
Calendar |
getCalendarValue()
Returns the value as a
Calendar . |
Date |
getDateValue()
Returns the value as a
Date . |
double |
getDoubleValue()
Returns the value as a double.
|
StringEnumAbstractBase |
getEnumValue()
Returns the value as a
StringEnumAbstractBase . |
float |
getFloatValue()
Returns the value as a float.
|
GDate |
getGDateValue()
Returns the value as a
GDate . |
GDuration |
getGDurationValue()
Returns the value as a
GDuration . |
int |
getIntValue()
Returns the value as an int.
|
List<?> |
getListValue()
Returns the value as a
List of friendly Java objects (String, Integer, Byte, Short, Long, BigInteger, Decimal, Float, Double, byte[], Calendar, GDuration). |
long |
getLongValue()
Returns the value as a long.
|
QName |
getQNameValue()
Returns the value as a
QName . |
short |
getShortValue()
Returns the value as a short.
|
String |
getStringValue()
Returns the value as a
String . |
SchemaType |
instanceType()
The same as getSchemaType unless this is a union instance
or nil value.
|
protected boolean |
is_defaultable_ws(String v)
Types should return false if they don't treat the given
whitespace as a default value.
|
SchemaType |
schemaType() |
protected void |
set_b64(byte[] b) |
protected void |
set_BigDecimal(BigDecimal v) |
protected void |
set_BigInteger(BigInteger v) |
protected void |
set_boolean(boolean v) |
protected void |
set_byte(byte v) |
protected void |
set_ByteArray(byte[] b) |
protected void |
set_Calendar(Calendar c) |
protected void |
set_Date(Date d) |
protected void |
set_double(double v) |
protected void |
set_enum(StringEnumAbstractBase e) |
protected void |
set_float(float v) |
protected void |
set_GDate(GDateSpecification d) |
protected void |
set_GDuration(GDurationSpecification d) |
protected void |
set_hex(byte[] b) |
protected void |
set_int(int v) |
protected void |
set_list(List<?> v) |
protected void |
set_long(long v) |
protected void |
set_nil()
This should clear the value, and set it to whatever
is supposed to be returned when the value is nilled.
|
protected void |
set_QName(QName v) |
protected void |
set_short(short v) |
protected void |
set_text(String s)
This should set the value of the type from text,
or throw an XmlValueOutOfRangeException if it can't.
|
protected void |
set_xmldate(XmlObject v) |
protected void |
set_xmldatetime(XmlObject v) |
protected void |
set_xmldecimal(XmlObject v) |
protected void |
set_xmldouble(XmlObject v) |
protected void |
set_xmlduration(XmlObject v) |
protected void |
set_xmlfloat(XmlObject v) |
protected void |
set_xmlgday(XmlObject v) |
protected void |
set_xmlgmonth(XmlObject v) |
protected void |
set_xmlgmonthday(XmlObject v) |
protected void |
set_xmlgyear(XmlObject v) |
protected void |
set_xmlgyearmonth(XmlObject v) |
protected void |
set_xmltime(XmlObject v) |
protected void |
validate_simpleval(String lexical,
ValidationContext ctx) |
protected int |
value_hash_code() |
List<? extends XmlAnySimpleType> |
xgetListValue()
Returns the value as a
List of XmlAnySimpleType objects. |
_copy, _copy, _isComplexContent, _isComplexType, _set, _validateOnSet, attach_store, build_nil, build_text, changeType, check_dated, check_orphaned, compare_to, compareTo, compareValue, copy, copy, create_attribute_user, create_element_user, disconnect_store, documentProperties, dump, elementFlags, equals, execQuery, execQuery, generatedSetterHelperImpl, get_attribute_field, get_attribute_type, get_attributeflags, get_default_attribute_text, get_default_attribute_value, get_default_element_text, get_element_ending_delimiters, get_element_type, get_elementflags, get_schema_type, get_store, get_wscanon_text, getBooleanArray, getBooleanArray, getByteArray, getByteArray, getDomNode, getDoubleArray, getDoubleArray, getEnumArray, getEnumArray, getFloatArray, getFloatArray, getIntArray, getIntArray, getLongArray, getLongArray, getObjectArray, getObjectArray, getObjectValue, getShortArray, getShortArray, getXmlLocale, getXmlObjectArray, getXmlObjectArray, has_store, hashCode, init_flags, initComplexType, invalidate_element_order, invalidate_nilvalue, invalidate_value, is_child_element_order_sensitive, is_orphaned, isDefault, isDefaultable, isFixed, isImmutable, isInstanceOf, isNil, isNillable, java_value, monitor, new_visitor, newCursor, newCursorForce, newDomNode, newDomNode, newInputStream, newInputStream, newReader, newReader, newXMLStreamReader, newXMLStreamReader, save, save, save, save, save, save, save, save, selectAttribute, selectAttribute, selectAttributes, selectChildren, selectChildren, selectChildren, selectPath, selectPath, set_char, set_ComplexXml, set_newValue, set_notation, set_String, set_xmlanysimple, set, setBigDecimalValue, setBigIntegerValue, setBooleanValue, setByteArrayValue, setByteValue, setCalendarValue, setDateValue, setDoubleValue, setEnumValue, setFloatValue, setGDateValue, setGDateValue, setGDurationValue, setGDurationValue, setImmutable, setIntValue, setListValue, setLongValue, setNil, setObjectValue, setQNameValue, setShortValue, setStringValue, setValidateOnSet, substitute, toString, update_from_complex_content, uses_invalidate_value, validate_now, validate, validate, valueEquals, valueHashCode, writeReplace, xgetArray, xgetArray, xmlText, xmlText
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
setStringValue
changeType, compareTo, compareValue, copy, copy, execQuery, execQuery, isImmutable, isNil, selectAttribute, selectAttribute, selectAttributes, selectChildren, selectChildren, selectChildren, selectPath, selectPath, set, setNil, substitute, toString, validate, validate, valueEquals, valueHashCode
documentProperties, dump, getDomNode, monitor, newCursor, newDomNode, newDomNode, newInputStream, newInputStream, newReader, newReader, newXMLStreamReader, newXMLStreamReader, save, save, save, save, save, save, save, save, xmlText, xmlText
public XmlUnionImpl(SchemaType type, boolean complex)
public SchemaType schemaType()
schemaType
in interface XmlObject
schemaType
in class XmlObjectBase
public SchemaType instanceType()
SimpleValue
For unions, this returns the non-union consituent type of this instance. This type may change if setters are called that cause the instance to change to another constituent type of the union.
For nil values, this returns null.
instanceType
in interface SimpleValue
instanceType
in class XmlObjectBase
protected String compute_text(NamespaceManager nsm)
XmlObjectBase
compute_text
in class XmlObjectBase
protected boolean is_defaultable_ws(String v)
XmlObjectBase
is_defaultable_ws
in class XmlObjectBase
protected void set_text(String s)
XmlObjectBase
set_text
in class XmlObjectBase
protected void set_nil()
XmlObjectBase
set_nil
in class XmlObjectBase
protected int get_wscanon_rule()
XmlObjectBase
Overridden by subclasses that don't need their text for set_text canonicalized; perhaps they already implement scanners that can deal with whitespace, and they know they have no regex pattern restrictions.
get_wscanon_rule
in class XmlObjectBase
public float getFloatValue()
SimpleValue
getFloatValue
in interface SimpleValue
getFloatValue
in class XmlObjectBase
public double getDoubleValue()
SimpleValue
getDoubleValue
in interface SimpleValue
getDoubleValue
in class XmlObjectBase
public BigDecimal getBigDecimalValue()
SimpleValue
BigDecimal
.getBigDecimalValue
in interface SimpleValue
getBigDecimalValue
in class XmlObjectBase
public BigInteger getBigIntegerValue()
SimpleValue
BigInteger
.getBigIntegerValue
in interface SimpleValue
getBigIntegerValue
in class XmlObjectBase
public byte getByteValue()
SimpleValue
getByteValue
in interface SimpleValue
getByteValue
in class XmlObjectBase
public short getShortValue()
SimpleValue
getShortValue
in interface SimpleValue
getShortValue
in class XmlObjectBase
public int getIntValue()
SimpleValue
getIntValue
in interface SimpleValue
getIntValue
in class XmlObjectBase
public long getLongValue()
SimpleValue
getLongValue
in interface SimpleValue
getLongValue
in class XmlObjectBase
public byte[] getByteArrayValue()
SimpleValue
getByteArrayValue
in interface SimpleValue
getByteArrayValue
in class XmlObjectBase
public boolean getBooleanValue()
SimpleValue
getBooleanValue
in interface SimpleValue
getBooleanValue
in class XmlObjectBase
public Calendar getCalendarValue()
SimpleValue
Calendar
.getCalendarValue
in interface SimpleValue
getCalendarValue
in class XmlObjectBase
public Date getDateValue()
SimpleValue
Date
.getDateValue
in interface SimpleValue
getDateValue
in class XmlObjectBase
public GDate getGDateValue()
SimpleValue
GDate
.getGDateValue
in interface SimpleValue
getGDateValue
in class XmlObjectBase
public GDuration getGDurationValue()
SimpleValue
GDuration
.getGDurationValue
in interface SimpleValue
getGDurationValue
in class XmlObjectBase
public QName getQNameValue()
SimpleValue
QName
.getQNameValue
in interface SimpleValue
getQNameValue
in class XmlObjectBase
public List<?> getListValue()
SimpleValue
List
of friendly Java objects (String, Integer, Byte, Short, Long, BigInteger, Decimal, Float, Double, byte[], Calendar, GDuration).getListValue
in interface SimpleValue
getListValue
in class XmlObjectBase
public List<? extends XmlAnySimpleType> xgetListValue()
SimpleValue
List
of XmlAnySimpleType objects.xgetListValue
in interface SimpleValue
xgetListValue
in class XmlObjectBase
public StringEnumAbstractBase getEnumValue()
SimpleValue
StringEnumAbstractBase
.getEnumValue
in interface SimpleValue
getEnumValue
in class XmlObjectBase
public String getStringValue()
SimpleValue
String
.getStringValue
in interface SimpleValue
getStringValue
in interface XmlAnySimpleType
getStringValue
in class XmlObjectBase
protected void set_boolean(boolean v)
set_boolean
in class XmlObjectBase
protected void set_byte(byte v)
set_byte
in class XmlObjectBase
protected void set_short(short v)
set_short
in class XmlObjectBase
protected void set_int(int v)
set_int
in class XmlObjectBase
protected void set_long(long v)
set_long
in class XmlObjectBase
protected void set_float(float v)
set_float
in class XmlObjectBase
protected void set_double(double v)
set_double
in class XmlObjectBase
protected void set_ByteArray(byte[] b)
set_ByteArray
in class XmlObjectBase
protected void set_hex(byte[] b)
set_hex
in class XmlObjectBase
protected void set_b64(byte[] b)
set_b64
in class XmlObjectBase
protected void set_BigInteger(BigInteger v)
set_BigInteger
in class XmlObjectBase
protected void set_BigDecimal(BigDecimal v)
set_BigDecimal
in class XmlObjectBase
protected void set_QName(QName v)
set_QName
in class XmlObjectBase
protected void set_Calendar(Calendar c)
set_Calendar
in class XmlObjectBase
protected void set_Date(Date d)
set_Date
in class XmlObjectBase
protected void set_GDate(GDateSpecification d)
set_GDate
in class XmlObjectBase
protected void set_GDuration(GDurationSpecification d)
set_GDuration
in class XmlObjectBase
protected void set_enum(StringEnumAbstractBase e)
set_enum
in class XmlObjectBase
protected void set_list(List<?> v)
set_list
in class XmlObjectBase
protected void set_xmlfloat(XmlObject v)
protected void set_xmldouble(XmlObject v)
protected void set_xmldecimal(XmlObject v)
protected void set_xmlduration(XmlObject v)
protected void set_xmldatetime(XmlObject v)
protected void set_xmltime(XmlObject v)
protected void set_xmldate(XmlObject v)
protected void set_xmlgyearmonth(XmlObject v)
protected void set_xmlgyear(XmlObject v)
protected void set_xmlgmonthday(XmlObject v)
protected void set_xmlgday(XmlObject v)
protected void set_xmlgmonth(XmlObject v)
protected boolean equal_to(XmlObject xmlobj)
equal_to
in class XmlObjectBase
protected int value_hash_code()
value_hash_code
in class XmlObjectBase
protected void validate_simpleval(String lexical, ValidationContext ctx)
validate_simpleval
in class XmlObjectBase