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

      • getId

        public int getId()
        Returns the unique identifier of a value across a project.
        Returns:
        the unique identifier of a value across a project.
      • setId

        public 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 value is 1.
        Parameters:
        value - the unique identifier of a value across a project.
      • getValueGuid

        public com.aspose.ms.System.Guid getValueGuid()
        Returns 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.
      • getVal

        public String getVal()
        Returns the actual value in internal representation.
        Returns:
        the actual value in internal representation.
      • setVal

        public 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 property.

        If you want to set Number value prefer using strongly typed NumberValue property.

        If you want to set Date/Start/Finish values, prefer using strongly typed DateValue property.

        If you want to set Duration value prefer using strongly typed DurationValue property.

        If your type wasn't listed, use Val property.

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

        public String getStringValue()
        Returns the actual value which is used to represent Text string.
        Returns:
        the actual value which is used to represent Text string.
      • setStringValue

        public void setStringValue(String value)

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


        Prefer this setter over the setVal(), when you need to set the Text value.

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

        public int getNumberValue()
        Returns the actual value which is used to represent integer number.
        Returns:
        the actual value which is used to represent integer number.
      • setNumberValue

        public void setNumberValue(int value)

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


        Prefer this setter over the setVal(), when you need to set the Number value.

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

        public int getDurationValue()
        Returns the actual value which is used to represent Duration in minutes. Default value is 0.
        Returns:
        the actual value which is used to represent Duration in minutes. Default value is 0.
      • setDurationValue

        public void setDurationValue(int value)

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


        Prefer this setter over the setVal(), when you need to set the Duration value.

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

        public Date getDateValue()
        Returns the actual value if it can be represented as date-time.
        Returns:
        the actual value if it can be represented as date-time.
      • setDateValue

        public void setDateValue(Date value)
        Sets the actual value represented as date-time. Prefer this setter over the setVal(), when you need to set the date-time value.
        Parameters:
        value - date-time of a value to set.
      • getDescription

        public String getDescription()
        Returns the description of a value.
        Returns:
        the description of a value.
      • setDescription

        public void setDescription(String value)
        Sets the description of a value.
        Parameters:
        value - the description of a value.
      • getPhonetic

        public String getPhonetic()
        Returns the phonetic information about custom field name.
        Returns:
        the phonetic information about custom field name.
      • setPhonetic

        public void setPhonetic(String value)
        Sets the phonetic information about custom field name.
        Parameters:
        value - the phonetic information about custom field name.