Author > UNICOM Intelligence Question Repository > UNICOM Intelligence Question Repository: Configuring the repository > UNICOM Intelligence Question Repository configuration file > UNICOM Intelligence Question Repository attributes
 
UNICOM Intelligence Question Repository attributes
The repository.dql file contains definitions for custom attributes. The custom attributes are presented in the Store Survey Asset into Repository Wizard. The attributes added to survey assets can help describe and categorize the assets and can be used later when searching for survey assets. For example, you might want to store the names of the countries in which the question should be used.
Syntax
You can create any type and any number of custom attributes in the repository.dql file, using the following example syntax:
Note Custom attribute names cannot contain spaces.
<attributes>
  <attribute required="false" name="Difficulty" ValueType="Alpha"
      DataType="Enumerated">
    <caption language="en-us">Difficulty of question</caption>
    <properties />
    <allowedvalues>
      <value name="easy">
        <caption language="en-us">Easy</caption>
      </value>
      <value name="moderate">
        <caption language="en-us">Moderate</caption>
      </value>
      <value name="difficult">
        <caption language="en-us">Hard</caption>
      </value>
    </allowedvalues>
  </attribute>
</attributes>
Parameters
required
Determines whether or not the attribute is required.
name
The attribute name.
ValueType
An enumeration of DataTypes that are supported by custom attributes. A DataType refers to the type of data a custom attribute holds. The default value is Alpha.
There are two enumeration values:
Alpha: Represents any collection of alpha-numeric characters.
Integer: Represents any integer value that may fall within the range of a long (32-bit) data type.
DataType
An enumeration of ValueTypes that are supported by custom attributes. A ValueType refers to a valid custom attribute value. The default value is Enumerated when there is any allowed values, otherwise the default value is Open.
There are two enumeration values:
Enumerated: An enumerated ValueType means that the value of the custom attribute must be one of an enumerated list.
Open: An open ValueType means that the value of the custom attribute can be any value within the minimum and maximum properties.
caption language
The text (and language of the text) that will appear in the user interface for the attribute.
allowedvalues
Contains the names and caption text of the items appearing in the user interface as selection choices.
minimum
The minimum length when ValueType is Alpha and the minimum value when ValueType is Integer. The default value is -2147483648.
maximum
The maximum length when ValueType is Alpha and the maximum value when ValueType is Integer. The default value is 2147483647.
See also
UNICOM Intelligence Question Repository configuration file