|
|||||||||||
| 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.DeserializationContext
This interface describes the AXIS DeserializationContext, note that an AXIS compliant DeserializationContext must extend the org.xml.sax.helpers.DefaultHandler.
| 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 | |
DeserializationContext(org.xml.sax.InputSource is,
MessageContext ctx,
java.lang.String messageType)
Construct Deserializer |
|
DeserializationContext(org.xml.sax.InputSource is,
MessageContext ctx,
java.lang.String messageType,
SOAPEnvelope env)
Construct Deserializer |
|
DeserializationContext(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 |
getDeserializerForClass(java.lang.Class cls)
Convenience method to get the Deserializer for a specific java class from its meta data. |
Deserializer |
getDeserializerForType(QName xmlType)
Convenience method to get the Deserializer for a specific xmlType. |
java.lang.Class |
getDestinationClass()
Allows the destination class to be retrieved so that downstream deserializers like ArrayDeserializer can pick it up when deserializing its components using getDeserializerForClass |
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. |
java.lang.String |
getEncodingStyle()
Returns this context's encoding style. |
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 |
SOAPConstants |
getSOAPConstants()
returns the soap constants. |
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. |
boolean |
hasElementsByID()
Return true if any ids are being tracked by this DeserializationContext |
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()
|
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 |
setDestinationClass(java.lang.Class destClass)
Allows the destination class to be set so that downstream deserializers like ArrayDeserializer can pick it up when deserializing its components using getDeserializerForClass |
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
setProcessingRef(boolean ref)
|
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 DeserializationContext(MessageContext ctx,
SOAPHandler initialHandler)
ctx - is the MessageContextinitialHandler - is the EnvelopeBuilder handler
public DeserializationContext(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 DeserializationContext(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 SOAPConstants getSOAPConstants()
public void parse()
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic MessageElement getCurElement()
public void setCurElement(MessageElement el)
public MessageContext getMessageContext()
public java.lang.String getEncodingStyle()
String valuepublic SOAPEnvelope getEnvelope()
public SAX2EventRecorder getRecorder()
public void setRecorder(SAX2EventRecorder recorder)
public java.util.ArrayList getCurrentNSMappings()
public java.lang.String getNamespaceURI(java.lang.String prefix)
public QName getQNameFromString(java.lang.String qNameStr)
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)
namespace - 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)
namespace - of the elementlocalName - is the local name of the elementattrs - are the attributes on the elementpublic boolean isNil(org.xml.sax.Attributes attrs)
attrs - are the element attributes.
public final Deserializer getDeserializer(java.lang.Class cls,
QName xmlType)
public Deserializer getDeserializerForClass(java.lang.Class cls)
cls - is the Class used to find the deserializer
public void setDestinationClass(java.lang.Class destClass)
destClass - is the Class of the component to be deserializedpublic java.lang.Class getDestinationClass()
public final Deserializer getDeserializerForType(QName xmlType)
xmlType - is QName for a type to deserialize
public TypeMapping getTypeMapping()
public TypeMappingRegistry getTypeMappingRegistry()
public MessageElement getElementByID(java.lang.String id)
id - is the value of an href attribute
public java.lang.Object getObjectByRef(java.lang.String href)
href - is the value of an href attribute (or an Attachment id)
public void addObjectById(java.lang.String id,
java.lang.Object obj)
id - (id name without the #)obj - is the deserialized object for this id.
public void registerFixup(java.lang.String href,
Deserializer dser)
href - (#id syntax)dser - is the deserializer of the element
public void registerElementByID(java.lang.String id,
MessageElement elem)
id - (id name without the #)elem - is the MessageElement
public void registerResolverForID(java.lang.String id,
IDResolver resolver)
public boolean hasElementsByID()
public int getCurrentRecordPos()
public int getStartOfMappingsPos()
public void pushNewElement(MessageElement elem)
public void pushElementHandler(SOAPHandler handler)
public void replaceElementHandler(SOAPHandler handler)
public SOAPHandler popElementHandler()
public void setProcessingRef(boolean ref)
public boolean isProcessingRef()
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic boolean isDoneParsing()
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlerpublic 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.ContentHandlerorg.xml.sax.SAXException
public void ignorableWhitespace(char[] p1,
int p2,
int p3)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.ContentHandlerorg.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.ContentHandlerorg.xml.sax.SAXException
public void skippedEntity(java.lang.String p1)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlerorg.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.ContentHandlerorg.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.ContentHandlerorg.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.EntityResolver
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||