Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.1.0)

E17483-02

oracle.jbo.domain
Class DefaultValueSerializer

java.lang.Object
  extended by oracle.jbo.domain.DefaultValueSerializer
All Implemented Interfaces:
ValueSerializer

public class DefaultValueSerializer
extends java.lang.Object
implements ValueSerializer

The DefaultValueSerializer is a concrete implementation of the ValueSerializer interface. It assumes the attribute value's class implements the Serializable interface and uses object streams to store and load attribute values.

See Also:
ObjectInputStream, ObjectOutputStream

Constructor Summary
DefaultValueSerializer()
           
 
Method Summary
 Node getXMLContentNode(Document xmlDoc, java.lang.Object attrValue)
          Creates an XML node in the given XML document for the given attribute value.
 java.lang.Object getXMLContentValue(Node attrNode)
          Creates an attribute value by reading the XML data out of the given XML node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultValueSerializer

public DefaultValueSerializer()
Method Detail

getXMLContentNode

public Node getXMLContentNode(Document xmlDoc,
                              java.lang.Object attrValue)
Description copied from interface: ValueSerializer
Creates an XML node in the given XML document for the given attribute value.

Specified by:
getXMLContentNode in interface ValueSerializer
Parameters:
xmlDoc - the XML document in which the node should be created
attrValue - the attribute value to be serialized
Returns:
an XML node containing the serialized value of the attribute.
See Also:
ValueSerializer.getXMLContentValue(Node)

getXMLContentValue

public java.lang.Object getXMLContentValue(Node attrNode)
Description copied from interface: ValueSerializer
Creates an attribute value by reading the XML data out of the given XML node.

Specified by:
getXMLContentValue in interface ValueSerializer
Parameters:
attrNode - an XML node containing the serialized attribute value
Returns:
the deserialized value of the attribute.
See Also:
ValueSerializer.getXMLContentNode(Document, Object)

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.1.0)

E17483-02

Copyright © 1997, 2011, Oracle. All rights reserved.