|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--org.apache.axis.encoding.DeserializationContextImpl
| Field Summary | |
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,
EnvelopeBuilder 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 |
endDocument()
endDocument is invoked at the end of the document. |
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 |
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 |
getDeserializerForType(QName xmlType)
Convenience method to get the Deserializer for a specific xmlType. |
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 |
SOAPHandler |
getTopHandler()
Management of sub-handlers (deserializers) |
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. |
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. |
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)
|
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. |
void |
setCurElement(MessageElement el)
Set current MessageElement |
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
setRecorder(SAX2EventRecorder recorder)
Set Event Recorder |
void |
skippedEntity(java.lang.String p1)
|
void |
startDocument()
SAX event handlers |
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 |
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, resolveEntity, 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
| Constructor Detail |
public DeserializationContextImpl(MessageContext ctx,
EnvelopeBuilder 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 parse()
throws org.xml.sax.SAXException
parse in interface DeserializationContextpublic 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 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 getDeserializerForType(QName xmlType)
getDeserializerForType in interface DeserializationContextxmlType - is QName for a type to deserializepublic 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 attributepublic 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 SOAPHandler getTopHandler()
getTopHandler in interface DeserializationContextpublic void pushElementHandler(SOAPHandler handler)
pushElementHandler in interface DeserializationContextpublic void replaceElementHandler(SOAPHandler handler)
replaceElementHandler in interface DeserializationContextpublic SOAPHandler popElementHandler()
popElementHandler in interface DeserializationContext
public void startDocument()
throws org.xml.sax.SAXException
startDocument in class org.xml.sax.helpers.DefaultHandler
public void endDocument()
throws org.xml.sax.SAXException
endDocument in class org.xml.sax.helpers.DefaultHandlerpublic boolean isDoneParsing()
isDoneParsing in interface DeserializationContext
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in class org.xml.sax.helpers.DefaultHandler
public void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in class org.xml.sax.helpers.DefaultHandlerpublic void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] p1,
int p2,
int p3)
throws org.xml.sax.SAXException
characters in class org.xml.sax.helpers.DefaultHandler
public void ignorableWhitespace(char[] p1,
int p2,
int p3)
throws org.xml.sax.SAXException
ignorableWhitespace in class org.xml.sax.helpers.DefaultHandler
public void processingInstruction(java.lang.String p1,
java.lang.String p2)
throws org.xml.sax.SAXException
processingInstruction in class org.xml.sax.helpers.DefaultHandler
public void skippedEntity(java.lang.String p1)
throws org.xml.sax.SAXException
skippedEntity in class org.xml.sax.helpers.DefaultHandler
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 class org.xml.sax.helpers.DefaultHandler
public void endElement(java.lang.String namespace,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in class org.xml.sax.helpers.DefaultHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||