org.objectweb.kilim.description
Class TpAccessor
java.lang.Object
org.objectweb.kilim.description.TemplateElementImpl
org.objectweb.kilim.description.InlinedElement
org.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.
Fields inherited from class org.objectweb.kilim.description.InlinedElement |
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
support
protected BasicElement support
fieldName
protected java.lang.String fieldName
isStatic
protected boolean isStatic
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 accessedjStatic
- : 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.
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.