public class XmlUnionImpl extends XmlObjectBase implements XmlAnySimpleType
_voorVc, KIND_SETTERHELPER_ARRAYITEM, KIND_SETTERHELPER_SINGLETON, MAJOR_VERSION_NUMBER, MINOR_VERSION_NUMBERFactory, typeEQUAL, 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, xmlTextclone, finalize, getClass, notify, notifyAll, wait, wait, waitsetStringValuechangeType, compareTo, compareValue, copy, copy, execQuery, execQuery, isImmutable, isNil, selectAttribute, selectAttribute, selectAttributes, selectChildren, selectChildren, selectChildren, selectPath, selectPath, set, setNil, substitute, toString, validate, validate, valueEquals, valueHashCodedocumentProperties, dump, getDomNode, monitor, newCursor, newDomNode, newDomNode, newInputStream, newInputStream, newReader, newReader, newXMLStreamReader, newXMLStreamReader, save, save, save, save, save, save, save, save, xmlText, xmlTextpublic XmlUnionImpl(SchemaType type, boolean complex)
public SchemaType schemaType()
schemaType in interface XmlObjectschemaType in class XmlObjectBasepublic SchemaType instanceType()
SimpleValueFor 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 SimpleValueinstanceType in class XmlObjectBaseprotected String compute_text(NamespaceManager nsm)
XmlObjectBasecompute_text in class XmlObjectBaseprotected boolean is_defaultable_ws(String v)
XmlObjectBaseis_defaultable_ws in class XmlObjectBaseprotected void set_text(String s)
XmlObjectBaseset_text in class XmlObjectBaseprotected void set_nil()
XmlObjectBaseset_nil in class XmlObjectBaseprotected int get_wscanon_rule()
XmlObjectBaseOverridden 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 XmlObjectBasepublic float getFloatValue()
SimpleValuegetFloatValue in interface SimpleValuegetFloatValue in class XmlObjectBasepublic double getDoubleValue()
SimpleValuegetDoubleValue in interface SimpleValuegetDoubleValue in class XmlObjectBasepublic BigDecimal getBigDecimalValue()
SimpleValueBigDecimal.getBigDecimalValue in interface SimpleValuegetBigDecimalValue in class XmlObjectBasepublic BigInteger getBigIntegerValue()
SimpleValueBigInteger.getBigIntegerValue in interface SimpleValuegetBigIntegerValue in class XmlObjectBasepublic byte getByteValue()
SimpleValuegetByteValue in interface SimpleValuegetByteValue in class XmlObjectBasepublic short getShortValue()
SimpleValuegetShortValue in interface SimpleValuegetShortValue in class XmlObjectBasepublic int getIntValue()
SimpleValuegetIntValue in interface SimpleValuegetIntValue in class XmlObjectBasepublic long getLongValue()
SimpleValuegetLongValue in interface SimpleValuegetLongValue in class XmlObjectBasepublic byte[] getByteArrayValue()
SimpleValuegetByteArrayValue in interface SimpleValuegetByteArrayValue in class XmlObjectBasepublic boolean getBooleanValue()
SimpleValuegetBooleanValue in interface SimpleValuegetBooleanValue in class XmlObjectBasepublic Calendar getCalendarValue()
SimpleValueCalendar.getCalendarValue in interface SimpleValuegetCalendarValue in class XmlObjectBasepublic Date getDateValue()
SimpleValueDate.getDateValue in interface SimpleValuegetDateValue in class XmlObjectBasepublic GDate getGDateValue()
SimpleValueGDate.getGDateValue in interface SimpleValuegetGDateValue in class XmlObjectBasepublic GDuration getGDurationValue()
SimpleValueGDuration.getGDurationValue in interface SimpleValuegetGDurationValue in class XmlObjectBasepublic QName getQNameValue()
SimpleValueQName.getQNameValue in interface SimpleValuegetQNameValue in class XmlObjectBasepublic List<?> getListValue()
SimpleValueList of friendly Java objects (String, Integer, Byte, Short, Long, BigInteger, Decimal, Float, Double, byte[], Calendar, GDuration).getListValue in interface SimpleValuegetListValue in class XmlObjectBasepublic List<? extends XmlAnySimpleType> xgetListValue()
SimpleValueList of XmlAnySimpleType objects.xgetListValue in interface SimpleValuexgetListValue in class XmlObjectBasepublic StringEnumAbstractBase getEnumValue()
SimpleValueStringEnumAbstractBase.getEnumValue in interface SimpleValuegetEnumValue in class XmlObjectBasepublic String getStringValue()
SimpleValueString.getStringValue in interface SimpleValuegetStringValue in interface XmlAnySimpleTypegetStringValue in class XmlObjectBaseprotected void set_boolean(boolean v)
set_boolean in class XmlObjectBaseprotected void set_byte(byte v)
set_byte in class XmlObjectBaseprotected void set_short(short v)
set_short in class XmlObjectBaseprotected void set_int(int v)
set_int in class XmlObjectBaseprotected void set_long(long v)
set_long in class XmlObjectBaseprotected void set_float(float v)
set_float in class XmlObjectBaseprotected void set_double(double v)
set_double in class XmlObjectBaseprotected void set_ByteArray(byte[] b)
set_ByteArray in class XmlObjectBaseprotected void set_hex(byte[] b)
set_hex in class XmlObjectBaseprotected void set_b64(byte[] b)
set_b64 in class XmlObjectBaseprotected void set_BigInteger(BigInteger v)
set_BigInteger in class XmlObjectBaseprotected void set_BigDecimal(BigDecimal v)
set_BigDecimal in class XmlObjectBaseprotected void set_QName(QName v)
set_QName in class XmlObjectBaseprotected void set_Calendar(Calendar c)
set_Calendar in class XmlObjectBaseprotected void set_Date(Date d)
set_Date in class XmlObjectBaseprotected void set_GDate(GDateSpecification d)
set_GDate in class XmlObjectBaseprotected void set_GDuration(GDurationSpecification d)
set_GDuration in class XmlObjectBaseprotected void set_enum(StringEnumAbstractBase e)
set_enum in class XmlObjectBaseprotected void set_list(List<?> v)
set_list in class XmlObjectBaseprotected 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 XmlObjectBaseprotected int value_hash_code()
value_hash_code in class XmlObjectBaseprotected void validate_simpleval(String lexical, ValidationContext ctx)
validate_simpleval in class XmlObjectBase