org.apache.ws.sandbox.security.trust.message.token
Class ValueElement

java.lang.Object
  extended byorg.apache.ws.sandbox.security.trust.message.token.AbstractToken
      extended byorg.apache.ws.sandbox.security.trust.message.token.ValueElement
Direct Known Subclasses:
BinarySecret, Code, ComputedKey, Created, Expires, KeySize, Reason, RequestType, TokenType

public abstract class ValueElement
extends AbstractToken

This is the base class for the elements that carries a value in the element Example: ...

Author:
Ruchith Fernando (ruchith.fernando@gmail.com)

Field Summary
protected  org.w3c.dom.Text valueText
           
 
Fields inherited from class org.apache.ws.sandbox.security.trust.message.token.AbstractToken
document, element
 
Constructor Summary
ValueElement(org.w3c.dom.Document doc)
           
ValueElement(org.w3c.dom.Element elem)
           
 
Method Summary
protected  void deserializeChildElement(org.w3c.dom.Element elem)
          This is called for each of the immediate child elements of type Node.ELEMENT_NODE of this token
 java.lang.String getValue()
          Returns the value of the token
protected  void setElementTextValue(org.w3c.dom.Text textNode)
          This is called with a Text node of the current element
 void setValue(java.lang.String value)
          Sets the value of the token
 
Methods inherited from class org.apache.ws.sandbox.security.trust.message.token.AbstractToken
addChild, getElement, getToken, parse, removeChild, setElement, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

valueText

protected org.w3c.dom.Text valueText
Constructor Detail

ValueElement

public ValueElement(org.w3c.dom.Document doc)
Parameters:
doc -

ValueElement

public ValueElement(org.w3c.dom.Element elem)
             throws WSTrustException
Parameters:
elem -
Throws:
WSTrustException
Method Detail

deserializeChildElement

protected void deserializeChildElement(org.w3c.dom.Element elem)
                                throws WSTrustException
Description copied from class: AbstractToken
This is called for each of the immediate child elements of type Node.ELEMENT_NODE of this token

Specified by:
deserializeChildElement in class AbstractToken
Parameters:
elem - The child element
Throws:
WSTrustException

setElementTextValue

protected void setElementTextValue(org.w3c.dom.Text textNode)
                            throws WSTrustException
Description copied from class: AbstractToken
This is called with a Text node of the current element

Specified by:
setElementTextValue in class AbstractToken
Parameters:
textNode -
Throws:
WSTrustException

getValue

public java.lang.String getValue()
Returns the value of the token

Returns:

setValue

public void setValue(java.lang.String value)
Sets the value of the token

Parameters:
value -


Copyright © 2004-2008 Apache Web Services. All Rights Reserved.