company logo

Property :: setGenericAttributeType - Change generic attribute type property

The function allows changing the generic type for a generic attribute. The current setting for the attribute are provided by the genericAttributeType() property.

Implementation overview

Implementation details

  1. Set type name for generic attribute
    Property  :: setGenericAttributeType ( odaba::String &sGenericType )

    The function sets the type for the property handle, which has to refer to a generic attribute. The attribute type ( e.g. language) is passed as string (sGenericType) which has to be a valid enumerator name in the generic type enumeration.

    When the property handle is not valid or when the property is not a generic attribute, the function throws an exception.

    • sGenericType - Generic type name

      The type for a generic attribute is a valid value from the basic enumeration of the generic attribute. The generic type name is a valid enumerator name. An empty string indicates an undefined generic type.

  2. to list
  3. Set type code for generic attribute
    Property  :: setGenericAttributeType ( int32 iGenericType )

    The function sets the type for the property handle, which has to refer to a generic attribute. The attribute type ( e.g. language) is passed as number (iGenericType) which has to be a valid enumerator code in the generic type enumeration.

    When the property handle is not valid or when the property is not a generic attribute, the function throws an exception.

    • iGenericType - Type of generic attribute

      The type for a generic attribute is a valid value from the basic enumeration of the generic attribute. 0 indicates an undefined generic type.

  4. to list