|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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 EnvelopeBuilder| Method Detail |
public void deserializing(boolean isDeserializing)
public void parse()
throws SAXException
parse in interface DeserializationContextSAXExceptionpublic SOAPElementAxisImpl getCurElement()
getCurElement in interface DeserializationContextpublic void setCurElement(SOAPElementAxisImpl el)
setCurElement in interface DeserializationContextpublic MessageContext getMessageContext()
getMessageContext in interface DeserializationContextpublic SOAPEnvelopeAxisImpl getEnvelope()
getEnvelope in interface DeserializationContextpublic SAX2EventRecorder getRecorder()
getRecorder in interface DeserializationContextpublic void setRecorder(SAX2EventRecorder recorder)
setRecorder in interface DeserializationContextpublic ArrayList getCurrentNSMappings()
getCurrentNSMappings in interface DeserializationContextpublic String getNamespaceURI(String prefix)
getNamespaceURI in interface DeserializationContextpublic javax.xml.namespace.QName getQNameFromString(String qNameStr)
getQNameFromString in interface DeserializationContextqNameStr - is the prefixed name from the xml text
public javax.xml.namespace.QName getTypeFromXSITypeAttr(String namespace, String localName, Attributes attrs)
getTypeFromXSITypeAttr in interface DeserializationContextnamespace - 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 DeserializationContextnamespace - of the elementlocalName - is the local name of the elementattrs - are the attributes on the elementpublic Deserializer getDeserializerForClass(Class cls)
getDeserializerForClass in interface DeserializationContextcls - is the Class used to find the deserializer
public boolean isNil(Attributes attrs)
isNil in interface DeserializationContextattrs - are the element attributes.
public final Deserializer getDeserializer(Class cls, javax.xml.namespace.QName xmlType)
getDeserializer in interface DeserializationContextpublic final Deserializer getDeserializerForType(javax.xml.namespace.QName xmlType)
getDeserializerForType in interface DeserializationContextxmlType - is QName for a type to deserialize
public TypeMapping getTypeMapping()
getTypeMapping in interface DeserializationContextpublic TypeMappingRegistry getTypeMappingRegistry()
getTypeMappingRegistry in interface DeserializationContextpublic SOAPElementAxisImpl getElementByID(String id)
getElementByID in interface DeserializationContextid - is the value of an href attribute
public Object getObjectByRef(String href)
getObjectByRef in interface DeserializationContexthref - is the value of an href attribute (or an Attachment id)
public void addObjectById(String id, Object obj)
addObjectById in interface DeserializationContextid - (id name without the #)obj - is the deserialized object for this id.public void registerFixup(String href, Deserializer dser)
registerFixup in interface DeserializationContexthref - (#id syntax)dser - is the deserializer of the elementpublic void registerElementByID(String id, SOAPElementAxisImpl elem)
registerElementByID in interface DeserializationContextid - (id name without the #)elem - is the MessageElementpublic void registerResolverForID(String id, IDResolver resolver)
registerResolverForID in interface DeserializationContextpublic int getCurrentRecordPos()
getCurrentRecordPos in interface DeserializationContextpublic int getStartOfMappingsPos()
getStartOfMappingsPos in interface DeserializationContextpublic void pushNewElement(SOAPElementAxisImpl elem)
pushNewElement in interface DeserializationContextpublic void pushElementHandler(SOAPHandler handler)
pushElementHandler in interface DeserializationContextpublic void replaceElementHandler(SOAPHandler handler)
replaceElementHandler in interface DeserializationContextpublic SOAPHandler popElementHandler()
popElementHandler in interface DeserializationContextpublic void setProcessingRef(boolean ref)
DeserializationContext
setProcessingRef in interface DeserializationContextref - public boolean isProcessingRef()
DeserializationContext
isProcessingRef in interface DeserializationContext
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXException
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic boolean isDoneParsing()
isDoneParsing in interface DeserializationContextpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerpublic Locator getDocumentLocator()
public void characters(char[] p1,
int p2,
int p3)
throws SAXException
characters in interface ContentHandlerSAXException
public void ignorableWhitespace(char[] p1,
int p2,
int p3)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXExceptionpublic void processingInstruction(String p1, String p2) throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionpublic void skippedEntity(String p1) throws SAXException
skippedEntity in interface ContentHandlerSAXExceptionpublic void startElement(String namespace, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerSAXExceptionpublic void endElement(String namespace, String localName, String qName) throws SAXException
endElement in interface ContentHandlerSAXExceptionpublic void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD in interface LexicalHandlerSAXException
public void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXExceptionpublic void startEntity(String name) throws SAXException
startEntity in interface LexicalHandlerSAXExceptionpublic void endEntity(String name) throws SAXException
endEntity in interface LexicalHandlerSAXException
public void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXException
public void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXException
public void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlerSAXExceptionpublic 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 | ||||||||||