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

E17483-01

oracle.jbo.domain
Interface ValueSerializer

All Known Implementing Classes:
DefaultValueSerializer

public interface ValueSerializer

Interface that can be optionally implemented to serialize and deserialize attribute values. ValueSerializers are responsible for writing the attribute value into an XML node and restoring the attribute value from the XML node.

Classes that implement this interface must have an accessible no-arg constructor.

See Also:
AttributeDefImpl.setSerializerClassName(String), Variable.setSerializerClassName(String)

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.
 

Method Detail

getXMLContentNode

Node getXMLContentNode(Document xmlDoc,
                       java.lang.Object attrValue)
Creates an XML node in the given XML document for the given attribute value.

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:
getXMLContentValue(Node)

getXMLContentValue

java.lang.Object getXMLContentValue(Node attrNode)
Creates an attribute value by reading the XML data out of the given XML node.

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

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

E17483-01

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