org.apache.axis.encoding.ser
Class BaseDeserializerFactory
java.lang.Object
|
+--org.apache.axis.encoding.ser.BaseDeserializerFactory
- All Implemented Interfaces:
- DeserializerFactory, DeserializerFactory, java.io.Serializable
- Direct Known Subclasses:
- ArrayDeserializerFactory, Base64DeserializerFactory, BeanDeserializerFactory, DateDeserializerFactory, ElementDeserializerFactory, EnumDeserializerFactory, HexDeserializerFactory, JAFDataHandlerDeserializerFactory, MapDeserializerFactory, SimpleDeserializerFactory, VectorDeserializerFactory
- public abstract class BaseDeserializerFactory
- extends java.lang.Object
- implements DeserializerFactory
Base class for Axis Deserialization Factory classes for code reuse
- Author:
- Rich Scheuerle
- See Also:
- Serialized Form
Method Summary |
static DeserializerFactory |
createFactory(java.lang.Class factory,
java.lang.Class javaType,
QName xmlType)
Utility method that intospects on a factory class to decide how to
create the factory. |
Deserializer |
getDeserializerAs(java.lang.String mechanismType)
Returns a Deserializer for the specified XML processing mechanism type. |
java.util.Iterator |
getSupportedMechanismTypes()
Returns a list of all XML processing mechanism types supported by this DeserializerFactory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
deserClass
protected java.lang.Class deserClass
share
protected boolean share
deser
protected Deserializer deser
xmlType
protected QName xmlType
javaType
protected java.lang.Class javaType
dserClassConstructor
protected java.lang.reflect.Constructor dserClassConstructor
BaseDeserializerFactory
public BaseDeserializerFactory(java.lang.Class deserClass,
boolean share)
- Constructor
- Parameters:
deserClass
- is the class of the Deserializershare
- indicates if deserializers can be shared...i.e. getDeserializerAs
will always return the same deserializer object if share is true. Sharing is
only valid for xml primitives.
BaseDeserializerFactory
public BaseDeserializerFactory(java.lang.Class deserClass,
boolean share,
QName xmlType,
java.lang.Class javaType)
getDeserializerAs
public Deserializer getDeserializerAs(java.lang.String mechanismType)
throws JAXRPCException
- Description copied from interface:
DeserializerFactory
- Returns a Deserializer for the specified XML processing mechanism type.
- Specified by:
getDeserializerAs
in interface DeserializerFactory
- Following copied from interface:
javax.xml.rpc.encoding.DeserializerFactory
- Parameters:
mechanismType
- - XML processing mechanism type [TBD: definition of valid constants]- Returns:
- Returns a Deserializer for the specified XML processing mechanism type.
- Throws:
JAXRPCException
- - If DeserializerFactory does not support
the specified XML processing mechanism
java.lang.IllegalArgumentException - If an invalid mechanism type is specified.
getSupportedMechanismTypes
public java.util.Iterator getSupportedMechanismTypes()
- Returns a list of all XML processing mechanism types supported by this DeserializerFactory.
- Specified by:
getSupportedMechanismTypes
in interface DeserializerFactory
- Returns:
- List of unique identifiers for the supported XML processing mechanism types
createFactory
public static DeserializerFactory createFactory(java.lang.Class factory,
java.lang.Class javaType,
QName xmlType)
- Utility method that intospects on a factory class to decide how to
create the factory. Tries in the following order:
public static create(Class javaType, QName xmlType)
public (Class javaType, QName xmlType)
public ()
- Parameters:
factory
- classQName
- xmlTypeClass
- javaType
Copyright © 2001 Apache XML Project. All Rights Reserved.