org.objectweb.jorm.naming.api
Interface FieldCoder


public interface FieldCoder

The FieldCoder interface is used by the state implementation generated by the org.objectweb.jorm.generator.lib.StateGenerator class.

Author:
Rafael H. Schloming <rhs@mit.edu>

Method Summary
 PName decode(java.lang.String field, PNameGetter png, java.lang.Object ctx)
          Decode primitive values for a field into a PName.
 PNameGetter encode(java.lang.String field, PName pname)
          Encode a PName for a given field into into primitive values.
 

Method Detail

encode

public PNameGetter encode(java.lang.String field,
                          PName pname)
                   throws PExceptionNaming
Encode a PName for a given field into into primitive values.

Parameters:
field - the field name
pname - the pname
Returns:
the PNameGetter with the primitive values
Throws:
PExceptionNaming

decode

public PName decode(java.lang.String field,
                    PNameGetter png,
                    java.lang.Object ctx)
             throws PExceptionNaming
Decode primitive values for a field into a PName.

Parameters:
field - the field name
png - the primitive values
ctx - the context object
Returns:
the PName
Throws:
PExceptionNaming