|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttico.rules.TLimitation
public class TLimitation
The TLimitation
object contains a name, a nameXML a value and
a list of attributes.
Constructor Summary | |
---|---|
TLimitation()
Creates a new empty TLimitation with no initial name
or value . |
|
TLimitation(int value)
Creates a new empty TLimitation with the specified initial
value . |
|
TLimitation(java.lang.String name,
java.lang.String nameXML)
Creates a new empty TLimitation with the specified initial
name and nameXML . |
|
TLimitation(java.lang.String name,
java.lang.String nameXML,
int value)
Creates a new empty TLimitation with the specified initial
name , nameXML and value . |
Method Summary | |
---|---|
void |
addAttribute(TAttribute attribute)
Add an attribute to the limitation. |
TAttribute |
getAttribute(int index)
Returs the limitation attribute in the specified index . |
TAttribute |
getAttribute(java.lang.String name)
Returs the limitation attribute with the specified name . |
int |
getAttributeCount()
Returns the number of attributes contained by the limitation |
java.util.List |
getAttributeList()
Returs the list of attributes |
java.lang.String |
getName()
Returns the limitation name . |
java.lang.String |
getNameXML()
Returns the limitation nameXML . |
int |
getValue()
Returns the limitation value . |
void |
removeAttribute(TAttribute attribute)
Removes the specified attribute from the limitation. |
void |
setName(java.lang.String name)
Sets the limitation name . |
void |
setNameXML(java.lang.String nameXML)
Sets the limitation nameXML . |
void |
setValue(int value)
Sets the limitation value . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TLimitation()
TLimitation
with no initial name
or value
.
public TLimitation(java.lang.String name, java.lang.String nameXML)
TLimitation
with the specified initial
name
and nameXML
.
name
- The specified initial name
nameXML
- The specified initial nameXML
public TLimitation(int value)
TLimitation
with the specified initial
value
.
value
- The specified initial value
public TLimitation(java.lang.String name, java.lang.String nameXML, int value)
TLimitation
with the specified initial
name
, nameXML
and value
.
name
- The specified initial name
nameXML
- The specified initial nameXML
value
- The specified initial value
Method Detail |
---|
public java.lang.String getName()
name
.
name
public void setName(java.lang.String name)
name
.
name
- The limitation name
to setpublic java.lang.String getNameXML()
nameXML
.
nameXML
public void setNameXML(java.lang.String nameXML)
nameXML
.
nameXML
- The limitation nameXML
to setpublic int getValue()
value
.
value
public void setValue(int value)
value
.
value
- The limitation value
to setpublic void addAttribute(TAttribute attribute)
attribute
to the limitation.
attribute
- The attribute
to addpublic void removeAttribute(TAttribute attribute)
attribute
from the limitation.
attribute
- The attribute
to deletepublic TAttribute getAttribute(java.lang.String name)
name
.
name
- The specified attribute name
name
. If the
limitation does not contain any attribute with that name, returns nullpublic TAttribute getAttribute(int index)
index
.
index
- The specified attribute index
index
public int getAttributeCount()
public java.util.List getAttributeList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |