|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BlockFactory
BlockFactory
Interface to create Block objects An object is created from either a reader, another Block or the BusinessObject. Some business objects (like JAXB) have an associated context object (JAXBContext), these are also passed to the createMethods. The implementation of BlockFactories should always be singleton objects and never carry any instance data. The FactoryRegistry should be used to get access to a Factory
FactoryRegistry
Method Summary | |
---|---|
Block |
createFrom(Block other,
java.lang.Object context)
createBlock from another Block If the other Block was created with the same factory and has the same context, the other Block is returned. |
Block |
createFrom(java.lang.Object businessObject,
java.lang.Object context,
QName qName)
Create from business object |
Block |
createFrom(org.apache.axiom.om.OMElement omElement,
java.lang.Object context,
QName qName)
createBlock from XMLStreamReader |
Block |
createFrom(javax.xml.stream.XMLStreamReader reader,
java.lang.Object context,
QName qName)
createBlock from XMLStreamReader |
boolean |
isElement()
|
Method Detail |
---|
Block createFrom(javax.xml.stream.XMLStreamReader reader, java.lang.Object context, QName qName) throws javax.xml.stream.XMLStreamException, WebServiceException
reader
- XMLStreamReadercontext
- Associated Context or nullQName
- must be supplied if known
javax.xml.stream.XMLStreamException
WebServiceException
Block createFrom(org.apache.axiom.om.OMElement omElement, java.lang.Object context, QName qName) throws javax.xml.stream.XMLStreamException, WebServiceException
omElement
- OMElementcontext
- Associated Context or nullQName
- must be supplied if known
javax.xml.stream.XMLStreamException
WebServiceException
Block createFrom(Block other, java.lang.Object context) throws javax.xml.stream.XMLStreamException, WebServiceException
other
- Blockcontext
- Associated Context or null
javax.xml.stream.XMLStreamException
WebServiceException
Block createFrom(java.lang.Object businessObject, java.lang.Object context, QName qName) throws WebServiceException
businessObject
- context
- Associated Context or nullQName
- must be supplied if known
javax.xml.stream.XMLStreamException
WebServiceException
boolean isElement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |