public class ExtendedAttribute extends Object
Represents extended attributes.
Modifier and Type | Method and Description |
---|---|
ExtendedAttributeDefinition |
getAttributeDefinition()
Deprecated.
This property's setter is obsolete and will be removed in v 20.12. Please use factory methods of
ExtendedAttributeDefinition class to create instance of ExtendedAttribute for the specific
AttributeDefinition. The getter can be safely used.
|
Date |
getDateValue()
Gets a value for attributes with date types (Date, Start, Finish).
|
Duration |
getDurationValue()
Gets value for attributes with 'Duration' type.
|
String |
getFieldId()
Deprecated.
This property's setter is obsolete and will be removed in v 20.12. Please use factory methods of
ExtendedAttributeDefinition class to create instance of ExtendedAttribute for the specific
AttributeDefinition. The getter can be safely used.
|
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)
Deprecated.
This property's setter is obsolete and will be removed in v 20.12. Please use factory methods of
ExtendedAttributeDefinition class to create instance of ExtendedAttribute for the specific
AttributeDefinition. The getter can be safely used.
|
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)
Deprecated.
This property's setter is obsolete and will be removed in v 20.12. Please use factory methods of
ExtendedAttributeDefinition class to create instance of ExtendedAttribute for the specific
AttributeDefinition. The getter can be safely used.
|
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.
|
@Deprecated public final ExtendedAttributeDefinition getAttributeDefinition()
Gets sets the attribute definition
@Deprecated public final void setAttributeDefinition(ExtendedAttributeDefinition value)
Sets sets the attribute definition
value
- sets the attribute definitionpublic final Date getDateValue()
Gets a value for attributes with date types (Date, Start, Finish).
com.aspose.ms.System.InvalidOperationException
- Thrown if the ExtendedAttribute.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
- Thrown if the ExtendedAttribute.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
- Thrown if the ExtendedAttribute.AttributeDefinition
(getAttributeDefinition()
/setAttributeDefinition(ExtendedAttributeDefinition)
) property is not
initialized or custom field type of ExtendedAttribute.AttributeDefinition
(getAttributeDefinition()
/setAttributeDefinition(ExtendedAttributeDefinition)
) property is not a
Duration
instance.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
- Thrown if the ExtendedAttribute.AttributeDefinition
(getAttributeDefinition()
/setAttributeDefinition(ExtendedAttributeDefinition)
) property is not
initialized or custom field type of ExtendedAttribute.AttributeDefinition
(getAttributeDefinition()
/setAttributeDefinition(ExtendedAttributeDefinition)
) property is not a
Duration
instance.@Deprecated public final String getFieldId()
Gets the id of a field.
Read/write String
.
@Deprecated 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
- Thrown if the ExtendedAttribute.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
- Thrown if the ExtendedAttribute.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
- Thrown if the ExtendedAttribute.AttributeDefinition
(getAttributeDefinition()
/setAttributeDefinition(ExtendedAttributeDefinition)
) property is not
initialized or custom field type of ExtendedAttribute.AttributeDefinition
(getAttributeDefinition()
/setAttributeDefinition(ExtendedAttributeDefinition)
) property 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
- Thrown if the ExtendedAttribute.AttributeDefinition
(getAttributeDefinition()
/setAttributeDefinition(ExtendedAttributeDefinition)
) property is not
initialized or custom field type of ExtendedAttribute.AttributeDefinition
(getAttributeDefinition()
/setAttributeDefinition(ExtendedAttributeDefinition)
) property is not
'Cost' or 'Number'.public final String getTextValue()
Gets a value for attributes with 'Text' type.
com.aspose.ms.System.InvalidOperationException
- Thrown if the ExtendedAttribute.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
- Thrown if the ExtendedAttribute.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.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.