org.apache.tuscany.sca.binding.notification.encoding
Class NewBrokerAckEnDeCoder

java.lang.Object
  extended by org.apache.tuscany.sca.binding.notification.encoding.AbstractEnDeCoder<NewBrokerAck>
      extended by org.apache.tuscany.sca.binding.notification.encoding.NewBrokerAckEnDeCoder
All Implemented Interfaces:
EnDeCoder<NewBrokerAck>

public class NewBrokerAckEnDeCoder
extends AbstractEnDeCoder<NewBrokerAck>


Field Summary
static javax.xml.namespace.QName QNAME
           
 
Fields inherited from class org.apache.tuscany.sca.binding.notification.encoding.AbstractEnDeCoder
registry
 
Constructor Summary
NewBrokerAckEnDeCoder(EncodingRegistry registry)
           
 
Method Summary
 NewBrokerAck decode(javax.xml.stream.XMLStreamReader reader)
          Decodes an XML stream to an object.
 void encode(NewBrokerAck encodingObject, javax.xml.stream.XMLStreamWriter writer)
          Encodes an object to the specified stream writer.
 javax.xml.namespace.QName getEncodingObjectQName()
          Gets the qualified name of the XML fragment for the Encoding object.
 java.lang.Class<NewBrokerAck> getEncodingObjectType()
          Returns the type of the encoding object.
 
Methods inherited from class org.apache.tuscany.sca.binding.notification.encoding.AbstractEnDeCoder
start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QNAME

public static final javax.xml.namespace.QName QNAME
Constructor Detail

NewBrokerAckEnDeCoder

public NewBrokerAckEnDeCoder(EncodingRegistry registry)
Method Detail

encode

public void encode(NewBrokerAck encodingObject,
                   javax.xml.stream.XMLStreamWriter writer)
            throws EncodingException
Description copied from interface: EnDeCoder
Encodes an object to the specified stream writer.

Parameters:
encodingObject - Object to be serialized.
writer - Stream writer to which the infoset is serialized.
Throws:
EncodingException - In case of any encoding error.

decode

public NewBrokerAck decode(javax.xml.stream.XMLStreamReader reader)
                    throws EncodingException
Description copied from interface: EnDeCoder
Decodes an XML stream to an object.

Parameters:
reader - XML stream from where the encoded XML is read.
Returns:
Encoding object.
Throws:
EncodingException - In case of any encoding error.

getEncodingObjectQName

public javax.xml.namespace.QName getEncodingObjectQName()
Description copied from interface: EnDeCoder
Gets the qualified name of the XML fragment for the Encoding object.

Returns:
Qualified name of the XML fragment.

getEncodingObjectType

public java.lang.Class<NewBrokerAck> getEncodingObjectType()
Description copied from interface: EnDeCoder
Returns the type of the encoding object.

Returns:
Encoding object type.