Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.xml.schema.binding
Interface TypeMapping


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.

TypeMappings may be chained. An implementation can then use use the parent mapping to perform a lookup that fails in the current mapping.


Method Summary
abstract  boolean add(Class clazz, XMLName xml_type, Serializer serializer, Deserializer deserializer)
          Shortcut for add(TypeMappingEntry)
abstract  boolean add(Class clazz, XMLName xml_type, SerializerFactory serializer, DeserializerFactory deserializer)
          Shortcut for add(TypeMappingEntry)
abstract  boolean add(TypeMappingEntry e)
          Add a type mapping entry.
abstract  TypeMappingEntry get(Class c, ClassContext ctx)
          Get the TypeMappingEntry corresponding to the given Class and ClassContext
abstract  TypeMappingEntry get(XMLName schema_type, SchemaContext ctx)
          Get the TypeMappingEntry corresponding to the given XMLName and SchemaContext
abstract  Class getClassFromXMLName(XMLName xml_name)
          return the class for a given xml_name, as currently thought of by this mapping.
abstract  TypeMappingEntry[] getEntries()
          Return an array of all the TypeMappingEntry's in this TypeMapping
abstract  Class getHolderClass(Class clazz, QName xmlType)
          get JAX-RPC Holder class for this class.
abstract  TypeMapping getParent()
          Get the parent TypeMapping
abstract  XMLName getXMLNameFromClass(Class clazz)
          return the xml_name for a given class, as currently thought of by this mapping.
abstract  void readXML(XMLInputStream stream)
          read from xml in the format defined by the webservices deployment descriptor, and add each entry found to this mapping.
abstract  void remove(TypeMappingEntry e)
          Remove a type mapping.
abstract  void replace(TypeMappingEntry e)
          Add a type mapping entry, first removing a mapping if neccessary to maintain the uniqueness constraints.
abstract  void setParent(TypeMapping v)
          Set the parent TypeMapping
abstract  void writeXML(XMLOutputStream xout)
          write each entry found to this mapping to xml in the format defined by the webservices deployment descriptor.

 

Method Detail

getClassFromXMLName

Class getClassFromXMLName(XMLName xml_name)
return the class for a given xml_name, as currently thought of by this mapping.

getXMLNameFromClass

XMLName getXMLNameFromClass(Class clazz)
return the xml_name for a given class, as currently thought of by this mapping.

getHolderClass

Class getHolderClass(Class clazz,
                     QName xmlType)
                     throws IOException
get JAX-RPC Holder class for this class. Passed in class must be in the type mapping
Throws:
IOException

add

boolean add(TypeMappingEntry e)
Add a type mapping entry. It is illegal to add a mapping which will violate the uniqueness constraints. This method follow the semantics of java.util.Set.add.
Returns:
true if this mapping did not already contain the entry
See Also:
Set.add(E)

add

boolean add(Class clazz,
            XMLName xml_type,
            Serializer serializer,
            Deserializer deserializer)
Shortcut for add(TypeMappingEntry)
See Also:
TypeMapping.add(TypeMappingEntry)

add

boolean add(Class clazz,
            XMLName xml_type,
            SerializerFactory serializer,
            DeserializerFactory deserializer)
Shortcut for add(TypeMappingEntry)
See Also:
TypeMapping.add(TypeMappingEntry)

replace

void replace(TypeMappingEntry e)
Add a type mapping entry, first removing a mapping if neccessary to maintain the uniqueness constraints.

remove

void remove(TypeMappingEntry e)
Remove a type mapping.

get

TypeMappingEntry get(Class c,
                     ClassContext ctx)
Get the TypeMappingEntry corresponding to the given Class and ClassContext
Parameters:
c - Java Class object
ctx - ClassContext for this use of Class c.

get

TypeMappingEntry get(XMLName schema_type,
                     SchemaContext ctx)
Get the TypeMappingEntry corresponding to the given XMLName and SchemaContext
Parameters:
schema_type -
ctx - SchemaContext for this use of schema_type.

getEntries

TypeMappingEntry[] getEntries()
Return an array of all the TypeMappingEntry's in this TypeMapping

getParent

TypeMapping getParent()
Get the parent TypeMapping
Returns:
value of parent.

setParent

void setParent(TypeMapping v)
Set the parent TypeMapping
Parameters:
v - Value to assign to parent.

readXML

void readXML(XMLInputStream stream)
             throws IOException,
                    XMLStreamException
read from xml in the format defined by the webservices deployment descriptor, and add each entry found to this mapping.
Throws:
IOException
XMLStreamException

writeXML

void writeXML(XMLOutputStream xout)
              throws XMLStreamException
write each entry found to this mapping to xml in the format defined by the webservices deployment descriptor.
Throws:
XMLStreamException

Skip navigation links

Copyright 1996, 2015, 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.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09