|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Block
Block A Block represents an xml element and associated sub-tree. The name of the element must be defined by a root element in a schema. All prefixes within the subtree must correspond to namespace declarations defined within the tree. Many specifications refer to this as a "embedded document" or "xml block". I chose the term, block, for simplicity.
The block can be exposed as: * BusinessObject * StAX object Note that the whole Message can also be thought of as a Block. Thus a Message can be createFrom a Block and written as a Block. In addition, each of the accessors has a consume parameter. If consume is true, the Block is no longer valid after the message is called. (i.e. the implementation does not need to cache the information)
| Method Summary | |
|---|---|
BlockFactory |
getBlockFactory()
Get BlockFactory |
java.lang.Object |
getBusinessContext()
GetBusinesContext Some business objects have an associated context object (i.e. |
java.lang.Object |
getBusinessObject(boolean consume)
Get a reference to the Business Object represented by this Block |
org.apache.axiom.om.OMElement |
getOMElement()
Get the OMElement represented by this Block. |
Message |
getParent()
Get the Message associated with this block |
QName |
getQName()
Get the QName (namespace, localpart) of the Block. |
javax.xml.stream.XMLStreamReader |
getXMLStreamReader(boolean consume)
Get the XMLStreamReader represented by this Block |
boolean |
isConsumed()
isConsumed Return true if the block is consumed. |
boolean |
isElementData()
|
boolean |
isQNameAvailable()
|
void |
outputTo(javax.xml.stream.XMLStreamWriter writer,
boolean consume)
Write out the Block |
void |
setParent(Message parent)
Set the Message associated with this block (This method is intended to be called by the Message Implementation only) |
java.lang.String |
traceString(java.lang.String indent)
Get a traceString...the trace string dumps the contents of the Block without forcing an underlying ill-performant transformation of the message. |
| Methods inherited from interface org.apache.axiom.om.OMDataSourceExt |
|---|
close, copy, getObject, getProperty, getReader, getXMLBytes, getXMLInputStream, hasProperty, isDestructiveRead, isDestructiveWrite, serialize, serialize, serialize, setProperty |
| Method Detail |
|---|
java.lang.Object getBusinessObject(boolean consume)
throws javax.xml.stream.XMLStreamException,
WebServiceException
consume - true if this is the last request on the block.
javax.xml.stream.XMLStreamException
WebServiceExceptionjava.lang.Object getBusinessContext()
javax.xml.stream.XMLStreamReader getXMLStreamReader(boolean consume)
throws javax.xml.stream.XMLStreamException,
WebServiceException
consume - true if this is the last request on the block.
javax.xml.stream.XMLStreamException
WebServiceException
org.apache.axiom.om.OMElement getOMElement()
throws javax.xml.stream.XMLStreamException,
WebServiceException
javax.xml.stream.XMLStreamException
WebServiceException
void outputTo(javax.xml.stream.XMLStreamWriter writer,
boolean consume)
throws javax.xml.stream.XMLStreamException,
WebServiceException
writer - XMLStreamWriterconsume - true if this is the last request on the block.
javax.xml.stream.XMLStreamException
WebServiceExceptionboolean isConsumed()
java.lang.String traceString(java.lang.String indent)
boolean isQNameAvailable()
QName getQName()
throws WebServiceException
WebServiceExceptionisQNameAvailableBlockFactory getBlockFactory()
Message getParent()
void setParent(Message parent)
parent - boolean isElementData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||