org.apache.axis2.security.trust.token
Class ValueToken

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

public abstract class ValueToken
extends AbstractToken

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


Field Summary
protected  OMText valueText
           
 
Fields inherited from class org.apache.axis2.security.trust.token.AbstractToken
factory, tokenElement, wstNamespace
 
Constructor Summary
ValueToken()
           
ValueToken(OMElement elem)
           
 
Method Summary
protected  void deserializeChildElement(OMElement element)
          This is called for each of the immediate child elements of type OMNode.ELEMENT_NODE of this token
 String getValue()
          Returns the value of the token.
protected  void setElementTextValue(OMText textNode)
          This is called with a OMText node of the current element
 void setValue(String value)
          Sets the value of the token.
 
Methods inherited from class org.apache.axis2.security.trust.token.AbstractToken
getToken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valueText

protected OMText valueText
Constructor Detail

ValueToken

public ValueToken()

ValueToken

public ValueToken(OMElement elem)
           throws TrustException
Method Detail

deserializeChildElement

protected void deserializeChildElement(OMElement element)
                                throws TrustException
Description copied from class: AbstractToken
This is called for each of the immediate child elements of type OMNode.ELEMENT_NODE of this token

Specified by:
deserializeChildElement in class AbstractToken
Parameters:
element -
Throws:
TrustException

setElementTextValue

protected void setElementTextValue(OMText textNode)
Description copied from class: AbstractToken
This is called with a OMText node of the current element

Specified by:
setElementTextValue in class AbstractToken
Parameters:
textNode -

getValue

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

Returns:
Returns String.

setValue

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

Parameters:
value -