org.opensaml.ws.wssecurity.impl
Class AttributedDateTimeImpl

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.validation.AbstractValidatingXMLObject
          extended by org.opensaml.ws.wssecurity.impl.AbstractWSSecurityObject
              extended by org.opensaml.ws.wssecurity.impl.AttributedDateTimeImpl
All Implemented Interfaces:
AttributedDateTime, IdBearing, WSSecurityObject, org.opensaml.xml.AttributeExtensibleXMLObject, org.opensaml.xml.schema.XSString, org.opensaml.xml.validation.ValidatingXMLObject, org.opensaml.xml.XMLObject
Direct Known Subclasses:
AttributedDataTimeImpl, CreatedImpl, ExpiresImpl

public class AttributedDateTimeImpl
extends AbstractWSSecurityObject
implements AttributedDateTime

Implementation of AttributedDateTime.


Field Summary
 
Fields inherited from interface org.opensaml.ws.wssecurity.AttributedDateTime
DEFAULT_DATETIME_FORMAT, TYPE_LOCAL_NAME, TYPE_NAME
 
Fields inherited from interface org.opensaml.ws.wssecurity.IdBearing
WSU_ID_ATTR_LOCAL_NAME, WSU_ID_ATTR_NAME
 
Constructor Summary
AttributedDateTimeImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor.
 
Method Summary
 org.joda.time.DateTime getDateTime()
          Returns the DateTime content or attribute value.
 org.joda.time.format.DateTimeFormatter getDateTimeFormatter()
          Get the DateTimeFormatter to be used when stringifying the DateTime value.
 org.opensaml.xml.util.AttributeMap getUnknownAttributes()
          
 String getValue()
          
 String getWSUId()
          Returns the @wsu:Id attribute value.
 void setDateTime(org.joda.time.DateTime newDateTime)
          Sets the DateTime content or attribute value.
 void setDateTimeFormatter(org.joda.time.format.DateTimeFormatter newFormatter)
          Set the DateTimeFormatter to be used when stringifying the DateTime value.
 void setValue(String newValue)
          
 void setWSUId(String newId)
          Sets the @wsu:Id attribute value.
 
Methods inherited from class org.opensaml.ws.wssecurity.impl.AbstractWSSecurityObject
getOrderedChildren
 
Methods inherited from class org.opensaml.xml.validation.AbstractValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate, validateChildren
 
Methods inherited from class org.opensaml.xml.AbstractXMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
 

Constructor Detail

AttributedDateTimeImpl

public AttributedDateTimeImpl(String namespaceURI,
                              String elementLocalName,
                              String namespacePrefix)
Constructor.

Parameters:
namespaceURI - namespace of the element
elementLocalName - name of the element
namespacePrefix - namespace prefix of the element
Method Detail

getDateTime

public org.joda.time.DateTime getDateTime()
Returns the DateTime content or attribute value.

Specified by:
getDateTime in interface AttributedDateTime
Returns:
the DateTime object.

setDateTime

public void setDateTime(org.joda.time.DateTime newDateTime)
Sets the DateTime content or attribute value.

Specified by:
setDateTime in interface AttributedDateTime
Parameters:
newDateTime - the DateTime object to set.

getValue

public String getValue()

Specified by:
getValue in interface org.opensaml.xml.schema.XSString

setValue

public void setValue(String newValue)

Specified by:
setValue in interface org.opensaml.xml.schema.XSString

getWSUId

public String getWSUId()
Returns the @wsu:Id attribute value.

Specified by:
getWSUId in interface IdBearing
Returns:
The @wsu:Id attribute value or null.

setWSUId

public void setWSUId(String newId)
Sets the @wsu:Id attribute value.

Specified by:
setWSUId in interface IdBearing
Parameters:
newId - The @wsu:Id attribute value

getUnknownAttributes

public org.opensaml.xml.util.AttributeMap getUnknownAttributes()

Specified by:
getUnknownAttributes in interface org.opensaml.xml.AttributeExtensibleXMLObject

getDateTimeFormatter

public org.joda.time.format.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()

Specified by:
getDateTimeFormatter in interface AttributedDateTime
Returns:
the currently configured formatter

setDateTimeFormatter

public void setDateTimeFormatter(org.joda.time.format.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()

Specified by:
setDateTimeFormatter in interface AttributedDateTime
Parameters:
newFormatter - the new formatter


Copyright © 2006-2013 Internet2. All Rights Reserved.