public class ExtendedAttribute extends Object
Represents extended attributes.
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
ExtendedAttributeDefinition |
getAttributeDefinition()
Gets the attribute definition.
|
Date |
getDateValue()
Gets a value for attributes with date types (Date, Start, Finish).
|
int |
getDurationFormat()
Deprecated.
DurationFormat is obsolete and will be removed in a future release. DurationValue.TimeUnit should be
used instead.
|
Duration |
getDurationValue()
Gets value for attributes with 'Duration' type.
|
String |
getFieldId()
Gets the id of a field.
|
boolean |
getFlagValue()
Gets a value indicating whether a flag is set for an attribute with 'Flag' type.
|
BigDecimal |
getNumericValue()
Gets a value for attributes with numeric types (Cost, Number).
|
String |
getTextValue()
Gets a value for attributes with 'Text' type.
|
String |
getValue()
Deprecated.
Value is obsolete and will be removed in a future release. Prefer using strongly-typed properties.
|
String |
getValueGuid()
Gets the guid of a lookup value.
|
boolean |
getValueReadOnly()
Gets a value indicating whether a value of this
ExtendedAttribute instance is read-only. |
void |
setAttributeDefinition(ExtendedAttributeDefinition value)
Sets the attribute definition.
|
void |
setDateValue(Date value)
Sets a value for attributes with date types (Date, Start, Finish).
|
void |
setDurationFormat(int value)
Deprecated.
DurationFormat is obsolete and will be removed in a future release. DurationValue.TimeUnit should be
used instead.
|
void |
setDurationValue(Duration value)
Sets value for attributes with 'Duration' type.
|
void |
setFieldId(String value)
Sets the id of a field.
|
void |
setFlagValue(boolean value)
Sets a value indicating whether a flag is set for an attribute with 'Flag' type.
|
void |
setNumericValue(BigDecimal value)
Sets a value for attributes with numeric types (Cost, Number).
|
void |
setTextValue(String value)
Sets a value for attributes with 'Text' type.
|
void |
setValue(String value)
Deprecated.
Value is obsolete and will be removed in a future release. Prefer using strongly-typed properties.
|
@Deprecated public ExtendedAttribute()
Initializes a new instance of the ExtendedAttribute
class.
public final ExtendedAttributeDefinition getAttributeDefinition()
Gets the attribute definition.
public final void setAttributeDefinition(ExtendedAttributeDefinition value)
Sets the attribute definition.
value
- the attribute definition.public final Date getDateValue()
Gets a value for attributes with date types (Date, Start, Finish).
com.aspose.ms.System.InvalidOperationException
- AttributeDefinition
(getAttributeDefinition()
/setAttributeDefinition(ExtendedAttributeDefinition)
) property is not initialized or current attribute
is not an date attribute.
Value
(getValue()
/setValue(String)
) property to set
values for date attributes.public final void setDateValue(Date value)
Sets a value for attributes with date types (Date, Start, Finish).
value
- a value for attributes with date types (Date, Start, Finish).com.aspose.ms.System.InvalidOperationException
- AttributeDefinition
(getAttributeDefinition()
/setAttributeDefinition(ExtendedAttributeDefinition)
) property is not initialized or current attribute
is not an date attribute.
Value
(getValue()
/setValue(String)
) property to set
values for date attributes.@Deprecated public final int getDurationFormat()
Gets the duration format.
Read/write TimeUnitType
.
@Deprecated public final void setDurationFormat(int value)
Sets the duration format.
Read/write TimeUnitType
.
value
- the duration format.public final Duration getDurationValue()
Gets value for attributes with 'Duration' type.
com.aspose.ms.System.InvalidOperationException
- AttributeDefinition
(getAttributeDefinition()
/setAttributeDefinition(ExtendedAttributeDefinition)
) property is not initialized or CfType of
AttributeDefinition is not 'Duration'.
Value
(getValue()
/setValue(String)
) property to set
values for attributes with 'Duration' type.public final void setDurationValue(Duration value)
Sets value for attributes with 'Duration' type.
value
- value for attributes with 'Duration' type.com.aspose.ms.System.InvalidOperationException
- AttributeDefinition
(getAttributeDefinition()
/setAttributeDefinition(ExtendedAttributeDefinition)
) property is not initialized or CfType of
AttributeDefinition is not 'Duration'.
Value
(getValue()
/setValue(String)
) property to set
values for attributes with 'Duration' type.public final String getFieldId()
Gets the id of a field.
Read/write String
.
public final void setFieldId(String value)
Sets the id of a field.
Read/write String
.
value
- the id of a field.public final boolean getFlagValue()
Gets a value indicating whether a flag is set for an attribute with 'Flag' type.
com.aspose.ms.System.InvalidOperationException
- AttributeDefinition
(getAttributeDefinition()
/setAttributeDefinition(ExtendedAttributeDefinition)
) property is not initialized or current attribute
is not a flag attribute.
Value
(getValue()
/setValue(String)
) property to set
values for flag attributes.public final void setFlagValue(boolean value)
Sets a value indicating whether a flag is set for an attribute with 'Flag' type.
value
- a value indicating whether a flag is set for an attribute with 'Flag' type.com.aspose.ms.System.InvalidOperationException
- AttributeDefinition
(getAttributeDefinition()
/setAttributeDefinition(ExtendedAttributeDefinition)
) property is not initialized or current attribute
is not a flag attribute.
Value
(getValue()
/setValue(String)
) property to set
values for flag attributes.public final BigDecimal getNumericValue()
Gets a value for attributes with numeric types (Cost, Number).
com.aspose.ms.System.InvalidOperationException
- AttributeDefinition
(getAttributeDefinition()
/setAttributeDefinition(ExtendedAttributeDefinition)
) property is not initialized or CfType of
AttributeDefinition is not 'Cost' or 'Number'.
Value
(getValue()
/setValue(String)
) property to set
values for attributes with 'Cost' and 'Number' types.public final void setNumericValue(BigDecimal value)
Sets a value for attributes with numeric types (Cost, Number).
value
- a value for attributes with numeric types (Cost, Number).com.aspose.ms.System.InvalidOperationException
- AttributeDefinition
(getAttributeDefinition()
/setAttributeDefinition(ExtendedAttributeDefinition)
) property is not initialized or CfType of
AttributeDefinition is not 'Cost' or 'Number'.
Value
(getValue()
/setValue(String)
) property to set
values for attributes with 'Cost' and 'Number' types.public final String getTextValue()
Gets a value for attributes with 'Text' type.
com.aspose.ms.System.InvalidOperationException
- AttributeDefinition
(getAttributeDefinition()
/setAttributeDefinition(ExtendedAttributeDefinition)
) property is not initialized or current attribute
is not a text attribute.
Value
(getValue()
/setValue(String)
) property to set
values for text attributes.public final void setTextValue(String value)
Sets a value for attributes with 'Text' type.
value
- a value for attributes with 'Text' type.com.aspose.ms.System.InvalidOperationException
- AttributeDefinition
(getAttributeDefinition()
/setAttributeDefinition(ExtendedAttributeDefinition)
) property is not initialized or current attribute
is not a text attribute.
Value
(getValue()
/setValue(String)
) property to set
values for text attributes.@Deprecated public final String getValue()
Gets the value of a field.
If you want to set Duration value prefer using strongly typed DurationValue
(getDurationValue()
/setDurationValue(Duration)
) property.
If you want to set Number or Cost value prefer using strongly typed NumericValue
(getNumericValue()
/setNumericValue(java.math.BigDecimal)
) property.
If you want to set Date, Start or Finish value prefer using strongly typed DateValue
(getDateValue()
/setDateValue(java.util.Date)
) property.
If you want to set Flag value prefer using strongly typed FlagValue
(getFlagValue()
/setFlagValue(boolean)
) property.
If you want to set Text value prefer using strongly typed TextValue
(getTextValue()
/setTextValue(String)
) property.
@Deprecated public final void setValue(String value)
Sets the value of a field.
If you want to set Duration value prefer using strongly typed DurationValue
(getDurationValue()
/setDurationValue(Duration)
) property.
If you want to set Number or Cost value prefer using strongly typed NumericValue
(getNumericValue()
/setNumericValue(java.math.BigDecimal)
) property.
If you want to set Date, Start or Finish value prefer using strongly typed DateValue
(getDateValue()
/setDateValue(java.util.Date)
) property.
If you want to set Flag value prefer using strongly typed FlagValue
(getFlagValue()
/setFlagValue(boolean)
) property.
If you want to set Text value prefer using strongly typed TextValue
(getTextValue()
/setTextValue(String)
) property.
value
- the value of a field.public final String getValueGuid()
Gets the guid of a lookup value.
public final boolean getValueReadOnly()
Gets a value indicating whether a value of this ExtendedAttribute
instance is read-only.
ExtendedAttributeDefinition
for this object.Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.