|
jBrokerTM Web 2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sssw.jbroker.web.mapping.TypeMapper
The TypeMapper class is a registry for type mappings.
Applications should use the standard JAXRPC TypeMappingRegistry
instead.
TypeMappingRegistry,
DefaultTypeMappingRegistry, Serialized Form| Constructor Summary | |
TypeMapper()
Deprecated. Construct a TypeMapper. |
|
TypeMapper(TypeMapper delegateMR)
Deprecated. Construct a TypeMapper with the given parent TypeMapper. |
|
| Method Summary | |
TypeMapping |
get(Class javaType)
Deprecated. Get the Type Mapping for the given Java Type. |
TypeMapping |
get(Class javaType,
boolean useDelegate)
Deprecated. Get the Type Mapping for the given Java Type. |
TypeMapping |
get(QName qname)
Deprecated. Get the Type Mapping for the given XML Type. |
TypeMapping |
get(QName qname,
boolean useDelegate)
Deprecated. Get the Type Mapping for the given XML Type. |
static TypeMapper |
getDefault()
Deprecated. Get the default TypeMapper. |
TypeMapper |
getDelegate()
Deprecated. Get the parent TypeMapper. |
void |
importMappings(Properties mappings)
Deprecated. Import the mappings from the given properties. |
void |
importMappings(Properties mappings,
ClassLoader loader)
Deprecated. Import the mappings from the given properties. |
void |
importMappings(String propResource)
Deprecated. Import the mappings from the given resource. |
void |
importMappings(String propResource,
ClassLoader loader)
Deprecated. Import mappings into the TypeMapper from the given resource. |
void |
importMappings(String propResource,
Servlet servlet)
Deprecated. Import mappings into the TypeMapper from the given resource name. |
void |
importMappings(String propResource,
Servlet servlet,
ClassLoader loader)
Deprecated. Import mappings into the TypeMapper from the given resource name. |
boolean |
isReadOnly()
Deprecated. Determine if the Type Mapper is read only. |
Iterator |
iterator()
Deprecated. Returns an iterator over the mappings in this TypeMapper. |
void |
put(TypeMapping mapping)
Deprecated. Put a Type Mapping in the Type Mapper. |
void |
setReadOnly()
Deprecated. Set the TypeMapper to be read only. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TypeMapper()
public TypeMapper(TypeMapper delegateMR)
| Method Detail |
public TypeMapper getDelegate()
public static TypeMapper getDefault()
public boolean isReadOnly()
public void setReadOnly()
public void put(TypeMapping mapping)
throws TypeMappingException
public void importMappings(String propResource,
ClassLoader loader)
throws TypeMappingException,
IOException
Properties props = new Properties();
props.load(loader.getResourceAsStream(propResource));
importMappings(props, loader);
public void importMappings(String propResource,
Servlet servlet)
throws TypeMappingException,
ServletException,
IOException
public void importMappings(String propResource,
Servlet servlet,
ClassLoader loader)
throws TypeMappingException,
ServletException,
IOException
public void importMappings(String propResource)
throws TypeMappingException,
IOException
public void importMappings(Properties mappings,
ClassLoader loader)
throws TypeMappingException
<java Type> <Serializer> <Deserializer> <URI> <LN> <location>For example,
mapping1=Address AddressMarshaler AddressMarshaler urn:DemoApp Address http://schemas.acme.org/addressThe java classes are loaded from the given class loader.
public void importMappings(Properties mappings)
throws TypeMappingException
public TypeMapping get(QName qname)
public TypeMapping get(QName qname,
boolean useDelegate)
public TypeMapping get(Class javaType)
public TypeMapping get(Class javaType,
boolean useDelegate)
public Iterator iterator()
|
jBrokerTM Web 2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||