org.objectweb.kilim.description
Class TpAccessor

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

public abstract class TpAccessor
extends InlinedElement

Author:
horn To change this generated comment edit the template variable "typecomment": Window>Preferences>Java>Templates. To enable and disable the creation of type comments go to Window>Preferences>Java>Code Generation.

Field Summary
protected  java.lang.String fieldName
           
protected  boolean isStatic
           
protected  BasicElement support
           
 
Fields inherited from class org.objectweb.kilim.description.InlinedElement
 
Fields inherited from class org.objectweb.kilim.description.TemplateElementImpl
 
Constructor Summary
protected TpAccessor(BasicElement aSupport, java.lang.String aField, boolean jStatic, boolean isP, boolean isT, TemplateDescription aTemplate)
          The public constructor for TpAccessor.
 
Method Summary
 java.lang.String getFieldName()
          returns the name of the filed to be accessed.
 BasicElement getSupport()
           
 boolean isStatic()
          Method isStatic.
 void isStatic(boolean jStatic)
           
 void setFieldName(java.lang.String aFieldName)
          sets the name of the field to be accessed.
 void setSupport(BasicElement aElement)
          sets the support i.e.
 
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.BasicElement
getKind
 
Methods inherited from interface org.objectweb.kilim.description.TemplateElement
clone, getContainingTemplate, getTemplateDefHierarchy, setContainingTemplate
 

Field Detail

support

protected BasicElement support

fieldName

protected java.lang.String fieldName

isStatic

protected boolean isStatic
Constructor Detail

TpAccessor

protected TpAccessor(BasicElement aSupport,
                     java.lang.String aField,
                     boolean jStatic,
                     boolean isP,
                     boolean isT,
                     TemplateDescription aTemplate)
              throws KilimException
The public constructor for TpAccessor.

Parameters:
aSupport - : the object the accessor should be applied to.
aField - : the name of the field to be accessed
jStatic - : true if the accessor is static.
isP - : true if the accessor is a getter.
isT - : true if the accessor is a setter.
aTemplate - : the template in which the accessor is defined.
Throws:
KilimException - : generated if aTemplate is null.
Method Detail

isStatic

public boolean isStatic()
Method isStatic.

Returns:
boolean

isStatic

public void isStatic(boolean jStatic)
See Also:
org.objectweb.kilim.description.libs.FieldAction#isStatic(boolean)

getSupport

public BasicElement getSupport()
See Also:
org.objectweb.kilim.description.libs.FieldAction#getSupport()

setSupport

public void setSupport(BasicElement aElement)
                throws KilimException
sets the support i.e. te object the accessor will be applied to.

Parameters:
aElement - : the element that is the support of the accessor.
Throws:
KilimException - : generated if aElement is null or does not provide a value.

getFieldName

public java.lang.String getFieldName()
returns the name of the filed to be accessed.

Returns:
String

setFieldName

public void setFieldName(java.lang.String aFieldName)
                  throws KilimException
sets the name of the field to be accessed.

Parameters:
aFieldName - : the name of the field.
Throws:
KilimException - : generated if aFieldName is null.