org.apache.axis.encoding
Class TypeMappingRegistry
java.lang.Object
|
+--org.apache.axis.encoding.TypeMappingRegistry
- All Implemented Interfaces:
- java.io.Serializable, Serializer
- Direct Known Subclasses:
- SOAPTypeMappingRegistry
- public class TypeMappingRegistry
- extends java.lang.Object
- implements Serializer
- Author:
- James Snell (jasnell@us.ibm.com), Sam Ruby (rubys@us.ibm.com)
- See Also:
- Serialized Form
Method Summary |
void |
addDeserializerFactory(QName qname,
java.lang.Class _class,
DeserializerFactory deserializerFactory)
|
void |
addSerializer(java.lang.Class _class,
QName qName,
Serializer serializer)
|
void |
dump(java.io.PrintStream out,
java.lang.String header)
|
void |
dumpToElement(org.w3c.dom.Element root)
|
void |
dumpToSerializationContext(SerializationContext ctx)
|
java.lang.Class |
getClassForQName(QName type)
|
Deserializer |
getDeserializer(QName qname)
|
TypeMappingRegistry |
getParent()
|
Serializer |
getSerializer(java.lang.Class _class)
|
QName |
getTypeQName(java.lang.Class _class)
|
boolean |
hasDeserializer(QName qname)
|
boolean |
hasSerializer(java.lang.Class _class)
|
boolean |
isEmpty()
|
void |
removeDeserializer(QName qname)
|
void |
removeSerializer(java.lang.Class _class)
|
void |
serialize(QName name,
org.xml.sax.Attributes attributes,
java.lang.Object value,
SerializationContext context)
|
void |
setParent(TypeMappingRegistry parent)
Define a "parent" TypeMappingRegistry that will be used to service
any requests that are not satisfied by this this instance. |
org.xml.sax.Attributes |
setTypeAttribute(org.xml.sax.Attributes attributes,
QName type,
SerializationContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeMappingRegistry
public TypeMappingRegistry()
- Default constructor (transient registry)
isEmpty
public boolean isEmpty()
setParent
public void setParent(TypeMappingRegistry parent)
- Define a "parent" TypeMappingRegistry that will be used to service
any requests that are not satisfied by this this instance. This
enables a chain of TypeMappingRegistries to be employed that contain,
say, a transient set of types, followed by a persistent set of
deployed types, followed by the system defined SOAPTypes
getParent
public TypeMappingRegistry getParent()
addSerializer
public void addSerializer(java.lang.Class _class,
QName qName,
Serializer serializer)
addDeserializerFactory
public void addDeserializerFactory(QName qname,
java.lang.Class _class,
DeserializerFactory deserializerFactory)
getSerializer
public Serializer getSerializer(java.lang.Class _class)
getTypeQName
public QName getTypeQName(java.lang.Class _class)
getClassForQName
public java.lang.Class getClassForQName(QName type)
getDeserializer
public Deserializer getDeserializer(QName qname)
removeSerializer
public void removeSerializer(java.lang.Class _class)
removeDeserializer
public void removeDeserializer(QName qname)
hasSerializer
public boolean hasSerializer(java.lang.Class _class)
hasDeserializer
public boolean hasDeserializer(QName qname)
setTypeAttribute
public org.xml.sax.Attributes setTypeAttribute(org.xml.sax.Attributes attributes,
QName type,
SerializationContext context)
serialize
public void serialize(QName name,
org.xml.sax.Attributes attributes,
java.lang.Object value,
SerializationContext context)
throws java.io.IOException
- Specified by:
serialize
in interface Serializer
dump
public void dump(java.io.PrintStream out,
java.lang.String header)
dumpToSerializationContext
public void dumpToSerializationContext(SerializationContext ctx)
throws java.io.IOException
dumpToElement
public void dumpToElement(org.w3c.dom.Element root)
Copyright © 2001 Apache XML Project. All Rights Reserved.