com.bea.tuxedo.control
Class TuxFieldFMLSerialize

java.lang.Object
  extended by com.bea.tuxedo.control.TuxFieldFMLSerialize
All Implemented Interfaces:
ITuxField

public class TuxFieldFMLSerialize
extends Object
implements ITuxField

Class used by the serialization code. Represents a single field from an FML buffer and provides methods to set and get the value of the field.


Constructor Summary
TuxFieldFMLSerialize(String nm, int id, int type)
           
 
Method Summary
 String getName()
          Return the name of the field.
 int getSize(Object object)
          Return the number of occurences of the field in the given object.
 int getType()
          Return the Tuxedo type code for the field.
 Object getValue(Object object)
          Get the value of the next occurence of the field in the given object.
 void setValue(Object object, Object value)
          Set the value of the next occurence of the field in the given object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TuxFieldFMLSerialize

public TuxFieldFMLSerialize(String nm,
                            int id,
                            int type)
Method Detail

getType

public int getType()
Return the Tuxedo type code for the field.

Specified by:
getType in interface ITuxField
Returns:
The Tuxedo type code.

getName

public String getName()
Return the name of the field.

Specified by:
getName in interface ITuxField
Returns:
The name of the field.

getSize

public int getSize(Object object)
Return the number of occurences of the field in the given object.

Specified by:
getSize in interface ITuxField
Parameters:
object - The associated FML or FML32 buffer.
Returns:
The number of occurences of the field.

setValue

public void setValue(Object object,
                     Object value)
              throws ControlException
Set the value of the next occurence of the field in the given object.

Specified by:
setValue in interface ITuxField
Parameters:
object - The FML or FML32 buffer.
value - The value to set
Throws:
ControlException

getValue

public Object getValue(Object object)
                throws ControlException
Get the value of the next occurence of the field in the given object.

Specified by:
getValue in interface ITuxField
Parameters:
object - The FML or FML32 object.
Returns:
The value of the next occurence of this field.
Throws:
ControlException