public class ExtendedAttributeDefinition extends Object implements Comparable<ExtendedAttributeDefinition>
Represents an extended attribute definition associated with a project.
Constructor and Description |
---|
ExtendedAttributeDefinition()
Initializes a new instance of the
ExtendedAttributeDefinition class. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ExtendedAttributeDefinition o) |
ExtendedAttribute |
createExtendedAttribute()
Creates new extended attribute with specified fieldID
|
boolean |
equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
|
String |
getAlias()
Returns the alias of a custom field.
|
boolean |
getAppendNewValues()
Determines whether new values added to a project are automatically added to the list.
|
boolean |
getAutoRollDown()
Determines whether an automatic rolldown to assignments is enabled.
|
int |
getCalculationType()
Determines whether rollups are calculated for a task and group summary rows.
|
int |
getCfType()
Returns the type of a custom field.
|
String |
getDefault()
Returns the default value in the list.
|
String |
getDefaultGuid()
Returns the Guid of the default lookup table entry.
|
int |
getElementType()
Returns a value which determines whether the extended attribute is associated
with a task, a resource, or an assignment.
|
String |
getFieldId()
Corresponds to the Pid of a custom field.
|
String |
getFieldName()
Returns the name of a custom field.
|
String |
getFormula()
Returns the formula that Microsoft Project uses to populate a custom task field.
|
String |
getGuid()
Returns the Guid of a custom field.
|
String |
getLookupUid()
Returns the Guid of the lookup table associated with a custom field.
|
int |
getMaxMultiValues()
Returns the maximum number of values you can setInternal in a picklist.
|
Project |
getParentProject()
Returns a parent project for the
ExtendedAttributeDefinition instance. |
String |
getPhoneticsAlias()
Returns the phonetic pronunciation of the alias of a custom field.
|
boolean |
getRestrictValues()
Determines whether only values in the list are allowed in a file.
|
int |
getRollupType()
Returns the way rollups are calculated.
|
String |
getSecondaryGuid()
Returns secondary guid of extended attribute.
|
String |
getSecondaryPid()
Returns the secondary Pid of a custom field.
|
boolean |
getUserDef()
Determines whether a custom field is user defined.
|
List<Value> |
getValueList()
Returns a list of values for this object.
|
int |
getValuelistSortOrder()
Returns the way value lists are sorted.
|
int |
hashCode()
Returns a hash code for this ExtendedAttributeDefinition.
|
void |
setAlias(String value)
Sets the alias of a custom field.
|
void |
setAppendNewValues(boolean value)
Determines whether new values added to a project are automatically added to the list.
|
void |
setAutoRollDown(boolean value)
Determines whether an automatic rolldown to assignments is enabled.
|
void |
setCalculationType(int value)
Determines whether rollups are calculated for a task and group summary rows.
|
void |
setCfType(int value)
Sets the type of a custom field.
|
void |
setDefault(String value)
Sets the default value in the list.
|
void |
setDefaultGuid(String value)
Sets the Guid of the default lookup table entry.
|
void |
setElementType(int value)
Sets a value which determines whether the extended attribute is associated with a task, a resource, or an assignment.
|
void |
setFieldId(String value)
Corresponds to the Pid of a custom field.
|
void |
setFieldName(String value)
Sets the name of a custom field.
|
void |
setFormula(String value)
Sets the formula that Microsoft Project uses to populate a custom task field.
|
void |
setGuid(String value)
Sets the Guid of a custom field.
|
void |
setLookupUid(String value)
Sets the Guid of the lookup table associated with a custom field.
|
void |
setMaxMultiValues(int value)
Sets the maximum number of values you can setInternal in a picklist.
|
void |
setPhoneticsAlias(String value)
Sets the phonetic pronunciation of the alias of a custom field.
|
void |
setRestrictValues(boolean value)
Determines whether only values in the list are allowed in a file.
|
void |
setRollupType(int value)
Sets the way rollups are calculated.
|
void |
setSecondaryGuid(String value)
Sets secondary guid of extended attribute.
|
void |
setSecondaryPid(String value)
Sets the secondary Pid of a custom field.
|
void |
setUserDef(boolean value)
Determines whether a custom field is user defined.
|
void |
setValueList(List<Value> value)
Sets List<Value> ValueList.
|
void |
setValuelistSortOrder(int value)
Sets the way value lists are sorted.
|
public ExtendedAttributeDefinition()
Initializes a new instance of the ExtendedAttributeDefinition
class.
public String getFieldId()
Corresponds to the Pid of a custom field.
Read/write String
.
public void setFieldId(String value)
Corresponds to the Pid of a custom field.
Read/write String
.
value
- field Id.public String getFieldName()
Returns the name of a custom field.
Read/write String
.
Currently supported for MSP 2003/2007 Xml and MSP 2003 mpp formats.
public void setFieldName(String value)
Sets the name of a custom field.
Read/write String
.
Currently supported for MSP 2003/2007 Xml and MSP 2003 mpp formats.
value
- the name of a custom field.public int getCfType()
Returns the type of a custom field.
Read/write CustomFieldType
.
public void setCfType(int value)
Sets the type of a custom field.
Read/write CustomFieldType
.
value
- custom field type.public String getGuid()
Returns the Guid of a custom field.
Read/write String
.
Currently supported for Xml format only.
public void setGuid(String value)
Sets the Guid of a custom field.
Read/write String
.
Currently supported for Xml format only.
value
- custom field Guid.public int getElementType()
Returns a value which determines whether the extended attribute is associated
with a task, a resource, or an assignment.
Read/write ElementType
.
Currently supported for Xml format only.
public void setElementType(int value)
value
- a flag which determines whether the extended attribute is associated with a task, a resource, or an assignment.public int getMaxMultiValues()
Returns the maximum number of values you can setInternal in a picklist.
Read/write int
.
Currently supported for Xml format only.
public void setMaxMultiValues(int value)
Sets the maximum number of values you can setInternal in a picklist.
Read/write int
.
Currently supported for Xml format only.
value
- the maximum number of values.public boolean getUserDef()
Determines whether a custom field is user defined.
Read/write boolean
.
Currently supported for Xml format only.
public void setUserDef(boolean value)
Determines whether a custom field is user defined.
Read/write boolean
.
Currently supported for Xml format only.
value
- true if a custom field is user defined.public String getAlias()
Returns the alias of a custom field.
Read/write String
.
public void setAlias(String value)
Sets the alias of a custom field.
Read/write String
.
value
- custom field alias.public String getSecondaryPid()
Returns the secondary Pid of a custom field.
Read/write String
.
Currently supported for Xml format only.
public void setSecondaryPid(String value)
Sets the secondary Pid of a custom field.
Read/write String
.
Currently supported for Xml format only.
value
- custom field secondary Pid.public boolean getAutoRollDown()
Determines whether an automatic rolldown to assignments is enabled.
Read/write boolean
.
Currently supported for Xml format only.
public void setAutoRollDown(boolean value)
Determines whether an automatic rolldown to assignments is enabled.
Read/write boolean
.
Currently supported for Xml format only.
value
- true if an automatic rolldown to assignments is enabled.public String getDefaultGuid()
Returns the Guid of the default lookup table entry.
Read/write String
.
Currently supported for Xml format only.
public void setDefaultGuid(String value)
Sets the Guid of the default lookup table entry.
Read/write String
.
Currently supported for Xml format only.
value
- default lookup table entry Guid.public String getLookupUid()
Returns the Guid of the lookup table associated with a custom field.
Read/write String
.
Currently supported for Xml format only.
public void setLookupUid(String value)
Sets the Guid of the lookup table associated with a custom field.
Read/write String
.
Currently supported for Xml format only.
value
- custom field lookup table Guid.public String getPhoneticsAlias()
Returns the phonetic pronunciation of the alias of a custom field.
Read/write String
.
Currently supported for Xml format only.
public void setPhoneticsAlias(String value)
Sets the phonetic pronunciation of the alias of a custom field.
Read/write String
.
Currently supported for Xml format only.
value
- custom field phonetic pronunciation.public int getRollupType()
Returns the way rollups are calculated.
Read/write RollupType
.
Currently supported for Xml format only.
public void setRollupType(int value)
Sets the way rollups are calculated.
Read/write RollupType
.
Currently supported for Xml format only.
value
- rollup type.public int getCalculationType()
Determines whether rollups are calculated for a task and group summary rows.
Read/write CalculationType
.
Currently supported for Xml format only.
public void setCalculationType(int value)
Determines whether rollups are calculated for a task and group summary rows.
Read/write CalculationType
.
Currently supported for Xml format only.
value
- calculation type.public String getFormula()
Returns the formula that Microsoft Project uses to populate a custom task field.
Read/write string
.
Currently supported for Xml format only.
public void setFormula(String value)
Sets the formula that Microsoft Project uses to populate a custom task field.
Read/write string
.
Currently supported for Xml format only.
value
- custom field formula.public boolean getRestrictValues()
Determines whether only values in the list are allowed in a file.
Read/write boolean
.
Currently supported for MSP 2003/2007 Xml and MSP 2003 mpp formats.
public void setRestrictValues(boolean value)
Determines whether only values in the list are allowed in a file.
Read/write boolean
.
Currently supported for MSP 2003/2007 Xml and MSP 2003 mpp formats.
value
- true if only values in the list are allowed in a file.public int getValuelistSortOrder()
Returns the way value lists are sorted. Values are: 0=Descending, 1=Ascending.
Read/write int
.
Currently supported for MSP 2003/2007 Xml and MSP 2003 mpp formats.
public void setValuelistSortOrder(int value)
Sets the way value lists are sorted. Values are: 0=Descending, 1=Ascending.
Read/write int
.
Currently supported for MSP 2003/2007 Xml and MSP 2003 mpp formats.
value
- the way value lists are sorted.public boolean getAppendNewValues()
Determines whether new values added to a project are automatically added to the list.
Read/write boolean
.
Currently supported for MSP 2003/2007 Xml and MSP 2003 mpp formats.
public void setAppendNewValues(boolean value)
Determines whether new values added to a project are automatically added to the list.
Read/write boolean
.
Currently supported for MSP 2003/2007 Xml and MSP 2003 mpp formats.
value
- true if new values added to a project are automatically added to the list.public String getDefault()
Returns the default value in the list.
Read/write String
.
Currently supported for MSP 2003/2007 Xml and MSP 2003 mpp formats.
public void setDefault(String value)
Sets the default value in the list.
Read/write String
.
Currently supported for MSP 2003/2007 Xml and MSP 2003 mpp formats.
value
- the default value in the list.public List<Value> getValueList()
Returns a list of values for this object.
Read/write List of Value
.
When values of extended attributes are specified as properties of elements in the schema,
they may either be specified by values or by references to the values contained in this list.
Applications may assume ordering of the list by ordering specified here.
Currently supported for MSP 2003/2007 Xml and MSP 2003 mpp formats.
public void setValueList(List<Value> value)
Sets List<Value> ValueList.
Read/write List of Value
.
When values of extended attributes are specified as properties of elements in the schema,
they may either be specified by values or by references to the values contained in this list.
Applications may assume ordering of the list by ordering specified here.
Currently supported for MSP 2003/2007 Xml and MSP 2003 mpp formats.
value
- custom field list of values.public String getSecondaryGuid()
Returns secondary guid of extended attribute.
Read/write String
.
This is new for MS Project 2010 property.
public void setSecondaryGuid(String value)
Sets secondary guid of extended attribute.
Read/write String
.
This is new for MS Project 2010 property.
value
- secondary guid.public Project getParentProject()
Returns a parent project for the ExtendedAttributeDefinition
instance.
public ExtendedAttribute createExtendedAttribute()
Creates new extended attribute with specified fieldID
public boolean equals(Object obj)
public int hashCode()
public int compareTo(ExtendedAttributeDefinition o)
compareTo
in interface Comparable<ExtendedAttributeDefinition>
Copyright (c) 2008-2015 Aspose Pty Ltd. All Rights Reserved.