|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.ws.sandbox.security.trust.message.token.AbstractToken
| Field Summary | |
protected org.w3c.dom.Document |
document
|
protected org.w3c.dom.Element |
element
|
| Constructor Summary | |
AbstractToken(org.w3c.dom.Document doc)
Create a new token with the given document |
|
AbstractToken(org.w3c.dom.Element elem)
Tihs constructor accepts a DOM Element instance Will populate the internal properties |
|
| Method Summary | |
protected void |
addChild(AbstractToken token)
|
protected abstract 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 |
protected org.w3c.dom.Element |
getElement()
Returns this element |
protected abstract javax.xml.namespace.QName |
getToken()
This metod is used to provide the QName of the element to the constructors by the extending types |
void |
parse(org.w3c.dom.Element elem)
Parses the immediate children of the current token and calls the deserializeChildElement method or deserializeElementText |
protected void |
removeChild(AbstractToken token)
|
protected void |
setElement(org.w3c.dom.Element element)
Sets this element |
protected abstract void |
setElementTextValue(org.w3c.dom.Text textNode)
This is called with a Text node of the
current element |
java.lang.String |
toString()
To display the token |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected org.w3c.dom.Element element
protected org.w3c.dom.Document document
| Constructor Detail |
public AbstractToken(org.w3c.dom.Document doc)
doc -
public AbstractToken(org.w3c.dom.Element elem)
throws WSTrustException
elem -
WSSecurityException
WSTrustException| Method Detail |
protected abstract javax.xml.namespace.QName getToken()
public void parse(org.w3c.dom.Element elem)
throws WSTrustException
elem -
WSSecurityException
WSTrustException
protected abstract void deserializeChildElement(org.w3c.dom.Element elem)
throws WSTrustException
Node.ELEMENT_NODE of this token
elem - The child element
WSSecurityException
WSTrustException
protected abstract void setElementTextValue(org.w3c.dom.Text textNode)
throws WSTrustException
Text node of the
current element
textNode -
WSTrustExceptionprotected org.w3c.dom.Element getElement()
protected void setElement(org.w3c.dom.Element element)
element - public java.lang.String toString()
protected void addChild(AbstractToken token)
protected void removeChild(AbstractToken token)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||