|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jdtaus.core.container.ModelObject
org.jdtaus.core.container.Argument
public class Argument
Argument meta-data.
An argument consists of the properties index, name and
type. Property index holds the index of the argument in a
list of arguments. Property name holds the name uniquely identifying
the argument in a set of arguments. Property type holds the type
of the argument.
| Field Summary | |
|---|---|
static int |
TYPE_DATE
Constant for property type. |
static int |
TYPE_NUMBER
Constant for property type. |
static int |
TYPE_TEXT
Constant for property type. |
static int |
TYPE_TIME
Constant for property type. |
| Constructor Summary | |
|---|---|
Argument()
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates and returns a copy of this object. |
boolean |
equals(Object o)
Indicates whether some other object is equal to this one by comparing the values of all properties. |
int |
getIndex()
Gets the index of the argument. |
String |
getName()
Gets the name of the argument. |
int |
getType()
Gets the type of the argument. |
int |
hashCode()
Returns a hash code value for this object. |
void |
setIndex(int value)
Setter for property index. |
void |
setName(String value)
Setter for property name. |
void |
setType(int value)
Setter for property type. |
String |
toString()
Returns a string representation of the object. |
| Methods inherited from class org.jdtaus.core.container.ModelObject |
|---|
getDocumentation, getModelVersion, setDocumentation, setModelVersion |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_DATE
type.
public static final int TYPE_NUMBER
type.
public static final int TYPE_TEXT
type.
public static final int TYPE_TIME
type.
| Constructor Detail |
|---|
public Argument()
| Method Detail |
|---|
public Object clone()
clone in class Objectpublic boolean equals(Object o)
equals in class Objecto - the reference object with which to compare.
true if this object is the same as o;
false otherwise.public int getIndex()
public String getName()
public int getType()
public int hashCode()
hashCode in class Objectpublic void setIndex(int value)
index.
value - the new index of the argument.public void setName(String value)
name.
value - the new name of the argument.public void setType(int value)
type.
value - the new type of the argument.
IllegalArgumentException - if value is not equal to one of
the constants TYPE_NUMBER, TYPE_DATE, TYPE_TIME
or TYPE_TEXT.public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||