The ICCAttributeType interface represents the Rational® ClearCase® attribute type object.
Every attribute is an instance of a kind of attribute type. The meaning associated with a particular attribute type is user-defined.
Gets the scope of this attribute type (for example, local to this VOB)
Sets the scope of this attribute type (for example, local to this VOB)
Specifies whether or not the lower value is in the range of legal values
Gets the number of enumerated values for this attribute type
Specifies whether or not the upper value is in the range of legal values
Applies an instance of this attribute type to a VOB object
Method
Sub Apply(pVOBObject As CCVOBObject, [Value As Variant ], [ Comment As String = "" ], [ Replace As Boolean = False ], [ Recurse As Boolean = False ])
HRESULT Apply( ICCVOBObject* pVOBOBject, const _variant_t& Value, _bstr_t Comment, VARIANT_BOOL Replace, VARIANT_BOOL Recurse);
Member of: ICCAttributeType interface
Gets the constraint for this attribute type
Read-only property
Property Constraint As CCTypeConstraint
CCTypeConstraint GetConstraint();
A CCTypeConstraint value.
Locks this attribute type
Method
Sub CreateLock([ Comment As String = "" ], [ Obsolete As Boolean = False ],[ ExemptUsersStringArray As Variant ])
HRESULT CreateLock( _bstr_t Comment, VARIANT_BOOL Obsolete const _variant_t& ExemptUsersStringArray = vtMissing);
Gets the default value for this attribute type
Read-only property
Property DefaultValue As Variant
_variant_t GetDefaultValue();
Matches the attribute type ValueType. If there is no DefaultValue, returns an error.
Gets the enumerated values for this attribute type
Read-only property
Property EnumValuesArray As Variant
_variant_t GetEnumValuesArray();
A array of Variants, where each element's type matches the attribute type's ValueType. If there is no enumerated value, returns an error.
Gets the group to which this attribute type belongs
Read-only property
Property Group As String
_bstr_t GetGroup();
Gets the lock on this attribute type
Read-only property
Property Lock As CCLock
ICCLockPtr GetLock();
Specifies whether or not the lower value is in the range of legal values
Read-only property
Property LowerIsInRange As Boolean
VARIANT_BOOL GetLowerIsInRange();
Gets the lower value for this attribute type
Read-only property
Property LowerValue As Variant
_variant_t GetLowerValue();
Matches the attribute type's ValueType. If there is no LowerValue, returns an error.
Gets the master replica for this attribute type
Read-only property
Property Master As String
_bstr_t GetMaster();
It is most likely that you want to operate on the local copy of the attribute type.
Gets the name of this attribute type
Read-only property
Property Name As String
_bstr_t GetName();
Gets the number of enumerated values for this attribute type
Read-only property
Property NumberOfEnumValues As Long
long GetNumberOfEnumValues();
Gets the owner of this attribute type
Read-only property
Property Owner As String
_bstr_t GetOwner();
Removes this attribute type from the VOB
Method
Sub RemoveType([ RemoveAllInstances As Boolean = False ],[ Comment As String = "" ])
HRESULT RemoveType( VARIANT_BOOL RemoveAllInstances, _bstr_t Comment);
Member of: ICCAttributeType interface
Gets the scope of this attribute type (for example, local to this VOB)
Read-only property
Property Scope As CCTypeScope
CCTypeScope GetScope();
A CCTypeScope value.
Sets the constraint for this attribute type
Method
Sub SetConstraint(NewConstraint As CCTypeConstraint, [ Comment As String = "" ])
HRESULT SetConstraint( CCTypeConstraint NewConstraint, _bstr_t Comment);
Sets the default value for this attribute type
Method
Sub SetDefaultValue([ DefaultValue As Variant ], [ Comment As String = "" ])
HRESULT SetDefaultValue( const _variant_t& DefaultValue, _bstr_t Comment);
Sets the enumerated values for this attribute type
Method
Sub SetEnumValuesArray([ EnumValuesArray As Variant ], [ Comment As String = "" ])
HRESULT SetEnumValuesArray( const _variant_t& EnumValuesArray, _bstr_t Comment);
Sets the group to which this attribute type belongs
Method
Sub SetGroup(NewGroup As String, [ Comment As String = "" ])
HRESULT SetGroup( _bstr_t NewGroup, _bstr_t Comment);
Sets the lower value for this attribute type
Method
Sub SetLowerValue([LowerValue As Variant ], [ LowerIsInRange As Boolean = False ], [ Comment As String = "" ])
HRESULT SetLowerValue( const _variant_t& LowerValue, VARIANT_BOOL LowerIsInRange, _bstr_t Comment);
Removes any enumerated values for the attribute type.
Sets the master replica for this attribute type
Method
Sub SetMaster(Replica As String, [ Comment As String = "" ])
HRESULT SetMaster( _bstr_t Replica, _bstr_t Comment);
It is most likely that you want to operate on the local copy of the attribute type.
Sets the name of this attribute type
Method
Sub SetName(NewName As String, [ Comment As String = "" ])
HRESULT SetName( _bstr_t NewName, _bstr_t Comment);
Sets the owner of this attribute type
Method
Sub SetOwner(NewOwner As String, [ Comment As String = "" ])
HRESULT SetOwner( _bstr_t NewOwner, _bstr_t Comment);
Sets the scope of this attribute type (for example, local to this VOB)
Method
Sub SetScope(Global As Boolean, [ Acquire As Boolean = False ], [ Comment As String = "" ])
HRESULT SetScope( VARIANT_BOOL Global, VARIANT_BOOL Acquire, _bstr_t Comment);
Sets the upper value for this attribute type
Method
Sub SetUpperValue([ UpperValue As Variant ], [ UpperIsInRange As Boolean = False ], [ Comment As String = "" ])
HRESULT SetUpperValue( const _variant_t& UpperValue, VARIANT_BOOL UpperIsInRange, _bstr_t Comment);
Removes any enumerated values for the attribute type.
Sets the value type for this attribute
Method
Sub SetValueType(ValueType As Long, [ Comment As String = "" ])
HRESULT SetValueType( long ValueType, _bstr_t Comment);
Removes any default value, enumerated values, and lower or upper values.
Member of: ICCAttributeType interface
Specifies whether or not the upper value is in the range of legal values
Read-only property
Property UpperIsInRange As Boolean
VARIANT_BOOL GetUpperIsInRange();
Gets the upper value for this attribute type
Read-only property
Property UpperValue As Variant
_variant_t GetUpperValue();
Matches the attribute type ValueType. If there is no UpperValue, returns an error.
Gets the value type for this attribute
Read-only property
Property ValueType As Long
long GetValueType();
One of the value type constants.
Gets the VOB that contains this attribute type
Read-only property
Property VOB As CCVOB