Modifier and Type | Class and Description |
---|---|
static class |
UserDefinedField.Builder
User defined field builder.
|
Constructor and Description |
---|
UserDefinedField(Integer uniqueID,
String internalName,
String externalName,
FieldTypeClass fieldTypeClass,
boolean summaryTaskOnly,
DataType dataType)
Deprecated.
use the new version of this constructor
|
UserDefinedField(UniqueIdObjectSequenceProvider file,
Integer uniqueID,
String internalName,
String externalName,
FieldTypeClass fieldTypeClass,
boolean summaryTaskOnly,
DataType dataType)
Deprecated.
use the Builder class
|
Modifier and Type | Method and Description |
---|---|
DataType |
getDataType()
Retrieve the data type of this field.
|
FieldTypeClass |
getFieldTypeClass()
Retrieve an enum representing the type of entity to which this field belongs.
|
String |
getName()
Retrieve the name of this field using the default locale.
|
String |
getName(Locale locale)
Retrieve the name of this field using the supplied locale.
|
boolean |
getSummaryTaskOnly()
For a user defined field with a FieldTypeClas of TASK, this method
returns true if this is a user defined field for WBS
(represented as summary tasks in MPXJ).
|
Integer |
getUniqueID()
Retrieve the unique ID.
|
FieldType |
getUnitsType()
Retrieve the associated units field, if any.
|
int |
getValue()
This method is used to retrieve the int value (not the ordinal)
associated with an enum instance.
|
String |
name()
Retrieve the enum name.
|
void |
setDataType(DataType dataType)
Deprecated.
use the Builder class
|
String |
toString() |
@Deprecated public UserDefinedField(Integer uniqueID, String internalName, String externalName, FieldTypeClass fieldTypeClass, boolean summaryTaskOnly, DataType dataType)
uniqueID
- unique IDinternalName
- internal name for this fieldexternalName
- user-visible name for this fieldfieldTypeClass
- type of entity on which this field can be usedsummaryTaskOnly
- flag is true if this UDF can only be applied to summary tasks (WBS)dataType
- data type of this field@Deprecated public UserDefinedField(UniqueIdObjectSequenceProvider file, Integer uniqueID, String internalName, String externalName, FieldTypeClass fieldTypeClass, boolean summaryTaskOnly, DataType dataType)
file
- parent fileuniqueID
- unique IDinternalName
- internal name for this fieldexternalName
- user-visible name for this fieldfieldTypeClass
- type of entity on which this field can be usedsummaryTaskOnly
- flag is true if this UDF can only be applied to summary tasks (WBS)dataType
- data type of this fieldpublic int getValue()
MpxjEnum
public Integer getUniqueID()
public boolean getSummaryTaskOnly()
public FieldTypeClass getFieldTypeClass()
FieldType
getFieldTypeClass
in interface FieldType
public String getName()
FieldType
public String getName(Locale locale)
FieldType
public DataType getDataType()
FieldType
getDataType
in interface FieldType
@Deprecated public void setDataType(DataType dataType)
dataType
- data typepublic FieldType getUnitsType()
FieldType
getUnitsType
in interface FieldType
Copyright © 2000–2024 Packwood Software. All rights reserved.