Package org.apache.xmlbeans
Interface XmlDateTime
-
- All Superinterfaces:
XmlAnySimpleType
,XmlObject
,XmlTokenSource
- All Known Implementing Classes:
XmlDateTimeImpl
public interface XmlDateTime extends XmlAnySimpleType
Corresponds to the XML Schema xs:dateTime type.Convertible to
Calendar
,Date
, andGDate
.The XmlDateTime class only encapsulates a schema DateTime value, if you need to perform operations on dates, see the GDate class
- See Also:
XmlCalendar
,GDate
,GDuration
-
-
Field Summary
Fields Modifier and Type Field Description static XmlObjectFactory<XmlDateTime>
Factory
static SchemaType
type
The constantSchemaType
object representing this schema type.-
Fields inherited from interface org.apache.xmlbeans.XmlObject
EQUAL, GREATER_THAN, LESS_THAN, NOT_EQUAL
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Calendar
getCalendarValue()
Returns this value as aCalendar
Date
getDateValue()
Returns this value as aDate
GDate
getGDateValue()
Returns this value as aGDate
void
setCalendarValue(Calendar c)
Sets this value as aCalendar
void
setDateValue(Date d)
Sets this value as aDate
void
setGDateValue(GDate gd)
Sets this value as aGDateSpecification
-
Methods inherited from interface org.apache.xmlbeans.XmlAnySimpleType
getStringValue, setStringValue
-
Methods 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, valueHashCode
-
Methods 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 Detail
-
Factory
static final XmlObjectFactory<XmlDateTime> Factory
-
type
static final SchemaType type
The constantSchemaType
object representing this schema type.
-
-
Method Detail
-
setGDateValue
void setGDateValue(GDate gd)
Sets this value as aGDateSpecification
-
-