public class Value extends Object
Represents a value in a value list.
Constructor and Description |
---|
Value()
Initializes a new instance of the
Value class. |
Modifier and Type | Method and Description |
---|---|
Date |
getDateValue()
Returns the actual value if it can be represented as Date.
|
String |
getDescription()
Returns the description of a value.
|
Duration |
getDuration()
Gets the actual value which is used to represent Duration.
|
int |
getDurationValue()
Deprecated.
|
int |
getId()
Returns the unique identifier of a value across a project.
|
int |
getNumberValue()
Returns the actual value which is used to represent integer number.
|
String |
getPhonetic()
Returns the phonetic information about custom field name.
|
String |
getStringValue()
Returns the actual value which is used to represent Text string.
|
String |
getVal()
Returns the actual value in internal representation.
|
UUID |
getValueGuid()
Returns a GUID which identifies this value among others in the entire project.
|
void |
setDateValue(Date value)
Sets the actual value if it can be represented as Date.
|
void |
setDescription(String value)
Sets the description of a value.
|
void |
setDuration(Duration value)
Sets the actual value which is used to represent Duration.
|
void |
setDurationValue(int value)
Deprecated.
|
void |
setId(int value)
Sets the unique identifier of a value across a project.
|
void |
setNumberValue(int value)
Sets the actual value which is used to represent integer number.
|
void |
setPhonetic(String value)
Sets the phonetic information about custom field name.
|
void |
setStringValue(String value)
Sets the actual value which is used to represent Text string.
|
void |
setVal(String value)
Sets the actual value in internal representation.
|
public Value()
Initializes a new instance of the Value
class.
public final Date getDateValue()
public final void setDateValue(Date value)
Sets the actual value if it can be represented as Date.
Val
, when you need to set the Date value.
value
- the actual value if it can be represented as Date.public final String getDescription()
public final void setDescription(String value)
value
- the description of a value.public final Duration getDuration()
public final void setDuration(Duration value)
Sets the actual value which is used to represent Duration.
setVal()
, when you need to set the Duration value.
value
- the actual value which is used to represent Duration.@Deprecated public final int getDurationValue()
0
.0
.@Deprecated public void setDurationValue(int value)
Sets the actual value which is used to represent Duration in minutes. Default value is 0
.
setVal()
, when you need to set the Duration value.
value
- the actual value which is used to represent Duration in minutes.public final int getId()
public final void setId(int value)
Value
instances.
Minimal Id
value is 1
.value
- the unique identifier of a value across a project.public final int getNumberValue()
public final void setNumberValue(int value)
Sets the actual value which is used to represent integer number.
setVal()
, when you need to set the Number value.
value
- the actual value which is used to represent integer number.public final String getPhonetic()
public final void setPhonetic(String value)
value
- the phonetic information about custom field name.public final String getStringValue()
public final void setStringValue(String value)
Sets the actual value which is used to represent Text string.
setVal()
, when you need to set the Text value.
value
- the actual value which is used to represent Text string.public final String getVal()
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
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.
value
- the actual value in internal representation.public final UUID getValueGuid()
Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.