CentraSite Documentation : CentraSite Administrator’s Guide : Object Type Management : Basic Components of a Type : Attributes : Attribute Data Types
Attribute Data Types
When you add an attribute to a type, you specify the attribute's data type. The data type determines what kind of information the attribute can hold. After you add an attribute to a type, the attribute's data type cannot be changed.
The following table lists the data types that you can assign to an attribute. Most types can be configured to hold a single value or multiple values (that is, an array of values).
Data Type
Description
Boolean
Holds a true or false value.
Note:  
When a Boolean value is displayed in the CentraSite user interface, its value is generally displayed as "Yes" (if the attribute's value is true) or "No" (if the attribute's value is false).
Classification
Holds references to one or more categories in a specified taxonomy. You use this type of attribute to classify assets according to a specified taxonomy.
Computed Attribute
Holds a value that is supplied by a user-defined Java plug-in.
After you have defined a computed attribute, you can use it in CentraSite Control in the same way as any other attribute. You can, for example, assign the attribute to a profile or reorder the attribute position within a profile.
Date/Time
Holds a timestamp that represents a specific date and/or time.
Duration
Holds a value that represents a period of time as expressed in Years, Months, Days, Hours, Minutes, and Seconds.
Email
Holds an email address. This data type only accepts values in the format:
anyString@anyString
Note:  
When a user enters a value for an Email attribute, CentraSite verifies that the value conforms to the format above, but it does not attempt to validate the address itself.
File
Holds references to one or more documents that reside in CentraSite's supporting document library or at a specified URL.
You can use this type of attribute to attach documents such as programming guides, sample code, and other types of files to an asset.
International String
Holds a String attribute that can have different values for different locales.
IP Address
Holds a numeric IP address in the v4 or v6 format.
Multiline String
Holds a string of text. When this type of string is displayed in a CentraSite user interface, the string is displayed in a multi-line text box and lines of text are wrapped to fit the width of the box. (Compare this with the String data type described in this table.)
The Internationalized option allows you to store the text in internationalized string format.
Number
Holds a numeric value. When you define an attribute of this type, you can specify the number of decimal positions that are to be shown when the attribute is displayed in a user interface. If you do not want to restrict the number of decimal positions that the user interface displays, choose the Maximum Precision option to display all positions.
You can optionally assign a label such as Seconds, tps, KB, EUR or $ to attributes of this type and specify whether this label is to appear as a prefix or a suffix when the attribute's value is displayed in a user interface.
Note:  
The underlying data type for this kind of attribute is a Java double.
Relationship
Holds references to other registry objects. You use this type of attribute to express a relationship between an asset and another object in the registry.
String
Holds a string of text. When this type of string is displayed in a CentraSite user interface, it is displayed in a single-line text box. If a value exceeds the width of the box, the excess characters are simply not displayed.
The Internationalized option allows you to create a String attribute that holds different values for different locales. In CentraSite Control, for example, if a user logs on to CentraSite in an English locale and he or she assigns a value to an Internationalized String attribute, that value will be visible to other users with English locales. If a user in a German locale were to view the attribute, the attribute would appear empty because it has no value for the German locale. If the German-locale user were to subsequently assign a value to the attribute, the attribute would then have two String values: one in English and one in German.
When CentraSite Control displays an Internationalized String, it displays the value associated with the user's current locale. In the example described above, it would show the English value to users with English locales and the German value to users in German locales. Users in other locales would see an empty attribute until a value for their locale had been assigned to the attribute.
The Enumeration option allows you to specify a list of allowed values for the attribute.
URL/URI
Holds a URL/URI. This type of attribute only accepts values in the form:
protocol://host/ path
Where:
*protocol is any protocol that java.net.URL supports
*host is the name or IP address of a host machine
*path (optional) is the path to the requested resource on the specified host
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback