Package org.apache.xmlbeans.impl.values
Class XmlUnionImpl
java.lang.Object
org.apache.xmlbeans.impl.values.XmlObjectBase
org.apache.xmlbeans.impl.values.XmlUnionImpl
- All Implemented Interfaces:
Serializable,TypeStoreUser,SimpleValue,XmlAnySimpleType,XmlObject,XmlTokenSource
- Direct Known Subclasses:
AllImpl.MaxOccursImpl,AllNNIImpl,BlockSetImpl,DerivationSetImpl,FullDerivationSetImpl,JavaNameListImpl,LangAttributeImpl.LangImpl,NamespaceListImpl,NamespaceListImpl,NamespaceListImpl.MemberImpl2.ItemImpl,NamespaceListImpl.MemberImpl2.ItemImpl,NarrowMaxMinImpl.MaxOccursImpl,SimpleDerivationSetImpl
This class implements simple union types.
- See Also:
-
Field Summary
Fields inherited from class org.apache.xmlbeans.impl.values.XmlObjectBase
_voorVc, KIND_SETTERHELPER_ARRAYITEM, KIND_SETTERHELPER_SINGLETON, MAJOR_VERSION_NUMBER, MINOR_VERSION_NUMBERFields inherited from interface org.apache.xmlbeans.XmlAnySimpleType
Factory, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value as aBigDecimal.Returns the value as aBigInteger.booleanReturns the value as a boolean.byte[]Returns the value as a byte array.byteReturns the value as a byte.Returns the value as aCalendar.Returns the value as aDate.doubleReturns the value as a double.Returns the value as aStringEnumAbstractBase.floatReturns the value as a float.Returns the value as aGDate.Returns the value as aGDuration.intReturns the value as an int.List<?> Returns the value as aListof friendly Java objects (String, Integer, Byte, Short, Long, BigInteger, Decimal, Float, Double, byte[], Calendar, GDuration).longReturns the value as a long.Returns the value as aQName.shortReturns the value as a short.Returns the value as aString.The same as getSchemaType unless this is a union instance or nil value.List<? extends XmlAnySimpleType> Returns the value as aListof XmlAnySimpleType objects.Methods inherited from class org.apache.xmlbeans.impl.values.XmlObjectBase
_copy, _copy, _set, attach_store, build_nil, build_text, changeType, check_dated, compareTo, compareValue, copy, copy, create_attribute_user, create_element_user, disconnect_store, documentProperties, dump, equals, execQuery, execQuery, generatedSetterHelperImpl, get_attribute_field, get_attribute_type, get_attributeflags, get_default_attribute_text, get_default_element_text, get_element_ending_delimiters, get_element_type, get_elementflags, get_schema_type, get_store, get_wscanon_text, getDomNode, getObjectValue, getXmlLocale, hashCode, init_flags, invalidate_element_order, invalidate_nilvalue, invalidate_value, is_child_element_order_sensitive, isDefault, isDefaultable, isFixed, isImmutable, isInstanceOf, isNil, isNillable, 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, set_newValue, 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, uses_invalidate_value, validate, validate, validate_now, valueEquals, valueHashCode, writeReplace, xmlText, xmlTextMethods inherited from interface org.apache.xmlbeans.XmlAnySimpleType
setStringValueMethods inherited from interface org.apache.xmlbeans.XmlObject
changeType, compareTo, compareValue, copy, copy, execQuery, execQuery, isImmutable, isNil, selectAttribute, selectAttribute, selectAttributes, selectChildren, selectChildren, selectChildren, selectPath, selectPath, set, setNil, substitute, toString, validate, validate, valueEquals, valueHashCodeMethods inherited from interface org.apache.xmlbeans.XmlTokenSource
documentProperties, dump, getDomNode, monitor, newCursor, newDomNode, newDomNode, newInputStream, newInputStream, newReader, newReader, newXMLStreamReader, newXMLStreamReader, save, save, save, save, save, save, save, save, xmlText, xmlText
-
Constructor Details
-
XmlUnionImpl
-
-
Method Details
-
schemaType
- Specified by:
schemaTypein interfaceXmlObject- Specified by:
schemaTypein classXmlObjectBase- Returns:
- The schema type for this instance. This is a permanent, unchanging property of the instance.
-
instanceType
Description copied from interface:SimpleValueThe same as getSchemaType unless this is a union instance or nil value.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.
- Specified by:
instanceTypein interfaceSimpleValue- Overrides:
instanceTypein classXmlObjectBase
-
getFloatValue
public float getFloatValue()Description copied from interface:SimpleValueReturns the value as a float.- Specified by:
getFloatValuein interfaceSimpleValue- Overrides:
getFloatValuein classXmlObjectBase
-
getDoubleValue
public double getDoubleValue()Description copied from interface:SimpleValueReturns the value as a double.- Specified by:
getDoubleValuein interfaceSimpleValue- Overrides:
getDoubleValuein classXmlObjectBase
-
getBigDecimalValue
Description copied from interface:SimpleValueReturns the value as aBigDecimal.- Specified by:
getBigDecimalValuein interfaceSimpleValue- Overrides:
getBigDecimalValuein classXmlObjectBase
-
getBigIntegerValue
Description copied from interface:SimpleValueReturns the value as aBigInteger.- Specified by:
getBigIntegerValuein interfaceSimpleValue- Overrides:
getBigIntegerValuein classXmlObjectBase
-
getByteValue
public byte getByteValue()Description copied from interface:SimpleValueReturns the value as a byte.- Specified by:
getByteValuein interfaceSimpleValue- Overrides:
getByteValuein classXmlObjectBase
-
getShortValue
public short getShortValue()Description copied from interface:SimpleValueReturns the value as a short.- Specified by:
getShortValuein interfaceSimpleValue- Overrides:
getShortValuein classXmlObjectBase
-
getIntValue
public int getIntValue()Description copied from interface:SimpleValueReturns the value as an int.- Specified by:
getIntValuein interfaceSimpleValue- Overrides:
getIntValuein classXmlObjectBase
-
getLongValue
public long getLongValue()Description copied from interface:SimpleValueReturns the value as a long.- Specified by:
getLongValuein interfaceSimpleValue- Overrides:
getLongValuein classXmlObjectBase
-
getByteArrayValue
public byte[] getByteArrayValue()Description copied from interface:SimpleValueReturns the value as a byte array.- Specified by:
getByteArrayValuein interfaceSimpleValue- Overrides:
getByteArrayValuein classXmlObjectBase
-
getBooleanValue
public boolean getBooleanValue()Description copied from interface:SimpleValueReturns the value as a boolean.- Specified by:
getBooleanValuein interfaceSimpleValue- Overrides:
getBooleanValuein classXmlObjectBase
-
getCalendarValue
Description copied from interface:SimpleValueReturns the value as aCalendar.- Specified by:
getCalendarValuein interfaceSimpleValue- Overrides:
getCalendarValuein classXmlObjectBase
-
getDateValue
Description copied from interface:SimpleValueReturns the value as aDate.- Specified by:
getDateValuein interfaceSimpleValue- Overrides:
getDateValuein classXmlObjectBase
-
getGDateValue
Description copied from interface:SimpleValueReturns the value as aGDate.- Specified by:
getGDateValuein interfaceSimpleValue- Overrides:
getGDateValuein classXmlObjectBase
-
getGDurationValue
Description copied from interface:SimpleValueReturns the value as aGDuration.- Specified by:
getGDurationValuein interfaceSimpleValue- Overrides:
getGDurationValuein classXmlObjectBase
-
getQNameValue
Description copied from interface:SimpleValueReturns the value as aQName.- Specified by:
getQNameValuein interfaceSimpleValue- Overrides:
getQNameValuein classXmlObjectBase
-
getListValue
Description copied from interface:SimpleValueReturns the value as aListof friendly Java objects (String, Integer, Byte, Short, Long, BigInteger, Decimal, Float, Double, byte[], Calendar, GDuration).- Specified by:
getListValuein interfaceSimpleValue- Overrides:
getListValuein classXmlObjectBase
-
xgetListValue
Description copied from interface:SimpleValueReturns the value as aListof XmlAnySimpleType objects.- Specified by:
xgetListValuein interfaceSimpleValue- Overrides:
xgetListValuein classXmlObjectBase
-
getEnumValue
Description copied from interface:SimpleValueReturns the value as aStringEnumAbstractBase.- Specified by:
getEnumValuein interfaceSimpleValue- Overrides:
getEnumValuein classXmlObjectBase
-
getStringValue
Description copied from interface:SimpleValueReturns the value as aString.- Specified by:
getStringValuein interfaceSimpleValue- Specified by:
getStringValuein interfaceXmlAnySimpleType- Overrides:
getStringValuein classXmlObjectBase
-