org.apache.axis.encoding
public class DeserializationContext extends DefaultHandler implements DeserializationContext, LexicalHandler
| Field Summary | |
|---|---|
| protected boolean | haveSeenSchemaNS |
| protected InputSource | inputSource |
| protected static Log | log |
| protected MessageContext | msgContext |
| protected int | startOfMappingsPos |
| Constructor Summary | |
|---|---|
| DeserializationContext(MessageContext ctx, SOAPHandler initialHandler)
Construct Deserializer using MessageContext and EnvelopeBuilder handler | |
| DeserializationContext(InputSource is, MessageContext ctx, String messageType)
Construct Deserializer | |
| DeserializationContext(InputSource is, MessageContext ctx, String messageType, SOAPEnvelope env)
Construct Deserializer | |
| 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. it does not start with #).
|
| void | characters(char[] p1, int p2, int p3) |
| void | comment(char[] ch, int start, int length) |
| void | deserializing(boolean isDeserializing) |
| void | endCDATA() |
| void | endDocument()
endDocument is invoked at the end of the document. |
| void | endDTD() |
| void | endElement(String namespace, String localName, String qName)
endElement is called at the end tag of an element |
| void | endEntity(String name) |
| void | endPrefixMapping(String prefix) |
| MessageElement | getCurElement()
Get current MessageElement
|
| ArrayList | getCurrentNSMappings()
Get the Namespace Mappings. |
| int | getCurrentRecordPos()
Get the current position in the record. |
| Deserializer | getDeserializer(Class cls, 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(QName xmlType)
Convenience method to get the Deserializer for a specific
xmlType. |
| Class | getDestinationClass()
Allows the destination class to be retrieved so that downstream
deserializers like ArrayDeserializer can pick it up when
deserializing its components using getDeserializerForClass |
| Locator | getDocumentLocator() |
| MessageElement | 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. |
| String | getEncodingStyle()
Returns this context's encoding style. |
| SOAPEnvelope | 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.
|
| QName | getQNameFromString(String qNameStr)
Construct a QName from a string of the form |
| SAX2EventRecorder | getRecorder()
Get Event Recorder |
| SOAPConstants | getSOAPConstants()
returns the soap constants. |
| int | getStartOfMappingsPos()
Get the start of the mapping position |
| 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. |
| 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 | hasElementsByID()
Return true if any ids are being tracked by this DeserializationContext
|
| void | ignorableWhitespace(char[] p1, int p2, int p3) |
| 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() |
| void | parse()
Create a parser and parse the inputSource |
| SOAPHandler | popElementHandler() |
| void | processingInstruction(String p1, String p2) |
| void | pushElementHandler(SOAPHandler handler)
Management of sub-handlers (deserializers) |
| void | pushNewElement(MessageElement elem)
Push the MessageElement into the recorder |
| void | registerElementByID(String id, MessageElement 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) Replace the handler at the top of the stack.
|
| InputSource | resolveEntity(String publicId, String systemId) |
| void | setCurElement(MessageElement el)
Set current MessageElement
|
| void | setDestinationClass(Class destClass)
Allows the destination class to be set so that downstream
deserializers like ArrayDeserializer can pick it up when
deserializing its components using getDeserializerForClass |
| void | setDocumentLocator(Locator locator) |
| void | setProcessingRef(boolean ref) |
| void | setRecorder(SAX2EventRecorder recorder)
Set Event Recorder |
| void | skippedEntity(String p1) |
| void | startCDATA() |
| void | startDocument()
SAX event handlers |
| void | startDTD(String name, String publicId, String systemId) |
| void | startElement(String namespace, String localName, String qName, Attributes attributes)
startElement is called when an element is read. |
| void | startEntity(String name) |
| void | startPrefixMapping(String prefix, String uri) Record the current set of prefix mappings in the nsMappings table.
|
Parameters: ctx is the MessageContext initialHandler is the EnvelopeBuilder handler
Parameters: is is the InputSource ctx is the MessageContext messageType is the MessageType to construct an EnvelopeBuilder
Parameters: is is the InputSource ctx is the MessageContext messageType is the MessageType to construct an EnvelopeBuilder env is the SOAPEnvelope to construct an EnvelopeBuilder
Parameters: id (id name without the #) obj is the deserialized object for this id.
Parameters: cls is the Class used to find the deserializer
Returns: Deserializer
Parameters: xmlType is QName for a type to deserialize
Returns: Deserializer
Returns: the Class of the component to be deserialized
Parameters: id is the value of an href attribute
Returns: MessageElement or null
Returns: a String value
Parameters: href is the value of an href attribute (or an Attachment id)
Returns: MessageElement other Object or null
Parameters: qNameStr is the prefixed name from the xml text
Returns: QName
Parameters: namespace of the element localName is the local name of the element attrs are the attributes on the element
Parameters: namespace of the element localName is the local name of the element attrs are the attributes on the element
Returns: TypeMapping or null
Returns: true if any ides are being tracked by this DeserializationContext
Parameters: attrs are the element attributes.
Returns: true if xsi:nil is true
Parameters: id (id name without the #) elem is the MessageElement
Parameters: href (#id syntax) dser is the deserializer of the element
Parameters: destClass is the Class of the component to be deserialized