SMILA (incubation) API documentation

org.eclipse.smila.search.messages.fieldrequest
Class DFieldCodec

java.lang.Object
  extended by org.eclipse.smila.search.messages.fieldrequest.DFieldCodec

public abstract class DFieldCodec
extends java.lang.Object

Author:
August Georg Schmidt (BROX)

Method Summary
static DField decode(org.w3c.dom.Element element)
          Decode XML element into DField.
static org.w3c.dom.Element encode(DField field, org.w3c.dom.Element parent)
          Encode DField object into XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static org.w3c.dom.Element encode(DField field,
                                         org.w3c.dom.Element parent)
                                  throws FieldRequestException
Encode DField object into XML.

Parameters:
field - Object to encode.
parent - Parent of object.
Returns:
Encoded element.
Throws:
FieldRequestException - Unable to encode object.

decode

public static DField decode(org.w3c.dom.Element element)
                     throws FieldRequestException
Decode XML element into DField.

Parameters:
element - Element to decode.
Returns:
Decoded element as DField.
Throws:
FieldRequestException - Unable to decode XML element.

SMILA (incubation) API documentation