|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeMapping
A Collection of TypeMappingEntry
objects.
Uniqueness constraints: Either of the get
methods
should be able to uniquely identify and retrieve a mapping. This
might be implemented with two Maps which check this uniquness
constraint on insert.
TypeMapping
s may be chained. An implementation can
then use use the parent mapping to perform a lookup that fails in
the current mapping.
Method Summary | |
---|---|
boolean |
add(Class clazz,
XMLName xml_type,
Serializer serializer,
Deserializer deserializer)
Shortcut for add(TypeMappingEntry) |
boolean |
add(Class clazz,
XMLName xml_type,
SerializerFactory serializer,
DeserializerFactory deserializer)
Shortcut for add(TypeMappingEntry) |
boolean |
add(TypeMappingEntry e)
Add a type mapping entry. |
TypeMappingEntry |
get(Class c,
ClassContext ctx)
Get the TypeMappingEntry corresponding to the given
Class and ClassContext |
TypeMappingEntry |
get(XMLName schema_type,
SchemaContext ctx)
Get the TypeMappingEntry corresponding to the given
XMLName and SchemaContext |
Class |
getClassFromXMLName(XMLName xml_name)
return the class for a given xml_name, as currently thought of by this mapping. |
TypeMappingEntry[] |
getEntries()
Return an array of all the TypeMappingEntry's in this TypeMapping |
Class |
getHolderClass(Class clazz,
QName xmlType)
get JAX-RPC Holder class for this class. |
TypeMapping |
getParent()
Get the parent TypeMapping |
XMLName |
getXMLNameFromClass(Class clazz)
return the xml_name for a given class, as currently thought of by this mapping. |
void |
readXML(XMLInputStream stream)
read from xml in the format defined by the webservices deployment descriptor, and add each entry found to this mapping. |
void |
remove(TypeMappingEntry e)
Remove a type mapping. |
void |
replace(TypeMappingEntry e)
Add a type mapping entry, first removing a mapping if neccessary to maintain the uniqueness constraints. |
void |
setParent(TypeMapping v)
Set the parent TypeMapping |
void |
writeXML(XMLOutputStream xout)
write each entry found to this mapping to xml in the format defined by the webservices deployment descriptor. |
Method Detail |
---|
Class getClassFromXMLName(XMLName xml_name)
XMLName getXMLNameFromClass(Class clazz)
Class getHolderClass(Class clazz, QName xmlType) throws IOException
IOException
boolean add(TypeMappingEntry e)
Set.add(E)
boolean add(Class clazz, XMLName xml_type, Serializer serializer, Deserializer deserializer)
TypeMapping.add(TypeMappingEntry)
boolean add(Class clazz, XMLName xml_type, SerializerFactory serializer, DeserializerFactory deserializer)
TypeMapping.add(TypeMappingEntry)
void replace(TypeMappingEntry e)
void remove(TypeMappingEntry e)
TypeMappingEntry get(Class c, ClassContext ctx)
TypeMappingEntry
corresponding to the given
Class
and ClassContext
c
- Java Class objectctx
- ClassContext
for this use of Class
c.TypeMappingEntry get(XMLName schema_type, SchemaContext ctx)
TypeMappingEntry
corresponding to the given
XMLName
and SchemaContext
schema_type
- ctx
- SchemaContext
for this use of schema_type.TypeMappingEntry[] getEntries()
TypeMapping getParent()
TypeMapping
void setParent(TypeMapping v)
TypeMapping
v
- Value to assign to parent.void readXML(XMLInputStream stream) throws IOException, XMLStreamException
IOException
XMLStreamException
void writeXML(XMLOutputStream xout) throws XMLStreamException
XMLStreamException
|
Copyright 1996, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |