com.ibm.websphere.sib.wsn

Class ElementAndText

  1. java.lang.Object
  2. extended bycom.ibm.websphere.sib.wsn.ElementAndText

  1. public class ElementAndText
  2. extends java.lang.Object
This class encapsulates an XML element surrounded by text. It represents the content of a complexType with a structure similar to the following:
<xsd:complexType . . . mixed="true">
   <xsd:sequence>
    <xsd:any minOccurs="0" maxOccurs="1" />
   </xsd:sequence>
  </xsd:complexType>
   

Field Summary

Modifier and Type Field and Description
  1. protected
  2. javax.xml.soap.SOAPElement
element
The element
  1. protected
  2. java.lang.String
textAfterElement
Any text appearing after the element
  1. protected
  2. java.lang.String
textBeforeElement
Any text appearing before the element

Constructor Summary

Constructor and Description
ElementAndText(java.lang.String textBeforeElement,javax.xml.soap.SOAPElement element,java.lang.String textAfterElement)
Create a new instance from the specified text values and element

Method Summary

Modifier and Type Method and Description
  1. javax.xml.soap.SOAPElement
getElement()
Get the element value
  1. java.lang.String
getTextAfterElement()
Get the value of any text appearing after the element.
  1. java.lang.String
getTextBeforeElement()
Get the value of any text appearing before the element.
  1. void
setElement(javax.xml.soap.SOAPElement element)
Set the element
  1. void
setTextAfterElement(java.lang.String text)
Set the text appearing after the element
  1. void
setTextBeforeElement(java.lang.String text)
Set the text appearing before the element
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

textBeforeElement

  1. protected java.lang.String textBeforeElement
Any text appearing before the element

textAfterElement

  1. protected java.lang.String textAfterElement
Any text appearing after the element

element

  1. protected javax.xml.soap.SOAPElement element
The element

Constructor Detail

ElementAndText

  1. public ElementAndText(java.lang.String textBeforeElement,
  2. javax.xml.soap.SOAPElement element,
  3. java.lang.String textAfterElement)
Create a new instance from the specified text values and element
Parameters:
textBeforeElement - Text to appear before the element. Use a null value to indicate no text.
element - The element
textAfterElement - Text to appear after the element. Use a null value to indicate no text.

Method Detail

getTextBeforeElement

  1. public java.lang.String getTextBeforeElement( )
Get the value of any text appearing before the element.
Returns:
The text or null if no such text exists

setTextBeforeElement

  1. public void setTextBeforeElement( java.lang.String text)
Set the text appearing before the element
Parameters:
text - The text before the element

getElement

  1. public javax.xml.soap.SOAPElement getElement( )
Get the element value
Returns:
The element value or null if no element has been set

setElement

  1. public void setElement(javax.xml.soap.SOAPElement element)
Set the element
Parameters:
element - The element

getTextAfterElement

  1. public java.lang.String getTextAfterElement( )
Get the value of any text appearing after the element.
Returns:
The text or null if no such text exists

setTextAfterElement

  1. public void setTextAfterElement( java.lang.String text)
Set the text appearing after the element
Parameters:
text - The text after the element