|
|||||||||||
PREV CLASS NEXT CLASS | 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(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 |
public void parse() throws SAXException
SAXException
public SOAPElementAxisImpl getCurElement()
public void setCurElement(SOAPElementAxisImpl el)
public MessageContext getMessageContext()
public SOAPEnvelopeAxisImpl getEnvelope()
public SAX2EventRecorder getRecorder()
public void setRecorder(SAX2EventRecorder recorder)
public ArrayList getCurrentNSMappings()
public String getNamespaceURI(String prefix)
public javax.xml.namespace.QName getQNameFromString(String qNameStr)
qNameStr
- is the prefixed name from the xml text
public 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 elementpublic javax.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 elementpublic boolean isNil(Attributes attrs)
attrs
- are the element attributes.
public Deserializer getDeserializer(Class cls, javax.xml.namespace.QName xmlType)
public Deserializer getDeserializerForType(javax.xml.namespace.QName xmlType)
xmlType
- is QName for a type to deserialize
public Deserializer getDeserializerForClass(Class cls)
cls
- is the Class used to find the deserializer
public TypeMapping getTypeMapping()
public TypeMappingRegistry getTypeMappingRegistry()
public SOAPElementAxisImpl getElementByID(String id)
id
- is the value of an href attribute
public Object getObjectByRef(String href)
public void addObjectById(String _id, Object obj)
obj
- is the deserialized object for this id.public void registerFixup(String href, Deserializer dser)
href
- (#id syntax)dser
- is the deserializer of the elementpublic void registerElementByID(String id, SOAPElementAxisImpl elem)
id
- (id name without the #)elem
- is the MessageElementpublic void registerResolverForID(String id, IDResolver resolver)
public int getCurrentRecordPos()
public int getStartOfMappingsPos()
public void pushNewElement(SOAPElementAxisImpl elem)
public void pushElementHandler(SOAPHandler handler)
public void replaceElementHandler(SOAPHandler handler)
public SOAPHandler popElementHandler()
public boolean isDoneParsing()
public void setProcessingRef(boolean ref)
ref
- public boolean isProcessingRef()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |