|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.perforce.api.JobField
public final class JobField
Data class for p4 jobspec field information. This class can be used to contain field information for a particular field within the jobspec.
TBD: This class is not really used anywhere else. It is intended to be used for more interaction with the jobs interface.
Field Summary | |
---|---|
static int |
ALWAYS
Field type has always reset to the default upon saving |
static int |
DATE
Data type is a date/time field |
static int |
DEFAULT
Field type has default provided, still not required |
static int |
LINE
Data type is a one-liner |
static int |
ONCE
Field type has set once to the default and never changed |
static int |
OPTIONAL
Field type has no default, not required to be present |
static int |
REQUIRED
Field type has default provided, value must be present |
static int |
SELECT
Data type is one of a set of words |
static int |
TEXT
Data type is a block of text |
static int |
WORD
Data type is a single word (any value) |
Constructor Summary | |
---|---|
JobField()
|
|
JobField(int code,
String name,
int dtype,
int len,
int ftype)
|
|
JobField(int code,
String name,
String dtype,
int len,
String ftype)
|
Method Summary | |
---|---|
void |
addValue(String value)
|
int |
getCode()
|
int |
getDataType()
|
static JobField |
getField(String name)
|
int |
getFieldType()
|
int |
getLength()
|
String |
getName()
|
String |
getPreset()
|
Enumeration |
getValues()
|
static void |
loadFields(Env env,
boolean redo)
|
void |
setCode(int code)
|
void |
setDataType(int dtype)
|
void |
setDataType(String dtype)
|
void |
setFieldType(int ftype)
|
void |
setFieldType(String ftype)
|
void |
setLength(int len)
|
void |
setName(String name)
|
void |
setPreset(String value)
|
String |
toXML()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ALWAYS
public static final int DATE
public static final int DEFAULT
public static final int LINE
public static final int ONCE
public static final int OPTIONAL
public static final int REQUIRED
public static final int SELECT
public static final int TEXT
public static final int WORD
Constructor Detail |
---|
public JobField()
public JobField(int code, String name, int dtype, int len, int ftype)
public JobField(int code, String name, String dtype, int len, String ftype)
Method Detail |
---|
public void addValue(String value)
public int getCode()
public int getDataType()
public static JobField getField(String name)
public int getFieldType()
public int getLength()
public String getName()
public String getPreset()
public Enumeration getValues()
public static void loadFields(Env env, boolean redo)
public void setCode(int code)
public void setDataType(int dtype)
public void setDataType(String dtype)
public void setFieldType(int ftype)
public void setFieldType(String ftype)
public void setLength(int len)
public void setName(String name)
public void setPreset(String value)
public String toXML()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |