public class ElementAndText
extends java.lang.Object
<xsd:complexType . . . mixed="true"> <xsd:sequence> <xsd:any minOccurs="0" maxOccurs="1" /> </xsd:sequence> </xsd:complexType>
Modifier and Type | Field and Description |
---|---|
protected javax.xml.soap.SOAPElement |
element
The element
|
protected java.lang.String |
textAfterElement
Any text appearing after the element
|
protected java.lang.String |
textBeforeElement
Any text appearing before the element
|
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
|
Modifier and Type | Method and Description |
---|---|
javax.xml.soap.SOAPElement |
getElement()
Get the element value
|
java.lang.String |
getTextAfterElement()
Get the value of any text appearing after the element.
|
java.lang.String |
getTextBeforeElement()
Get the value of any text appearing before the element.
|
void |
setElement(javax.xml.soap.SOAPElement element)
Set the element
|
void |
setTextAfterElement(java.lang.String text)
Set the text appearing after the element
|
void |
setTextBeforeElement(java.lang.String text)
Set the text appearing before the element
|
protected java.lang.String textBeforeElement
protected java.lang.String textAfterElement
protected javax.xml.soap.SOAPElement element
public ElementAndText(java.lang.String textBeforeElement, javax.xml.soap.SOAPElement element, java.lang.String textAfterElement)
textBeforeElement
- Text to appear before the element. Use a null value to indicate no text.element
- The elementtextAfterElement
- Text to appear after the element. Use a null value to indicate no text.public java.lang.String getTextBeforeElement()
public void setTextBeforeElement(java.lang.String text)
text
- The text before the elementpublic javax.xml.soap.SOAPElement getElement()
public void setElement(javax.xml.soap.SOAPElement element)
element
- The elementpublic java.lang.String getTextAfterElement()
public void setTextAfterElement(java.lang.String text)
text
- The text after the element