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

        @Deprecated
        public ExtendedAttribute()
        Deprecated. Default ctor for ExtendedAttribute is obsolete and will be removed in a future release. The preferred way to create extended attribute is to use one of ExtendedAttributeDefinition.CreateExtendedAttribute overloads.

        Initializes a new instance of the ExtendedAttribute class.

    • Method Detail

      • getAttributeDefinition

        public final ExtendedAttributeDefinition getAttributeDefinition()

        Gets the attribute definition.

        Returns:
        the attribute definition.
      • setAttributeDefinition

        public final void setAttributeDefinition(ExtendedAttributeDefinition value)

        Sets the attribute definition.

        Parameters:
        value - the attribute definition.
      • setDateValue

        public final void setDateValue(Date value)

        Sets a value for attributes with date types (Date, Start, Finish).

        Parameters:
        value - a value for attributes with date types (Date, Start, Finish).
        Throws:
        com.aspose.ms.System.InvalidOperationException - AttributeDefinition(getAttributeDefinition()/setAttributeDefinition(ExtendedAttributeDefinition)) property is not initialized or current attribute is not an date attribute.


        Prefer this property to Value(getValue()/setValue(String)) property to set values for date attributes.

      • getDurationFormat

        @Deprecated
        public final int getDurationFormat()
        Deprecated. DurationFormat is obsolete and will be removed in a future release. DurationValue.TimeUnit should be used instead.

        Gets the duration format. Read/write TimeUnitType.

        Returns:
        duration format.
      • setDurationFormat

        @Deprecated
        public final void setDurationFormat(int value)
        Deprecated. DurationFormat is obsolete and will be removed in a future release. DurationValue.TimeUnit should be used instead.

        Sets the duration format. Read/write TimeUnitType.

        Parameters:
        value - duration format.
      • getFieldId

        public final String getFieldId()

        Gets the id of a field.

        Returns:
        the id of a field.
      • setFieldId

        public final void setFieldId(String value)

        Sets the id of a field.

        Parameters:
        value - the id of a field.
      • getFlagValue

        public final boolean getFlagValue()

        Gets a value indicating whether a flag is set for an attribute with 'Flag' type.

        Returns:
        a value indicating whether a flag is set for an attribute with 'Flag' type.
        Throws:
        com.aspose.ms.System.InvalidOperationException - AttributeDefinition(getAttributeDefinition()/setAttributeDefinition(ExtendedAttributeDefinition)) property is not initialized or current attribute is not a flag attribute.


        Prefer this property to Value(getValue()/setValue(String)) property to set values for flag attributes.

      • setFlagValue

        public final void setFlagValue(boolean value)

        Sets a value indicating whether a flag is set for an attribute with 'Flag' type.

        Parameters:
        value - a value indicating whether a flag is set for an attribute with 'Flag' type.
        Throws:
        com.aspose.ms.System.InvalidOperationException - AttributeDefinition(getAttributeDefinition()/setAttributeDefinition(ExtendedAttributeDefinition)) property is not initialized or current attribute is not a flag attribute.


        Prefer this property to Value(getValue()/setValue(String)) property to set values for flag attributes.

      • getNumericValue

        public final BigDecimal getNumericValue()

        Gets a value for attributes with numeric types (Cost, Number).

        Returns:
        a value for attributes with numeric types (Cost, Number).
        Throws:
        com.aspose.ms.System.InvalidOperationException - AttributeDefinition(getAttributeDefinition()/setAttributeDefinition(ExtendedAttributeDefinition)) property is not initialized or CfType of AttributeDefinition is not 'Cost' or 'Number'.


        Prefer this property to Value(getValue()/setValue(String)) property to set values for attributes with 'Cost' and 'Number' types.

      • setNumericValue

        public final void setNumericValue(BigDecimal value)

        Sets a value for attributes with numeric types (Cost, Number).

        Parameters:
        value - a value for attributes with numeric types (Cost, Number).
        Throws:
        com.aspose.ms.System.InvalidOperationException - AttributeDefinition(getAttributeDefinition()/setAttributeDefinition(ExtendedAttributeDefinition)) property is not initialized or CfType of AttributeDefinition is not 'Cost' or 'Number'.


        Prefer this property to Value(getValue()/setValue(String)) property to set values for attributes with 'Cost' and 'Number' types.

      • getValueGuid

        public final String getValueGuid()

        Gets the guid of a lookup value.

        Returns:
        the guid of a lookup value.
      • getValueReadOnly

        public final boolean getValueReadOnly()

        Gets a value indicating whether a value of this ExtendedAttribute instance is read-only.

        Returns:
        true if a formula or rollup is defined in the ExtendedAttributeDefinition for this object.