org.objectweb.kilim.description
Class TpSetter

java.lang.Object
  extended byorg.objectweb.kilim.description.TemplateElementImpl
      extended byorg.objectweb.kilim.description.InlinedElement
          extended byorg.objectweb.kilim.description.TpAccessor
              extended byorg.objectweb.kilim.description.TpSetter
All Implemented Interfaces:
BasicElement, java.lang.Cloneable, TemplateElement

public class TpSetter
extends TpAccessor

Author:
horn

Field Summary
private  BasicElement value
           
 
Fields inherited from class org.objectweb.kilim.description.TpAccessor
fieldName, isStatic, support
 
Fields inherited from class org.objectweb.kilim.description.InlinedElement
 
Fields inherited from class org.objectweb.kilim.description.TemplateElementImpl
 
Constructor Summary
TpSetter(BasicElement aSupport, java.lang.String aField, boolean jStatic, TemplateDescription aTemplate)
          The public constructor for a setter description.
 
Method Summary
 int getKind()
          returns the element kind.
 BasicElement getValue()
          returns the value associated to the setter.
 void setValue(BasicElement aValue)
          sets the value associated to the setter.
 
Methods inherited from class org.objectweb.kilim.description.TpAccessor
getFieldName, getSupport, isStatic, isStatic, setFieldName, setSupport
 
Methods inherited from class org.objectweb.kilim.description.InlinedElement
getLocalName, getStatus, isEventSource, performsAction, providesValue, setLocalName, setStatus
 
Methods inherited from class org.objectweb.kilim.description.TemplateElementImpl
clone, getContainingTemplate, getTemplateDefHierarchy, setContainingTemplate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.kilim.description.TemplateElement
clone, getContainingTemplate, getTemplateDefHierarchy, setContainingTemplate
 

Field Detail

value

private BasicElement value
Constructor Detail

TpSetter

public TpSetter(BasicElement aSupport,
                java.lang.String aField,
                boolean jStatic,
                TemplateDescription aTemplate)
         throws KilimException
The public constructor for a setter description.

Parameters:
aSupport - : the element on which the setter will b e applied.
aField - : the name of the field.
jStatic - : true if the setter is static.
aTemplate - : the template in which the setter is declared.
Throws:
KilimException - : generated if a Support, aField or aTemplate is null.
Method Detail

setValue

public void setValue(BasicElement aValue)
sets the value associated to the setter.

Parameters:
aValue - : the value to be set.

getValue

public BasicElement getValue()
returns the value associated to the setter.

Returns:
BasicElement

getKind

public int getKind()
Description copied from interface: BasicElement
returns the element kind.

Returns:
int
See Also:
BasicElement.getKind()