com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class Value



  • public class Value
    extends Object

    Represents a value in a value list.

    • Constructor Summary

      Constructors 
      Constructor and Description
      Value()
      Initializes a new instance of the Value class.
    • Constructor Detail

      • Value

        public Value()

        Initializes a new instance of the Value class.

    • Method Detail

      • getDateValue

        public final Date getDateValue()

        Gets the actual value if it can be represented as DateTime. Default value is java.util.Date#MinValue.


        Prefer this property over the Val(getVal()/setVal(String)), when you need to set the DateTime value.

        Returns:
        the actual value if it can be represented as DateTime.
      • setDateValue

        public final void setDateValue(Date value)

        Sets the actual value if it can be represented as DateTime. Default value is java.util.Date#MinValue.


        Prefer this property over the Val(getVal()/setVal(String)), when you need to set the DateTime value.

        Parameters:
        value - the actual value if it can be represented as DateTime.
      • getDescription

        public final String getDescription()

        Gets the description of a value. Read/write String.

        Returns:
        the description of a value.
      • setDescription

        public final void setDescription(String value)

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

        Parameters:
        value - the description of a value.
      • getDuration

        public final Duration getDuration()

        Gets the actual value which is used to represent Duration.


        Prefer this property over the Val(getVal()/setVal(String)), when you need to set the Duration value.

        Returns:
        the actual value which is used to represent Duration.
      • setDuration

        public final void setDuration(Duration value)

        Sets the actual value which is used to represent Duration.


        Prefer this property over the Val(getVal()/setVal(String)), when you need to set the Duration value.

        Parameters:
        value - the actual value which is used to represent Duration.
      • getDurationValue

        @Deprecated
        public final int getDurationValue()
        Deprecated. This property will be removed in future releases. Use strongly typed 'Duration' property instead.Avoid using setter because TimeUnitType information is lost.

        Gets the actual value which is used to represent Duration in minutes. Default value is 0.


        Prefer this property over the Val(getVal()/setVal(String)), when you need to set the Duration value.

        Returns:
        the actual value which is used to represent Duration in minutes.
      • setDurationValue

        @Deprecated
        public final void setDurationValue(int value)
        Deprecated. This property will be removed in future releases. Use strongly typed 'Duration' property instead.Avoid using setter because TimeUnitType information is lost.

        Sets the actual value which is used to represent Duration in minutes. Default value is 0.


        Prefer this property over the Val(getVal()/setVal(String)), when you need to set the Duration value.

        Parameters:
        value - the actual value which is used to represent Duration in minutes.
      • getId

        public final int getId()

        Gets the unique identifier of a value across a project.

        It's important to not have same identifiers for different Value instances.

        Minimal Id(getId()/setId(int)) value is 1.

        Returns:
        the unique identifier of a value across a project.
      • setId

        public final void setId(int value)

        Sets the unique identifier of a value across a project.

        It's important to not have same identifiers for different Value instances.

        Minimal Id(getId()/setId(int)) value is 1.

        Parameters:
        value - the unique identifier of a value across a project.
      • getNumberValue

        public final int getNumberValue()

        Gets the actual value which is used to represent integer number.


        Prefer this property over the Val(getVal()/setVal(String)), when you need to set the Number value.

        Returns:
        the actual value which is used to represent integer number.
      • setNumberValue

        public final void setNumberValue(int value)

        Sets the actual value which is used to represent integer number.


        Prefer this property over the Val(getVal()/setVal(String)), when you need to set the Number value.

        Parameters:
        value - the actual value which is used to represent integer number.
      • getPhonetic

        public final String getPhonetic()

        Gets the phonetic information about custom field name. Read/write String.

        Returns:
        the phonetic information about custom field name.
      • setPhonetic

        public final void setPhonetic(String value)

        Sets the phonetic information about custom field name. Read/write String.

        Parameters:
        value - the phonetic information about custom field name.
      • getStringValue

        public final String getStringValue()

        Gets the actual value which is used to represent Text string.


        Prefer this property over the Val(getVal()/setVal(String)), when you need to set the Text value.

        Returns:
        the actual value which is used to represent Text string.
      • setStringValue

        public final void setStringValue(String value)

        Sets the actual value which is used to represent Text string.


        Prefer this property over the Val(getVal()/setVal(String)), when you need to set the Text value.

        Parameters:
        value - the actual value which is used to represent Text string.
      • getVal

        public final String getVal()

        Gets the actual value in internal representation. Prefer using strongly typed properties which are listed below.


        If you want to set Text value prefer using strongly typed StringValue(getStringValue()/setStringValue(String)) property.

        If you want to set Number value prefer using strongly typed NumberValue(getNumberValue()/setNumberValue(int)) property.

        If you want to set Date/Start/Finish values, prefer using strongly typed DateTimeValue(#getDateTimeValue/#setDateTimeValue(DateTime)) property.

        If you want to set Duration value prefer using strongly typed Duration(getDuration()/#setDuration(Nullable)) property.

        If your type wasn't listed, use Val(getVal()/setVal(String)) property.

        Returns:
        the actual value in internal representation.
      • setVal

        public final void setVal(String value)

        Sets the actual value in internal representation. Prefer using strongly typed properties which are listed below.


        If you want to set Text value prefer using strongly typed StringValue(getStringValue()/setStringValue(String)) property.

        If you want to set Number value prefer using strongly typed NumberValue(getNumberValue()/setNumberValue(int)) property.

        If you want to set Date/Start/Finish values, prefer using strongly typed DateTimeValue(#getDateTimeValue/#setDateTimeValue(DateTime)) property.

        If you want to set Duration value prefer using strongly typed Duration(getDuration()/#setDuration(Nullable)) property.

        If your type wasn't listed, use Val(getVal()/setVal(String)) property.

        Parameters:
        value - the actual value in internal representation.
      • getValueGuid

        public final UUID getValueGuid()

        Gets a GUID which identifies this value among others in the entire project.

        Returns:
        a GUID which identifies this value among others in the entire project.