com.anwrt.commons.hessian.model
Class HessianObject

java.lang.Object
  extended by com.anwrt.commons.hessian.model.HessianValue
      extended by com.anwrt.commons.hessian.model.HessianComplex
          extended by com.anwrt.commons.hessian.model.HessianObject

public class HessianObject
extends HessianComplex

Models a Hessian object.

creation : 26 sept. 2008

Author:
David FRANCOIS

Constructor Summary
HessianObject(HessianClassdef hessianClassdef)
           
 
Method Summary
 void add(HessianValue aField)
           
 HessianValue getField(int aIndex)
           
 HessianValue getField(java.lang.String aFieldName)
          Find the field value of an object using the field name.
 HessianClassdef getHessianClassdef()
           
 java.lang.String getTypeString()
           
 java.util.Iterator iterator()
           
 void render(java.io.OutputStream os, AwtHessianSerializer ser)
          Renders the HessianValue to the given OutputStream.
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HessianObject

public HessianObject(HessianClassdef hessianClassdef)
Method Detail

getHessianClassdef

public HessianClassdef getHessianClassdef()

add

public void add(HessianValue aField)

size

public int size()

iterator

public java.util.Iterator iterator()

getField

public HessianValue getField(int aIndex)

getTypeString

public java.lang.String getTypeString()
Overrides:
getTypeString in class HessianValue

getField

public HessianValue getField(java.lang.String aFieldName)
Find the field value of an object using the field name.

Parameters:
aFieldName - The name of the field as a plain string.
Returns:
The value.

render

public void render(java.io.OutputStream os,
                   AwtHessianSerializer ser)
            throws AwtHessianSerializerException
Description copied from class: HessianValue
Renders the HessianValue to the given OutputStream.

Specified by:
render in class HessianValue
Parameters:
os - to which to render
ser - an AwtHessianSerializer instance
Throws:
AwtHessianSerializerException