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