org.jboss.net.jmx.adaptor
Class AttributeSer

java.lang.Object
  extended byorg.jboss.net.jmx.adaptor.AttributeSer
All Implemented Interfaces:
java.io.Serializable, Serializer (src) , Serializer (src)

public class AttributeSer
extends java.lang.Object
implements Serializer (src)

An AttributeSer is be used to serialize Attribute objects using the SOAP-ENC encoding style.

Since:
26.04.02
See Also:
Serialized Form

Field Summary
protected  QName (src) xmlType
          this is the fully-qualified type that we serialize into
 
Constructor Summary
AttributeSer(java.lang.Class javaType, QName (src)  xmlType)
           
 
Method Summary
 java.lang.String getMechanismType()
          we use sax approach
 void serialize(QName (src)  name, org.xml.sax.Attributes attributes, java.lang.Object value, SerializationContext (src)  context)
          turns a JMX objectname into a string-based xml element
 org.w3c.dom.Element writeSchema(java.lang.Class forClass, Types (src)  types)
          Return XML schema for the specified type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmlType

protected QName (src)  xmlType
this is the fully-qualified type that we serialize into

Constructor Detail

AttributeSer

public AttributeSer(java.lang.Class javaType,
                    QName (src)  xmlType)
Method Detail

serialize

public void serialize(QName (src)  name,
                      org.xml.sax.Attributes attributes,
                      java.lang.Object value,
                      SerializationContext (src)  context)
               throws java.io.IOException
turns a JMX objectname into a string-based xml element

Specified by:
serialize in interface Serializer (src)
Parameters:
name - the name of the element that carries our type
attributes - the attributes of the element that carries our type
value - the objectname to serialize
context - the serialization context we live into
Throws:
java.io.IOException

getMechanismType

public java.lang.String getMechanismType()
we use sax approach

Specified by:
getMechanismType in interface Serializer (src)

writeSchema

public org.w3c.dom.Element writeSchema(java.lang.Class forClass,
                                       Types (src)  types)
                                throws java.lang.Exception
Return XML schema for the specified type. The Attribute type has a string-based name attribute and an case-typed value element. Note that this function has been adopted to the Axis 1.1 Beta Emitter code.

Specified by:
writeSchema in interface Serializer (src)
Parameters:
forClass - the Java Class we're writing out schema for
types - the Java2WSDL Types object which holds the context for the WSDL being generated.
Returns:
a type element containing a schema simpleType/complexType
Throws:
java.lang.Exception
See Also:
Types (src)