com.sun.tools.xjc.generator.bean.field
Class UntypedListField.Accessor

java.lang.Object
  extended by com.sun.tools.xjc.generator.bean.field.AbstractField.Accessor
      extended by com.sun.tools.xjc.generator.bean.field.AbstractListField.Accessor
          extended by com.sun.tools.xjc.generator.bean.field.UntypedListField.Accessor
All Implemented Interfaces:
FieldAccessor
Enclosing class:
UntypedListField

 class UntypedListField.Accessor
extends AbstractListField.Accessor


Field Summary
 
Fields inherited from class com.sun.tools.xjc.generator.bean.field.AbstractListField.Accessor
field
 
Fields inherited from class com.sun.tools.xjc.generator.bean.field.AbstractField.Accessor
$target
 
Constructor Summary
protected UntypedListField.Accessor(com.sun.codemodel.JExpression $target)
           
 
Method Summary
 void fromRawValue(com.sun.codemodel.JBlock block, String uniqueName, com.sun.codemodel.JExpression $var)
          Sets the value of the field from the specified expression.
 void toRawValue(com.sun.codemodel.JBlock block, com.sun.codemodel.JVar $var)
          Dumps everything in this field into the given variable.
 
Methods inherited from class com.sun.tools.xjc.generator.bean.field.AbstractListField.Accessor
box, count, hasSetValue, ref, unbox, unsetValues
 
Methods inherited from class com.sun.tools.xjc.generator.bean.field.AbstractField.Accessor
getPropertyInfo, owner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UntypedListField.Accessor

protected UntypedListField.Accessor(com.sun.codemodel.JExpression $target)
Method Detail

toRawValue

public void toRawValue(com.sun.codemodel.JBlock block,
                       com.sun.codemodel.JVar $var)
Description copied from interface: FieldAccessor
Dumps everything in this field into the given variable.

This generates code that accesses the field from outside.

Parameters:
block - The code will be generated into this block.
$var - Variable whose type is FieldOutline.getRawType()

fromRawValue

public void fromRawValue(com.sun.codemodel.JBlock block,
                         String uniqueName,
                         com.sun.codemodel.JExpression $var)
Description copied from interface: FieldAccessor
Sets the value of the field from the specified expression.

This generates code that accesses the field from outside.

Parameters:
block - The code will be generated into this block.
uniqueName - Identifier that the caller guarantees to be unique in the given block. When the callee needs to produce additional variables, it can do so by adding suffixes to this unique name. For example, if the uniqueName is "abc", then the caller guarantees that any identifier "abc.*" is unused in this block.
$var - The expression that evaluates to a value of the type FieldOutline.getRawType().