Package org.apache.xmlbeans
Interface XmlDateTime
- All Superinterfaces:
XmlAnySimpleType,XmlObject,XmlTokenSource
- All Known Subinterfaces:
STDateTime
- All Known Implementing Classes:
XmlDateTimeImpl
Corresponds to the XML Schema
xs:dateTime type.
Convertible to Calendar, Date, and GDate.
The XmlDateTime class only encapsulates a schema DateTime value, if you need to perform operations on dates, see the GDate class
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final XmlObjectFactory<XmlDateTime> static final SchemaTypeThe constantSchemaTypeobject representing this schema type.Fields inherited from interface org.apache.xmlbeans.XmlObject
EQUAL, GREATER_THAN, LESS_THAN, NOT_EQUAL -
Method Summary
Modifier and TypeMethodDescriptionReturns this value as aCalendarReturns this value as aDateReturns this value as aGDatevoidSets this value as aCalendarvoidsetDateValue(Date d) Sets this value as aDatevoidsetGDateValue(GDate gd) Sets this value as aGDateSpecificationMethods inherited from interface org.apache.xmlbeans.XmlAnySimpleType
getStringValue, setStringValueMethods inherited from interface org.apache.xmlbeans.XmlObject
changeType, compareTo, compareValue, copy, copy, execQuery, execQuery, isImmutable, isNil, schemaType, 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
-
Field Details
-
Factory
-
type
The constantSchemaTypeobject representing this schema type.
-
-
Method Details
-
getCalendarValue
Calendar getCalendarValue()Returns this value as aCalendar -
setCalendarValue
Sets this value as aCalendar -
getGDateValue
GDate getGDateValue()Returns this value as aGDate -
setGDateValue
Sets this value as aGDateSpecification -
getDateValue
Date getDateValue()Returns this value as aDate -
setDateValue
Sets this value as aDate
-