|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler org.apache.axis.encoding.DeserializationContextImpl
Field Summary | |
protected boolean |
haveSeenSchemaNS
|
protected InputSource |
inputSource
|
protected MessageContext |
msgContext
|
protected int |
startOfMappingsPos
|
Constructor Summary | |
DeserializationContextImpl(InputSource is,
MessageContext ctx,
String messageType)
Construct Deserializer |
|
DeserializationContextImpl(InputSource is,
MessageContext ctx,
String messageType,
SOAPEnvelopeAxisImpl env)
Construct Deserializer |
|
DeserializationContextImpl(MessageContext ctx,
SOAPHandler initialHandler)
Construct Deserializer using MessageContext and EnvelopeBuilder handler |
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. |
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)
|
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. |
Locator |
getDocumentLocator()
|
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. |
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()
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 |
processingInstruction(String p1,
String p2)
|
void |
pushElementHandler(SOAPHandler handler)
************************************************************* Management of sub-handlers (deserializers) |
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)
Replace the handler at the top of the stack. |
InputSource |
resolveEntity(String publicId,
String systemId)
|
void |
setCurElement(SOAPElementAxisImpl el)
Set current MessageElement |
void |
setDocumentLocator(Locator locator)
|
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 |
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. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
error, fatalError, notationDecl, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected MessageContext msgContext
protected InputSource inputSource
protected int startOfMappingsPos
protected boolean haveSeenSchemaNS
Constructor Detail |
public DeserializationContextImpl(MessageContext ctx, SOAPHandler initialHandler)
ctx
- is the MessageContextinitialHandler
- is the EnvelopeBuilder handlerpublic DeserializationContextImpl(InputSource is, MessageContext ctx, String messageType)
is
- is the InputSourcectx
- is the MessageContextmessageType
- is the MessageType to construct an EnvelopeBuilderpublic DeserializationContextImpl(InputSource is, MessageContext ctx, String messageType, SOAPEnvelopeAxisImpl env)
is
- is the InputSourcectx
- is the MessageContextmessageType
- is the MessageType to construct an EnvelopeBuilderenv
- is the SOAPEnvelope to construct an EnvelopeBuilderMethod Detail |
public void deserializing(boolean isDeserializing)
public void parse() throws SAXException
parse
in interface DeserializationContext
SAXException
public SOAPElementAxisImpl getCurElement()
getCurElement
in interface DeserializationContext
public void setCurElement(SOAPElementAxisImpl el)
setCurElement
in interface DeserializationContext
public MessageContext getMessageContext()
getMessageContext
in interface DeserializationContext
public SOAPEnvelopeAxisImpl getEnvelope()
getEnvelope
in interface DeserializationContext
public SAX2EventRecorder getRecorder()
getRecorder
in interface DeserializationContext
public void setRecorder(SAX2EventRecorder recorder)
setRecorder
in interface DeserializationContext
public ArrayList getCurrentNSMappings()
getCurrentNSMappings
in interface DeserializationContext
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface DeserializationContext
public javax.xml.namespace.QName getQNameFromString(String qNameStr)
getQNameFromString
in interface DeserializationContext
qNameStr
- is the prefixed name from the xml text
public javax.xml.namespace.QName getTypeFromXSITypeAttr(String namespace, String localName, Attributes attrs)
getTypeFromXSITypeAttr
in interface DeserializationContext
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)
getTypeFromAttributes
in interface DeserializationContext
namespace
- of the elementlocalName
- is the local name of the elementattrs
- are the attributes on the elementpublic Deserializer getDeserializerForClass(Class cls)
getDeserializerForClass
in interface DeserializationContext
cls
- is the Class used to find the deserializer
public boolean isNil(Attributes attrs)
isNil
in interface DeserializationContext
attrs
- are the element attributes.
public final Deserializer getDeserializer(Class cls, javax.xml.namespace.QName xmlType)
getDeserializer
in interface DeserializationContext
public final Deserializer getDeserializerForType(javax.xml.namespace.QName xmlType)
getDeserializerForType
in interface DeserializationContext
xmlType
- is QName for a type to deserialize
public TypeMapping getTypeMapping()
getTypeMapping
in interface DeserializationContext
public TypeMappingRegistry getTypeMappingRegistry()
getTypeMappingRegistry
in interface DeserializationContext
public SOAPElementAxisImpl getElementByID(String id)
getElementByID
in interface DeserializationContext
id
- is the value of an href attribute
public Object getObjectByRef(String href)
getObjectByRef
in interface DeserializationContext
href
- is the value of an href attribute (or an Attachment id)
public void addObjectById(String id, Object obj)
addObjectById
in interface DeserializationContext
id
- (id name without the #)obj
- is the deserialized object for this id.public void registerFixup(String href, Deserializer dser)
registerFixup
in interface DeserializationContext
href
- (#id syntax)dser
- is the deserializer of the elementpublic void registerElementByID(String id, SOAPElementAxisImpl elem)
registerElementByID
in interface DeserializationContext
id
- (id name without the #)elem
- is the MessageElementpublic void registerResolverForID(String id, IDResolver resolver)
registerResolverForID
in interface DeserializationContext
public int getCurrentRecordPos()
getCurrentRecordPos
in interface DeserializationContext
public int getStartOfMappingsPos()
getStartOfMappingsPos
in interface DeserializationContext
public void pushNewElement(SOAPElementAxisImpl elem)
pushNewElement
in interface DeserializationContext
public void pushElementHandler(SOAPHandler handler)
pushElementHandler
in interface DeserializationContext
public void replaceElementHandler(SOAPHandler handler)
replaceElementHandler
in interface DeserializationContext
public SOAPHandler popElementHandler()
popElementHandler
in interface DeserializationContext
public void setProcessingRef(boolean ref)
DeserializationContext
setProcessingRef
in interface DeserializationContext
ref
- public boolean isProcessingRef()
DeserializationContext
isProcessingRef
in interface DeserializationContext
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public boolean isDoneParsing()
isDoneParsing
in interface DeserializationContext
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
SAXException
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
public Locator getDocumentLocator()
public void characters(char[] p1, int p2, int p3) throws SAXException
characters
in interface ContentHandler
SAXException
public void ignorableWhitespace(char[] p1, int p2, int p3) throws SAXException
ignorableWhitespace
in interface ContentHandler
SAXException
public void processingInstruction(String p1, String p2) throws SAXException
processingInstruction
in interface ContentHandler
SAXException
public void skippedEntity(String p1) throws SAXException
skippedEntity
in interface ContentHandler
SAXException
public void startElement(String namespace, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
SAXException
public void endElement(String namespace, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
SAXException
public void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD
in interface LexicalHandler
SAXException
public void endDTD() throws SAXException
endDTD
in interface LexicalHandler
SAXException
public void startEntity(String name) throws SAXException
startEntity
in interface LexicalHandler
SAXException
public void endEntity(String name) throws SAXException
endEntity
in interface LexicalHandler
SAXException
public void startCDATA() throws SAXException
startCDATA
in interface LexicalHandler
SAXException
public void endCDATA() throws SAXException
endCDATA
in interface LexicalHandler
SAXException
public void comment(char[] ch, int start, int length) throws SAXException
comment
in interface LexicalHandler
SAXException
public InputSource resolveEntity(String publicId, String systemId)
resolveEntity
in interface EntityResolver
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |