org.apache.axis.message
Class MessageElement

java.lang.Object
  |
  +--org.apache.axis.message.MessageElement
Direct Known Subclasses:
SOAPBodyElement, SOAPEnvelope, SOAPHeader

public class MessageElement
extends java.lang.Object


Inner Class Summary
protected static class MessageElement.QNameAttr
           
 
Field Summary
protected  boolean _isDirty
           
protected  boolean _isRoot
           
protected  org.xml.sax.helpers.AttributesImpl attributes
           
protected  DeserializationContext context
           
protected  org.w3c.dom.Element elementRep
           
protected  int endEventIndex
           
protected  java.lang.String href
           
protected  java.lang.String id
           
protected  SOAPEnvelope message
           
protected  java.lang.String name
           
 java.util.ArrayList namespaces
           
protected  java.lang.String namespaceURI
           
 java.util.Hashtable nsDecls
           
protected  java.lang.String prefix
           
protected  java.util.Vector qNameAttrs
           
protected  SAX2EventRecorder recorder
           
protected  int startEventIndex
           
protected  QName typeQName
           
 
Method Summary
 void addAttribute(java.lang.String namespace, java.lang.String localName, QName value)
           
 org.w3c.dom.Element getAsDOM()
           
 SOAPEnvelope getEnvelope()
           
 Deserializer getFixupDeserializer()
           
 java.lang.String getID()
           
 java.lang.String getName()
           
 java.lang.String getNamespaceURI()
           
 java.lang.String getPrefix()
           
 MessageElement getRealElement()
           
 SAX2EventRecorder getRecorder()
           
 QName getType()
           
 java.lang.Object getValueAsType(QName type)
           
 boolean isDirty()
           
 boolean isRoot()
           
 void output(SerializationContext context)
          This is the public output() method, which will always simply use the recorded SAX stream for this element if it is available.
protected  void outputImpl(SerializationContext context)
          Subclasses can override
 void publishContents(org.xml.sax.ContentHandler handler)
           
 void publishToHandler(org.xml.sax.ContentHandler handler)
           
 void setDirty(boolean dirty)
           
 void setEndIndex(int endIndex)
           
 void setEnvelope(SOAPEnvelope env)
           
 void setFixupDeserializer(Deserializer dser)
           
 void setName(java.lang.String name)
           
 void setNamespaceURI(java.lang.String nsURI)
           
 void setPrefix(java.lang.String prefix)
           
 void setRecorder(SAX2EventRecorder rec)
           
 void setType(QName qName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

prefix

protected java.lang.String prefix

namespaceURI

protected java.lang.String namespaceURI

attributes

protected org.xml.sax.helpers.AttributesImpl attributes

id

protected java.lang.String id

href

protected java.lang.String href

_isRoot

protected boolean _isRoot

message

protected SOAPEnvelope message

_isDirty

protected boolean _isDirty

context

protected DeserializationContext context

typeQName

protected QName typeQName

qNameAttrs

protected java.util.Vector qNameAttrs

nsDecls

public java.util.Hashtable nsDecls

recorder

protected SAX2EventRecorder recorder

startEventIndex

protected int startEventIndex

endEventIndex

protected int endEventIndex

elementRep

protected org.w3c.dom.Element elementRep

namespaces

public java.util.ArrayList namespaces
Method Detail

setFixupDeserializer

public void setFixupDeserializer(Deserializer dser)

getFixupDeserializer

public Deserializer getFixupDeserializer()

setEndIndex

public void setEndIndex(int endIndex)

isDirty

public boolean isDirty()

setDirty

public void setDirty(boolean dirty)

isRoot

public boolean isRoot()

getID

public java.lang.String getID()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getPrefix

public java.lang.String getPrefix()

setPrefix

public void setPrefix(java.lang.String prefix)

getNamespaceURI

public java.lang.String getNamespaceURI()

setNamespaceURI

public void setNamespaceURI(java.lang.String nsURI)

getType

public QName getType()

setType

public void setType(QName qName)

getRecorder

public SAX2EventRecorder getRecorder()

setRecorder

public void setRecorder(SAX2EventRecorder rec)

getValueAsType

public java.lang.Object getValueAsType(QName type)
                                throws java.lang.Exception

addAttribute

public void addAttribute(java.lang.String namespace,
                         java.lang.String localName,
                         QName value)

setEnvelope

public void setEnvelope(SOAPEnvelope env)

getEnvelope

public SOAPEnvelope getEnvelope()

getRealElement

public MessageElement getRealElement()

getAsDOM

public org.w3c.dom.Element getAsDOM()
                             throws java.lang.Exception

publishToHandler

public void publishToHandler(org.xml.sax.ContentHandler handler)
                      throws org.xml.sax.SAXException

publishContents

public void publishContents(org.xml.sax.ContentHandler handler)
                     throws org.xml.sax.SAXException

output

public final void output(SerializationContext context)
                  throws java.lang.Exception
This is the public output() method, which will always simply use the recorded SAX stream for this element if it is available. If not, this method calls outputImpl() to allow subclasses and programmatically created messages to serialize themselves.
Parameters:
context - the SerializationContext we will write to.

outputImpl

protected void outputImpl(SerializationContext context)
                   throws java.lang.Exception
Subclasses can override


Copyright © 2001 Apache XML Project. All Rights Reserved.