org.opensaml.xml.schema
Interface XSDateTime

All Superinterfaces:
ValidatingXMLObject, XMLObject
All Known Implementing Classes:
XSDateTimeImpl

public interface XSDateTime
extends ValidatingXMLObject

XMLObject that represents an XML Schema dateTime.


Field Summary
static String TYPE_LOCAL_NAME
          Local name of the XSI type.
static QName TYPE_NAME
          QName of the XSI type.
 
Method Summary
 DateTimeFormatter getDateTimeFormatter()
          Get the DateTimeFormatter to be used when stringifying the DateTime value.
 DateTime getValue()
          Gets the dateTime value.
 void setDateTimeFormatter(DateTimeFormatter newFormatter)
          Set the DateTimeFormatter to be used when stringifying the DateTime value.
 void setValue(DateTime newValue)
          Sets the dateTime value.
 
Methods inherited from interface org.opensaml.xml.validation.ValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate
 
Methods inherited from interface org.opensaml.xml.XMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 

Field Detail

TYPE_LOCAL_NAME

static final String TYPE_LOCAL_NAME
Local name of the XSI type.

See Also:
Constant Field Values

TYPE_NAME

static final QName TYPE_NAME
QName of the XSI type.

Method Detail

getValue

DateTime getValue()
Gets the dateTime value.

Returns:
the dateTime value

setValue

void setValue(DateTime newValue)
Sets the dateTime value.

Parameters:
newValue - the dateTime value

getDateTimeFormatter

DateTimeFormatter getDateTimeFormatter()
Get the DateTimeFormatter to be used when stringifying the DateTime value.

Defaults to the formatter constructed by calling: org.joda.time.format.ISODateTimeFormat.dateTime().withChronology(org.joda.time.chrono.ISOChronology.getInstanceUTC()

Returns:
the currently configured formatter

setDateTimeFormatter

void setDateTimeFormatter(DateTimeFormatter newFormatter)
Set the DateTimeFormatter to be used when stringifying the DateTime value.

Defaults to the formatter constructed by calling: org.joda.time.format.ISODateTimeFormat.dateTime().withChronology(org.joda.time.chrono.ISOChronology.getInstanceUTC()

Parameters:
newFormatter - the new formatter


Copyright © 1999-2012. All Rights Reserved.