com.ibm.websphere.sib.wsn
Class ElementAndText
- java.lang.Object
com.ibm.websphere.sib.wsn.ElementAndText
- public class ElementAndText
- extends java.lang.Object
<xsd:complexType . . . mixed="true"> <xsd:sequence> <xsd:any minOccurs="0" maxOccurs="1" /> </xsd:sequence> </xsd:complexType>
Field Summary
Modifier and Type | Field and Description |
---|---|
|
element
The element
|
|
textAfterElement
Any text appearing after the element
|
|
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 |
---|---|
|
getElement()
Get the element value
|
|
getTextAfterElement()
Get the value of any text appearing after the element.
|
|
getTextBeforeElement()
Get the value of any text appearing before the element.
|
|
setElement(javax.xml.soap.SOAPElement element)
Set the element
|
|
setTextAfterElement(java.lang.String text)
Set the text appearing after the element
|
|
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
- protected java.lang.String textBeforeElement
Any text appearing before the element
textAfterElement
- protected java.lang.String textAfterElement
Any text appearing after the element
element
- protected javax.xml.soap.SOAPElement element
The element
Constructor Detail
ElementAndText
- public 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
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
- 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
- public void setTextBeforeElement( java.lang.String text)
Set the text appearing before the element
Parameters:
text
- The text before the element getElement
- public javax.xml.soap.SOAPElement getElement( )
Get the element value
Returns:
The element value or null if no element has been set
setElement
- public void setElement(javax.xml.soap.SOAPElement element)
Set the element
Parameters:
element
- The element getTextAfterElement
- 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
- public void setTextAfterElement( java.lang.String text)
Set the text appearing after the element
Parameters:
text
- The text after the element