|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DeserializationContext
This interface describes the AXIS DeserializationContext, note that an AXIS compliant DeserializationContext must extend the org.xml.sax.helpers.DefaultHandler.
Method Summary | |
---|---|
void |
addObjectById(String _id,
Object obj)
Add the object associated with this id (where id is the value of an id= attribute, i.e. |
SOAPElementAxisImpl |
getCurElement()
Get current MessageElement |
ArrayList |
getCurrentNSMappings()
Get the Namespace Mappings. |
int |
getCurrentRecordPos()
Get the current position in the record. |
Deserializer |
getDeserializer(Class cls,
javax.xml.namespace.QName xmlType)
Get a Deserializer which can turn a given xml type into a given Java type |
Deserializer |
getDeserializerForClass(Class cls)
Convenience method to get the Deserializer for a specific java class from its meta data. |
Deserializer |
getDeserializerForType(javax.xml.namespace.QName xmlType)
Convenience method to get the Deserializer for a specific xmlType. |
SOAPElementAxisImpl |
getElementByID(String id)
Get the MessageElement for the indicated id (where id is the #value of an href) If the MessageElement has not been processed, the MessageElement will be returned. |
SOAPEnvelopeAxisImpl |
getEnvelope()
Get Envelope |
MessageContext |
getMessageContext()
Get MessageContext |
String |
getNamespaceURI(String prefix)
Get the Namespace for a particular prefix |
Object |
getObjectByRef(String href)
Gets the MessageElement or actual Object value associated with the href value. |
javax.xml.namespace.QName |
getQNameFromString(String qNameStr)
Construct a QName from a string of the form |
SAX2EventRecorder |
getRecorder()
Get Event Recorder |
int |
getStartOfMappingsPos()
Get the start of the mapping position |
javax.xml.namespace.QName |
getTypeFromAttributes(String namespace,
String localName,
Attributes attrs)
Create a QName for the type of the element defined by localName and namespace with the specified attributes. |
javax.xml.namespace.QName |
getTypeFromXSITypeAttr(String namespace,
String localName,
Attributes attrs)
Create a QName for the type of the element defined by localName and namespace from the XSI type. |
TypeMapping |
getTypeMapping()
Get the TypeMapping for this DeserializationContext |
TypeMappingRegistry |
getTypeMappingRegistry()
Get the TypeMappingRegistry we're using. |
boolean |
isDoneParsing()
Return if done parsing document. |
boolean |
isNil(Attributes attrs)
Convenenience method that returns true if the value is nil (due to the xsi:nil) attribute. |
boolean |
isProcessingRef()
Are we in the midst of processing an href target? If so, we shouldn't be pushing the element stack... |
void |
parse()
Create a parser and parse the inputSource |
SOAPHandler |
popElementHandler()
|
void |
pushElementHandler(SOAPHandler handler)
Handler management methods |
void |
pushNewElement(SOAPElementAxisImpl elem)
Push the MessageElement into the recorder |
void |
registerElementByID(String id,
SOAPElementAxisImpl elem)
Register the MessageElement with this id (where id is id= form without the #) This routine is called when the MessageElement with an id is read. |
void |
registerFixup(String href,
Deserializer dser)
During deserialization, an element with an href=#id |
void |
registerResolverForID(String id,
IDResolver resolver)
Each id can have its own kind of resolver. |
void |
replaceElementHandler(SOAPHandler handler)
|
void |
setCurElement(SOAPElementAxisImpl el)
Set current MessageElement |
void |
setProcessingRef(boolean ref)
Indicate if we're in the midst of processing an href target, in which case we shouldn't be pushing the element stack. |
void |
setRecorder(SAX2EventRecorder recorder)
Set Event Recorder |
Method Detail |
---|
void parse() throws SAXException
SAXException
SOAPElementAxisImpl getCurElement()
void setCurElement(SOAPElementAxisImpl el)
MessageContext getMessageContext()
SOAPEnvelopeAxisImpl getEnvelope()
SAX2EventRecorder getRecorder()
void setRecorder(SAX2EventRecorder recorder)
ArrayList getCurrentNSMappings()
String getNamespaceURI(String prefix)
javax.xml.namespace.QName getQNameFromString(String qNameStr)
qNameStr
- is the prefixed name from the xml text
javax.xml.namespace.QName getTypeFromXSITypeAttr(String namespace, String localName, Attributes attrs)
namespace
- of the elementlocalName
- is the local name of the elementattrs
- are the attributes on the elementjavax.xml.namespace.QName getTypeFromAttributes(String namespace, String localName, Attributes attrs)
namespace
- of the elementlocalName
- is the local name of the elementattrs
- are the attributes on the elementboolean isNil(Attributes attrs)
attrs
- are the element attributes.
Deserializer getDeserializer(Class cls, javax.xml.namespace.QName xmlType)
Deserializer getDeserializerForType(javax.xml.namespace.QName xmlType)
xmlType
- is QName for a type to deserialize
Deserializer getDeserializerForClass(Class cls)
cls
- is the Class used to find the deserializer
TypeMapping getTypeMapping()
TypeMappingRegistry getTypeMappingRegistry()
SOAPElementAxisImpl getElementByID(String id)
id
- is the value of an href attribute
Object getObjectByRef(String href)
id
- is the value of an href attribute (or an Attachment id)
void addObjectById(String _id, Object obj)
id
- (id name without the #)obj
- is the deserialized object for this id.void registerFixup(String href, Deserializer dser)
href
- (#id syntax)dser
- is the deserializer of the elementvoid registerElementByID(String id, SOAPElementAxisImpl elem)
id
- (id name without the #)elem
- is the MessageElementvoid registerResolverForID(String id, IDResolver resolver)
int getCurrentRecordPos()
int getStartOfMappingsPos()
void pushNewElement(SOAPElementAxisImpl elem)
void pushElementHandler(SOAPHandler handler)
void replaceElementHandler(SOAPHandler handler)
SOAPHandler popElementHandler()
boolean isDoneParsing()
void setProcessingRef(boolean ref)
ref
- boolean isProcessingRef()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |