public class ExtendedAttribute extends Object
Represents extended attributes.
Modifier and Type | Method and Description |
---|---|
ExtendedAttributeDefinition |
getAttributeDefinition()
Gets sets the attribute definition
|
Date |
getDateValue()
Gets a value for attributes with date types (Date, Start, Finish).
|
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 |
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 |
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.
|
String |
toString()
Returns short string representation of an extended attribute.
|
public final ExtendedAttributeDefinition getAttributeDefinition()
Gets sets 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.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.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'.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'.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.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.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'.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'.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.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.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.ExtendedAttribute
instance is read-only.