ILOG JRules

ilog.rules.factory.translation
Class IlrAttributeTranslation

java.lang.Object
  extended by ilog.rules.factory.translation.IlrAttributeTranslation

public class IlrAttributeTranslation
extends Object

Attribute translation. An attribute translation can provide a translation for when the attribute is get or set.

Since:
JRules 6.0

Constructor Summary
IlrAttributeTranslation()
           
 
Method Summary
 IlrBody getGetter()
          Returns the getter of the attribute.
 String getName()
          Gets the name of the attribute.
 IlrBody getSetter()
          Returns the setter of the attribute.
 boolean isTranslated()
          Returns true if the attribute is to be translated.
 void setGetter(IlrBody getter)
          Sets the getter of the attribute.
 void setName(String name)
          Sets the name of the attribute.
 void setSetter(IlrBody setter)
          Sets the setter of the attribute.
 void setTranslated(boolean translated)
          Sets whether this attribute should be translated or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrAttributeTranslation

public IlrAttributeTranslation()
Method Detail

getGetter

public IlrBody getGetter()
Returns the getter of the attribute. The getter is the body of a function used to get the value of an attribute. It has to end by a return statement returning the execution class corresponding to the attribute business type. Inside the getter for a nonstatic attribute, this can be used to refer to the current object.

Returns:
The getter of the attribute. It may be null.

setGetter

public void setGetter(IlrBody getter)
Sets the getter of the attribute.

Parameters:
getter - The getter of the attribute. It may be null.
See Also:
for an explanation of getters.

getSetter

public IlrBody getSetter()
Returns the setter of the attribute. The setter is the body of a function used to set the value of an attribute. It should not return a value. Inside the setter for a nonstatic attribute, this can be used to refer to the current object.

Returns:
The setter of the attribute. It may be null.

setSetter

public void setSetter(IlrBody setter)
Sets the setter of the attribute.

Parameters:
setter - The setter of the attribute. It may be null.
See Also:
for an explanation of setters.

getName

public String getName()
Gets the name of the attribute.

Returns:
The name of the attribute.

setName

public void setName(String name)
Sets the name of the attribute.

Parameters:
name - The name of the attribute.

isTranslated

public boolean isTranslated()
Returns true if the attribute is to be translated. An attribute that is not translated will not produce errors when translations are checked, but will produce an error if it is used in a ruleset being translated.

Since:
JRules 6.1

setTranslated

public void setTranslated(boolean translated)
Sets whether this attribute should be translated or not.

Since:
JRules 6.1

ILOG JRules