|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.sib.wsn.ElementAndText
public class ElementAndText
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 | |
---|---|
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 Summary | |
---|---|
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 | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String textBeforeElement
protected java.lang.String textAfterElement
protected javax.xml.soap.SOAPElement element
Constructor Detail |
---|
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.Method Detail |
---|
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
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |