org.opensaml.ws.wssecurity.impl
Class TimestampImpl

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.TimestampImpl
All Implemented Interfaces:
IdBearing, Timestamp, WSSecurityObject, AttributeExtensibleXMLObject, ElementExtensibleXMLObject, ValidatingXMLObject, XMLObject

public class TimestampImpl
extends AbstractWSSecurityObject
implements Timestamp

Concrete implementation of Timestamp.


Field Summary
private  Created created
          wsu:Timestamp/wsu:Created element.
private  Expires expires
          wsu:Timestamp/wsu:Expires element.
private  String id
          wsu:Timestamp/@wsu:Id attribute.
private  AttributeMap unknownAttributes
          Wildcard attributes.
private  IndexedXMLObjectChildrenList<XMLObject> unknownChildren
          Wildcard child elements.
 
Fields inherited from interface org.opensaml.ws.wssecurity.Timestamp
ELEMENT_LOCAL_NAME, ELEMENT_NAME
 
Fields inherited from interface org.opensaml.ws.wssecurity.IdBearing
WSU_ID_ATTR_LOCAL_NAME, WSU_ID_ATTR_NAME
 
Constructor Summary
TimestampImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor.
 
Method Summary
 Created getCreated()
          Returns the <wsu:Created< child element.
 Expires getExpires()
          Returns the <wsu:Expires> child element.
 List<XMLObject> getOrderedChildren()
          
 AttributeMap getUnknownAttributes()
          
 List<XMLObject> getUnknownXMLObjects()
          
 List<XMLObject> getUnknownXMLObjects(QName typeOrName)
          
 String getWSUId()
          Returns the @wsu:Id attribute value.
 void setCreated(Created newCreated)
          Sets the <wsu:Created> child element.
 void setExpires(Expires newExpires)
          Sets the <wsu:Expires> child element.
 void setWSUId(String newId)
          Sets the @wsu:Id attribute value.
 
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.XMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 

Field Detail

id

private String id
wsu:Timestamp/@wsu:Id attribute.


created

private Created created
wsu:Timestamp/wsu:Created element.


expires

private Expires expires
wsu:Timestamp/wsu:Expires element.


unknownAttributes

private AttributeMap unknownAttributes
Wildcard attributes.


unknownChildren

private IndexedXMLObjectChildrenList<XMLObject> unknownChildren
Wildcard child elements.

Constructor Detail

TimestampImpl

public TimestampImpl(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

getCreated

public Created getCreated()
Returns the <wsu:Created< child element.

Specified by:
getCreated in interface Timestamp
Returns:
the Created child element or null.

getExpires

public Expires getExpires()
Returns the <wsu:Expires> child element.

Specified by:
getExpires in interface Timestamp
Returns:
the Expires child element or null.

setCreated

public void setCreated(Created newCreated)
Sets the <wsu:Created> child element.

Specified by:
setCreated in interface Timestamp
Parameters:
newCreated - the Created child element to set.

setExpires

public void setExpires(Expires newExpires)
Sets the <wsu:Expires> child element.

Specified by:
setExpires in interface Timestamp
Parameters:
newExpires - the Expires child element or null.

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 AttributeMap getUnknownAttributes()

Specified by:
getUnknownAttributes in interface AttributeExtensibleXMLObject

getUnknownXMLObjects

public List<XMLObject> getUnknownXMLObjects()

Specified by:
getUnknownXMLObjects in interface ElementExtensibleXMLObject

getUnknownXMLObjects

public List<XMLObject> getUnknownXMLObjects(QName typeOrName)

Specified by:
getUnknownXMLObjects in interface ElementExtensibleXMLObject

getOrderedChildren

public List<XMLObject> getOrderedChildren()

Specified by:
getOrderedChildren in interface XMLObject
Overrides:
getOrderedChildren in class AbstractWSSecurityObject


Copyright © 1999-2013. All Rights Reserved.