
public class Argument extends ModelObject implements Cloneable, Serializable
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.
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
Argument()
Creates a new
Argument instance. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getDocumentation, getModelVersion, setDocumentation, setModelVersionpublic 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.public Argument()
Argument instance.public Object clone()
public boolean equals(Object o)
public int getIndex()
public int getType()
public int hashCode()
public 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.Copyright © 2005-2012 jDTAUS. All Rights Reserved.