com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class ExtendedAttribute



  • public class ExtendedAttribute
    extends Object

    Represents extended attributes. Currently supported all types of Extended attributes reading from MSP Xml 2003/2007 and mpp 2003. For MSP mpp 2007 all Extended attributes reading supported except durations and flags.

    • Constructor Detail

      • ExtendedAttribute

        public ExtendedAttribute()
    • Method Detail

      • getAttributeDefinition

        public ExtendedAttributeDefinition getAttributeDefinition()

        Returns the attribute definition

        Returns:
        attribute definition (ExtendedAttributeDefinition).
      • setAttributeDefinition

        public void setAttributeDefinition(ExtendedAttributeDefinition value)

        Sets the attribute definition

        Parameters:
        value - attribute definition (ExtendedAttributeDefinition).
      • getDurationFormat

        public int getDurationFormat()

        Returns the duration format. Read/write TimeUnitType.

        Returns:
        duration format.
      • setDurationFormat

        public void setDurationFormat(int value)

        Sets the duration format. Read/write TimeUnitType.

        Parameters:
        value - duration format.
      • getFieldId

        public String getFieldId()

        Returns the id of a field. Read/write String.

        Returns:
        field id.
      • setFieldId

        public void setFieldId(String value)

        Sets the id of a field. Read/write String.

        Parameters:
        value - field id.
      • getValue

        public String getValue()

        Returns the value of a field. Read/write String.

        Returns:
        field value.
      • setValue

        public void setValue(String value)

        Sets the value of a field. Read/write String.

        Parameters:
        value - field value.
      • getValueGuid

        public String getValueGuid()

        Returns the guid of a value. Read/write String.

        Returns:
        value Guid.
      • setValueGuid

        @Deprecated
        public void setValueGuid(String value)
        Deprecated. Do not use Setter, instead use ExtendedAttributeDefinition.CreateExtendedAttribute(Value lookupValue) to create an extended attribute with a lookup value.

        Sets the guid of a value. Read/write String.

        Parameters:
        value - value Guid.
      • getValueReadOnly

        public boolean getValueReadOnly()

        Returns a flag which determines whether a value of this ExtendedAttribute instance is read-only.

        Value: returns true if a formula is defined in the ExtendedAttributeDefinition for this object.
        Returns:
        returns true if a formula is defined in the ExtendedAttributeDefinition for this object; otherwise, false.