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:
java.io.Serializable,TypeStoreUser,SimpleValue,XmlAnySimpleType,XmlObject,XmlTokenSource
- Direct Known Subclasses:
AllImpl.MaxOccursImpl,AllNNIImpl,BlockSetImpl,DerivationSetImpl,FullDerivationSetImpl,JavaNameListImpl,NamespaceListImpl,NamespaceListImpl,NamespaceListImpl.MemberImpl2.ItemImpl,NamespaceListImpl.MemberImpl2.ItemImpl,NarrowMaxMinImpl.MaxOccursImpl,SimpleDerivationSetImpl
public class XmlUnionImpl extends XmlObjectBase implements XmlAnySimpleType
This class implements simple union types.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.xmlbeans.XmlAnySimpleType
XmlAnySimpleType.Factory
-
Nested classes/interfaces inherited from interface org.apache.xmlbeans.XmlObject
XmlObject.Factory
-
-
Field Summary
-
Fields inherited from class org.apache.xmlbeans.impl.values.XmlObjectBase
_voorVc, KIND_SETTERHELPER_ARRAYITEM, KIND_SETTERHELPER_SINGLETON, MAJOR_VERSION_NUMBER, MINOR_VERSION_NUMBER
-
Fields inherited from interface org.apache.xmlbeans.XmlAnySimpleType
type
-
-
Constructor Summary
Constructors Constructor Description XmlUnionImpl(SchemaType type, boolean complex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimalgetBigDecimalValue()Returns the value as aBigDecimal.java.math.BigIntegergetBigIntegerValue()Returns the value as aBigInteger.booleangetBooleanValue()Returns the value as a boolean.byte[]getByteArrayValue()Returns the value as a byte array.bytegetByteValue()Returns the value as a byte.java.util.CalendargetCalendarValue()Returns the value as aCalendar.java.util.DategetDateValue()Returns the value as aDate.doublegetDoubleValue()Returns the value as a double.StringEnumAbstractBasegetEnumValue()Returns the value as aStringEnumAbstractBase.floatgetFloatValue()Returns the value as a float.GDategetGDateValue()Returns the value as aGDate.GDurationgetGDurationValue()Returns the value as aGDuration.intgetIntValue()Returns the value as an int.java.util.ListgetListValue()Returns the value as aListof friendly Java objects (String, Integer, Byte, Short, Long, BigInteger, Decimal, Float, Double, byte[], Calendar, GDuration).longgetLongValue()Returns the value as a long.javax.xml.namespace.QNamegetQNameValue()Returns the value as aQName.shortgetShortValue()Returns the value as a short.java.lang.StringgetStringValue()Returns the value as aString.SchemaTypeinstanceType()The same as getSchemaType unless this is a union instance or nil value.SchemaTypeschemaType()java.util.ListxgetListValue()Returns the value as aListof XmlAnySimpleType objects.-
Methods inherited from class org.apache.xmlbeans.impl.values.XmlObjectBase
_copy, _copy, _set, attach_store, bigDecimalValue, bigIntegerValue, booleanValue, build_nil, build_text, byteArrayValue, byteValue, calendarValue, changeType, check_dated, compareTo, compareValue, copy, copy, create_attribute_user, create_element_user, dateValue, disconnect_store, documentProperties, doubleValue, dump, enumValue, equals, execQuery, execQuery, floatValue, gDateValue, gDurationValue, 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, intValue, invalidate_element_order, invalidate_nilvalue, invalidate_value, is_child_element_order_sensitive, isDefault, isDefaultable, isFixed, isImmutable, isInstanceOf, isNil, isNillable, listValue, longValue, monitor, new_visitor, newCursor, newCursorForce, newDomNode, newDomNode, newInputStream, newInputStream, newReader, newReader, newXMLInputStream, newXMLInputStream, newXMLStreamReader, newXMLStreamReader, objectSet, objectValue, qNameValue, save, save, save, save, save, save, save, save, selectAttribute, selectAttribute, selectAttributes, selectChildren, selectChildren, selectChildren, selectPath, selectPath, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, 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, shortValue, stringValue, substitute, toString, uses_invalidate_value, validate, validate, validate_now, valueEquals, valueHashCode, writeReplace, xlistValue, xmlText, xmlText
-
Methods inherited from interface org.apache.xmlbeans.XmlAnySimpleType
set, setStringValue, stringValue
-
Methods 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, valueHashCode
-
Methods inherited from interface org.apache.xmlbeans.XmlTokenSource
documentProperties, dump, getDomNode, monitor, newCursor, newDomNode, newDomNode, newInputStream, newInputStream, newReader, newReader, newXMLInputStream, newXMLInputStream, newXMLStreamReader, newXMLStreamReader, save, save, save, save, save, save, save, save, xmlText, xmlText
-
-
-
-
Constructor Detail
-
XmlUnionImpl
public XmlUnionImpl(SchemaType type, boolean complex)
-
-
Method Detail
-
schemaType
public SchemaType 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
public SchemaType 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
public java.math.BigDecimal getBigDecimalValue()
Description copied from interface:SimpleValueReturns the value as aBigDecimal.- Specified by:
getBigDecimalValuein interfaceSimpleValue- Overrides:
getBigDecimalValuein classXmlObjectBase
-
getBigIntegerValue
public java.math.BigInteger 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
public java.util.Calendar getCalendarValue()
Description copied from interface:SimpleValueReturns the value as aCalendar.- Specified by:
getCalendarValuein interfaceSimpleValue- Overrides:
getCalendarValuein classXmlObjectBase
-
getDateValue
public java.util.Date getDateValue()
Description copied from interface:SimpleValueReturns the value as aDate.- Specified by:
getDateValuein interfaceSimpleValue- Overrides:
getDateValuein classXmlObjectBase
-
getGDateValue
public GDate getGDateValue()
Description copied from interface:SimpleValueReturns the value as aGDate.- Specified by:
getGDateValuein interfaceSimpleValue- Overrides:
getGDateValuein classXmlObjectBase
-
getGDurationValue
public GDuration getGDurationValue()
Description copied from interface:SimpleValueReturns the value as aGDuration.- Specified by:
getGDurationValuein interfaceSimpleValue- Overrides:
getGDurationValuein classXmlObjectBase
-
getQNameValue
public javax.xml.namespace.QName getQNameValue()
Description copied from interface:SimpleValueReturns the value as aQName.- Specified by:
getQNameValuein interfaceSimpleValue- Overrides:
getQNameValuein classXmlObjectBase
-
getListValue
public java.util.List 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
public java.util.List xgetListValue()
Description copied from interface:SimpleValueReturns the value as aListof XmlAnySimpleType objects.- Specified by:
xgetListValuein interfaceSimpleValue- Overrides:
xgetListValuein classXmlObjectBase
-
getEnumValue
public StringEnumAbstractBase getEnumValue()
Description copied from interface:SimpleValueReturns the value as aStringEnumAbstractBase.- Specified by:
getEnumValuein interfaceSimpleValue- Overrides:
getEnumValuein classXmlObjectBase
-
getStringValue
public java.lang.String getStringValue()
Description copied from interface:SimpleValueReturns the value as aString.- Specified by:
getStringValuein interfaceSimpleValue- Specified by:
getStringValuein interfaceXmlAnySimpleType- Overrides:
getStringValuein classXmlObjectBase
-
-