dw.object
Class ObjectAttributeDefinition
dw.object.ObjectAttributeDefinition
Represents the definition of an object's attribute.
Constants
VALUE_TYPE_BOOLEAN
:
Number = 8
Boolean value type.
VALUE_TYPE_DATE
:
Number = 6
Date value type.
VALUE_TYPE_DATETIME
:
Number = 11
Date and Time value type.
VALUE_TYPE_EMAIL
:
Number = 12
Email value type.
VALUE_TYPE_ENUM_OF_INT
:
Number = 31
Enum of int value type.
VALUE_TYPE_ENUM_OF_STRING
:
Number = 33
Enum of String value type.
VALUE_TYPE_HTML
:
Number = 5
HTML value type.
VALUE_TYPE_IMAGE
:
Number = 7
Image value type.
VALUE_TYPE_INT
:
Number = 1
int value type.
VALUE_TYPE_MONEY
:
Number = 9
Money value type.
VALUE_TYPE_NUMBER
:
Number = 2
Number value type.
VALUE_TYPE_PASSWORD
:
Number = 13
Password value type.
VALUE_TYPE_QUANTITY
:
Number = 10
Quantity value type.
VALUE_TYPE_SET_OF_INT
:
Number = 21
Set of int value type.
VALUE_TYPE_SET_OF_NUMBER
:
Number = 22
Set of Number value type.
VALUE_TYPE_SET_OF_STRING
:
Number = 23
Set of String value type.
VALUE_TYPE_STRING
:
Number = 3
String value type.
VALUE_TYPE_TEXT
:
Number = 4
Text value type.
Properties
attributeGroups
:
Collection
(Read Only)
All attribute groups the attribute is assigned to.
defaultValue
:
ObjectAttributeValueDefinition
(Read Only)
Return the default value for the attribute or null if none is defined.
displayName
:
String
(Read Only)
The display name for the attribute, which can be used in the
user interface.
ID
:
String
(Read Only)
The ID of the attribute definition.
multiValueType
:
boolean
(Read Only)
Returns true
if the attribute can have multiple values.
Attributes of the following types are multi-value capable:
Additionally, attributes of the following types can be multi-value enabled:
objectTypeDefinition
:
ObjectTypeDefinition
(Read Only)
The object type definition in which this attribute is defined.
setValueType
:
boolean
(Read Only)
Returns
true
if the attribute is of type 'Set of'.
Deprecated:
Use isMultiValueType() instead.
system
:
boolean
(Read Only)
Indicates if the attribute is a pre-defined system attribute
or a custom attribute.
unit
:
String
(Read Only)
The attribute's unit representation such as
inches for length or pounds for weight. The value returned by
this method is based on the attribute itself.
values
:
Collection
(Read Only)
The list of attribute values. In the user interface only the
values specified in this list should be offered as valid input values.
The collection contains instances of ObjectAttributeValueDefinition.
valueTypeCode
:
Number
(Read Only)
A code for the data type stored in the attribute. See constants
defined in this class.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
getAttributeGroups()
:
Collection
Returns all attribute groups the attribute is assigned to.
getDefaultValue()
:
ObjectAttributeValueDefinition
Return the default value for the attribute or null if none is defined.
getDisplayName()
:
String
Returns the display name for the attribute, which can be used in the user interface.
getObjectTypeDefinition()
:
ObjectTypeDefinition
Returns the object type definition in which this attribute is defined.
getUnit()
:
String
Returns the attribute's unit representation such as inches for length or pounds for weight.
getValues()
:
Collection
Returns the list of attribute values.
getValueTypeCode()
:
Number
Returns a code for the data type stored in the attribute.
isKey()
:
boolean
Identifies if the attribute represents the primary key of the object.
isMandatory()
:
boolean
Checks if this attribute is mandatory.
isMultiValueType()
:
boolean
Returns true
if the attribute can have multiple values.
isSetValueType()
:
boolean
Returns
true
if the attribute is of type 'Set of'.
isSystem()
:
boolean
Indicates if the attribute is a pre-defined system attribute or a custom attribute.
requiresEncoding()
:
boolean
Returns a boolean flag indicating whether or not values of this attribute definition should be encoded using the encoding="off" flag in ISML templates.
Methods inherited from class
Object
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
Method Detail
getAttributeGroups
getAttributeGroups()
:
Collection
Returns all attribute groups the attribute is assigned to.
Returns:
all attribute groups the attribute is assigned to.
getDefaultValue
getDefaultValue()
:
ObjectAttributeValueDefinition
Return the default value for the attribute or null if none is defined.
Returns:
the default value for the attribute or null if none is defined.
getDisplayName
getDisplayName()
:
String
Returns the display name for the attribute, which can be used in the
user interface.
Returns:
the display name for the attribute, which can be used in the user interface.
getID
getID()
:
String
Returns the ID of the attribute definition.
Returns:
the ID of the attribute definition.
getObjectTypeDefinition
getObjectTypeDefinition()
:
ObjectTypeDefinition
Returns the object type definition in which this attribute is defined.
Returns:
the object type definition in which this attribute is defined.
getUnit
getUnit()
:
String
Returns the attribute's unit representation such as
inches for length or pounds for weight. The value returned by
this method is based on the attribute itself.
Returns:
the attribute's unit representation such as inches for length or pounds for weight.
getValues
getValues()
:
Collection
Returns the list of attribute values. In the user interface only the
values specified in this list should be offered as valid input values.
The collection contains instances of ObjectAttributeValueDefinition.
Returns:
a collection of ObjectAttributeValueDefinition instances representing the list of attribute values, or null if no values are specified.
getValueTypeCode
getValueTypeCode()
:
Number
Returns a code for the data type stored in the attribute. See constants
defined in this class.
Returns:
a code for the data type stored in the attribute. See constants defined in this class.
isKey
isKey()
:
boolean
Identifies if the attribute represents the primary key of the object.
Returns:
true if the attribute represents the primary key, false otherwise.
isMandatory
isMandatory()
:
boolean
Checks if this attribute is mandatory.
Returns:
true, if this attribute is mandatory
isMultiValueType
isMultiValueType()
:
boolean
Returns true
if the attribute can have multiple values.
Attributes of the following types are multi-value capable:
Additionally, attributes of the following types can be multi-value enabled:
Returns:
true
if attributes can have multiple values, otherwise false
isSetValueType
isSetValueType()
:
boolean
Returns
true
if the attribute is of type 'Set of'.
Deprecated:
Use isMultiValueType() instead.
isSystem
isSystem()
:
boolean
Indicates if the attribute is a pre-defined system attribute
or a custom attribute.
Returns:
true if the the attribute is a pre-defined system attribute, false if it is a custom attribute.
requiresEncoding
requiresEncoding()
:
boolean
Returns a boolean flag indicating whether or not values of this attribute
definition should be encoded using the encoding="off" flag in ISML
templates.
Returns:
a boolean flag indicating whether or not values of this attribute definition should be encoded using the encoding="off" flag in ISML templates.
© Copyright 2000-2024, salesforce.com inc. All rights reserved. Various trademarks held by their respective owners.