Skip navigation links

Java API Reference for Oracle Infrastructure Web Services
11
Release 1 (11.1.1)

E10654-02


oracle.webservices.model
Interface Serializer


public interface Serializer

Implementations of this interface are responsible for creating, marshalling and unmarshalling components and extensions.


Method Summary
 Object create(Factory factory, Component parentComponent, QName extensionType, QName extensionName)
          Creates an new component or extension.
 QName[] getExtensionTypes()
          Provides an array of the extension/component types supported by the serializer.
 Element marshal(Factory factory, Component parentComponent, QName type, Object extension, Document document)
          Marshals a component or extension into a DOM tree.
 Object unmarshal(Factory factory, Component parentComponent, Element extensionElement)
          Unmarshalls a component or extension from the provided DOM element.

 

Method Detail

getExtensionTypes

QName[] getExtensionTypes()
Provides an array of the extension/component types supported by the serializer.
Returns:
An array of the extension/component types supported by the serializer.

create

Object create(Factory factory,
              Component parentComponent,
              QName extensionType,
              QName extensionName)
Creates an new component or extension.
Parameters:
factory - The factory which is requesting that the component or extension be created.
parentComponent - The parent component to which the returned component or extension will be added.
extensionType - The type name of the component/extension to create.
extensionName - The unique name of the component/extension to create. For extensions this value should be ignored and may be null.
Returns:
A new component or extension.

unmarshal

Object unmarshal(Factory factory,
                 Component parentComponent,
                 Element extensionElement)
                 throws SerializationException
Unmarshalls a component or extension from the provided DOM element.
Parameters:
factory - The factory requesting the unmarhalling.
parentComponent - The parent component to which the returned component or extension will be added.
extensionElement - The DOM element for this component extension provided by the marshal method.
Returns:
A component or extension populated from the information marshalled from the DOM element.
Throws:
SerializationException - If the DOM element cannot be marshalled into components and/or extensions.

marshal

Element marshal(Factory factory,
                Component parentComponent,
                QName type,
                Object extension,
                Document document)
                throws SerializationException
Marshals a component or extension into a DOM tree.
Parameters:
factory - The factory requesting the marshalling.
parentComponent - The parent component of the component/extension being marshalled.
type - The type name of the extension being marshalled.
extension - The extension/component which should be marshalled to the returned element.
document - The document from which to create new DOM elements.
Returns:
A DOM tree representing the extension/component being marshalled.
Throws:
SerializationException

Skip navigation links

Copyright © 2006, 2009 Oracle. All Rights Reserved.