|
|||||||||||
| 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 org.xml.sax.InputSource |
inputSource
|
protected static org.apache.commons.logging.Log |
log
|
protected MessageContext |
msgContext
|
protected int |
startOfMappingsPos
|
| Constructor Summary | |
DeserializationContextImpl(org.xml.sax.InputSource is,
MessageContext ctx,
java.lang.String messageType)
Construct Deserializer |
|
DeserializationContextImpl(org.xml.sax.InputSource is,
MessageContext ctx,
java.lang.String messageType,
SOAPEnvelope env)
Construct Deserializer |
|
DeserializationContextImpl(MessageContext ctx,
SOAPHandler initialHandler)
Construct Deserializer using MessageContext and EnvelopeBuilder handler |
|
| 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. |
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(java.lang.String namespace,
java.lang.String localName,
java.lang.String qName)
endElement is called at the end tag of an element |
void |
endEntity(java.lang.String name)
|
void |
endPrefixMapping(java.lang.String prefix)
|
MessageElement |
getCurElement()
Get current MessageElement |
java.util.ArrayList |
getCurrentNSMappings()
Get the Namespace Mappings. |
int |
getCurrentRecordPos()
Get the current position in the record. |
Deserializer |
getDeserializer(java.lang.Class cls,
QName xmlType)
Get a Deserializer which can turn a given xml type into a given Java type |
Deserializer |
getDeserializerForType(QName xmlType)
Convenience method to get the Deserializer for a specific xmlType. |
org.xml.sax.Locator |
getDocumentLocator()
|
MessageElement |
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. |
SOAPEnvelope |
getEnvelope()
Get Envelope |
MessageContext |
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 |
getQNameFromString(java.lang.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 |
QName |
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 |
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 |
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(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 |
popElementHandler()
|
void |
processingInstruction(java.lang.String p1,
java.lang.String p2)
|
void |
pushElementHandler(SOAPHandler handler)
Management of sub-handlers (deserializers) |
void |
pushNewElement(MessageElement elem)
Push the MessageElement into the recorder |
void |
registerElementByID(java.lang.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(java.lang.String href,
Deserializer dser)
During deserialization, an element with an href=#id |
void |
registerResolverForID(java.lang.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. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
|
void |
setCurElement(MessageElement el)
Set current MessageElement |
void |
setDocumentLocator(org.xml.sax.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(java.lang.String p1)
|
void |
startCDATA()
|
void |
startDocument()
SAX event handlers |
void |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
|
void |
startElement(java.lang.String namespace,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
startElement is called when an element is read. |
void |
startEntity(java.lang.String name)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.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 static org.apache.commons.logging.Log log
protected MessageContext msgContext
protected org.xml.sax.InputSource inputSource
protected int startOfMappingsPos
protected boolean haveSeenSchemaNS
| Constructor Detail |
public DeserializationContextImpl(MessageContext ctx,
SOAPHandler initialHandler)
ctx - is the MessageContextinitialHandler - is the EnvelopeBuilder handler
public DeserializationContextImpl(org.xml.sax.InputSource is,
MessageContext ctx,
java.lang.String messageType)
is - is the InputSourcectx - is the MessageContextmessageType - is the MessageType to construct an EnvelopeBuilder
public DeserializationContextImpl(org.xml.sax.InputSource is,
MessageContext ctx,
java.lang.String messageType,
SOAPEnvelope 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 org.xml.sax.SAXException
parse in interface DeserializationContextorg.xml.sax.SAXExceptionpublic MessageElement getCurElement()
getCurElement in interface DeserializationContextpublic void setCurElement(MessageElement el)
setCurElement in interface DeserializationContextpublic MessageContext getMessageContext()
getMessageContext in interface DeserializationContextpublic SOAPEnvelope getEnvelope()
getEnvelope in interface DeserializationContextpublic SAX2EventRecorder getRecorder()
getRecorder in interface DeserializationContextpublic void setRecorder(SAX2EventRecorder recorder)
setRecorder in interface DeserializationContextpublic java.util.ArrayList getCurrentNSMappings()
getCurrentNSMappings in interface DeserializationContextpublic java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI in interface DeserializationContextpublic QName getQNameFromString(java.lang.String qNameStr)
getQNameFromString in interface DeserializationContextqNameStr - is the prefixed name from the xml text
public QName getTypeFromXSITypeAttr(java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
getTypeFromXSITypeAttr in interface DeserializationContextnamespace - of the elementlocalName - is the local name of the elementattrs - are the attributes on the element
public QName getTypeFromAttributes(java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
getTypeFromAttributes in interface DeserializationContextnamespace - of the elementlocalName - is the local name of the elementattrs - are the attributes on the elementpublic boolean isNil(org.xml.sax.Attributes attrs)
isNil in interface DeserializationContextattrs - are the element attributes.
public final Deserializer getDeserializer(java.lang.Class cls,
QName xmlType)
getDeserializer in interface DeserializationContextpublic final Deserializer getDeserializerForType(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 MessageElement getElementByID(java.lang.String id)
getElementByID in interface DeserializationContextid - is the value of an href attribute
public java.lang.Object getObjectByRef(java.lang.String href)
getObjectByRef in interface DeserializationContexthref - is the value of an href attribute (or an Attachment id)
public void addObjectById(java.lang.String id,
java.lang.Object obj)
addObjectById in interface DeserializationContextid - (id name without the #)obj - is the deserialized object for this id.
public void registerFixup(java.lang.String href,
Deserializer dser)
registerFixup in interface DeserializationContexthref - (#id syntax)dser - is the deserializer of the element
public void registerElementByID(java.lang.String id,
MessageElement elem)
registerElementByID in interface DeserializationContextid - (id name without the #)elem - is the MessageElement
public void registerResolverForID(java.lang.String id,
IDResolver resolver)
registerResolverForID in interface DeserializationContextpublic int getCurrentRecordPos()
getCurrentRecordPos in interface DeserializationContextpublic int getStartOfMappingsPos()
getStartOfMappingsPos in interface DeserializationContextpublic void pushNewElement(MessageElement 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 org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic boolean isDoneParsing()
isDoneParsing in interface DeserializationContext
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in interface org.xml.sax.ContentHandlerstartPrefixMapping in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in interface org.xml.sax.ContentHandlerendPrefixMapping in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlersetDocumentLocator in class org.xml.sax.helpers.DefaultHandlerpublic org.xml.sax.Locator getDocumentLocator()
public void characters(char[] p1,
int p2,
int p3)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void ignorableWhitespace(char[] p1,
int p2,
int p3)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.ContentHandlerignorableWhitespace in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void processingInstruction(java.lang.String p1,
java.lang.String p2)
throws org.xml.sax.SAXException
processingInstruction in interface org.xml.sax.ContentHandlerprocessingInstruction in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void skippedEntity(java.lang.String p1)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlerskippedEntity in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void startElement(java.lang.String namespace,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void endElement(java.lang.String namespace,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
startDTD in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException
public void endDTD()
throws org.xml.sax.SAXException
endDTD in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException
public void startEntity(java.lang.String name)
throws org.xml.sax.SAXException
startEntity in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException
public void endEntity(java.lang.String name)
throws org.xml.sax.SAXException
endEntity in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException
public void startCDATA()
throws org.xml.sax.SAXException
startCDATA in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException
public void endCDATA()
throws org.xml.sax.SAXException
endCDATA in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException
public void comment(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
comment in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
resolveEntity in interface org.xml.sax.EntityResolverresolveEntity in class org.xml.sax.helpers.DefaultHandler
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||