|
|||||||||||
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 handlerpublic 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 EnvelopeBuilderpublic 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 EnvelopeBuilderMethod Detail |
public void deserializing(boolean isDeserializing)
public void parse() throws org.xml.sax.SAXException
parse
in interface DeserializationContext
org.xml.sax.SAXException
public MessageElement getCurElement()
getCurElement
in interface DeserializationContext
public void setCurElement(MessageElement el)
setCurElement
in interface DeserializationContext
public MessageContext getMessageContext()
getMessageContext
in interface DeserializationContext
public SOAPEnvelope getEnvelope()
getEnvelope
in interface DeserializationContext
public SAX2EventRecorder getRecorder()
getRecorder
in interface DeserializationContext
public void setRecorder(SAX2EventRecorder recorder)
setRecorder
in interface DeserializationContext
public java.util.ArrayList getCurrentNSMappings()
getCurrentNSMappings
in interface DeserializationContext
public java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI
in interface DeserializationContext
public QName getQNameFromString(java.lang.String qNameStr)
getQNameFromString
in interface DeserializationContext
qNameStr
- 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 DeserializationContext
namespace
- of the elementlocalName
- is the local name of the elementattrs
- are the attributes on the elementpublic QName getTypeFromAttributes(java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs)
getTypeFromAttributes
in interface DeserializationContext
namespace
- 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 DeserializationContext
attrs
- are the element attributes.
public final Deserializer getDeserializer(java.lang.Class cls, QName xmlType)
getDeserializer
in interface DeserializationContext
public final Deserializer getDeserializerForType(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 MessageElement getElementByID(java.lang.String id)
getElementByID
in interface DeserializationContext
id
- is the value of an href attribute
public java.lang.Object getObjectByRef(java.lang.String href)
getObjectByRef
in interface DeserializationContext
href
- 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 DeserializationContext
id
- (id name without the #)obj
- is the deserialized object for this id.public void registerFixup(java.lang.String href, Deserializer dser)
registerFixup
in interface DeserializationContext
href
- (#id syntax)dser
- is the deserializer of the elementpublic void registerElementByID(java.lang.String id, MessageElement elem)
registerElementByID
in interface DeserializationContext
id
- (id name without the #)elem
- is the MessageElementpublic void registerResolverForID(java.lang.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(MessageElement 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 org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public 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.ContentHandler
startPrefixMapping
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
endPrefixMapping
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
public 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.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void ignorableWhitespace(char[] p1, int p2, int p3) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
ignorableWhitespace
in class org.xml.sax.helpers.DefaultHandler
org.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.ContentHandler
processingInstruction
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void skippedEntity(java.lang.String p1) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
skippedEntity
in class org.xml.sax.helpers.DefaultHandler
org.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.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.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.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.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.LexicalHandler
org.xml.sax.SAXException
public void endDTD() throws org.xml.sax.SAXException
endDTD
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void startEntity(java.lang.String name) throws org.xml.sax.SAXException
startEntity
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endEntity(java.lang.String name) throws org.xml.sax.SAXException
endEntity
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void startCDATA() throws org.xml.sax.SAXException
startCDATA
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endCDATA() throws org.xml.sax.SAXException
endCDATA
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void comment(char[] ch, int start, int length) throws org.xml.sax.SAXException
comment
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
resolveEntity
in interface org.xml.sax.EntityResolver
resolveEntity
in class org.xml.sax.helpers.DefaultHandler
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |