Project: stp

com.ibm.rational.wvcm.stp.cc
Interface CcAttribute


public interface CcAttribute

The ClearCase attribute mechanism lets you associate arbitrary name/value pairs with particular ClearCase versions or elements.

This interface provides an aggregate object for handling these name/value pairs.


Method Summary
 int getIntegerValue()
          If the attribute's value type is INTEGER, retrieve it as such.
 String getName()
          Get the attribute's name.
 byte[] getOpaqueValue()
          If the attribute's value type is OPAQUE, retrieve it as such.
 double getRealValue()
          If the attribute's value type is REAL, retrieve it as such.
 String getStringValue()
          If the attribute's value type is STRING, retrieve it as such.
 Date getTimeValue()
          If the attribute's value type is TIME, retrieve it as such.
 String getValue()
          Get the attribute's value.
 CcAttributeType.ValueType getValueType()
          Get the type of the attribute's value data.
 

Method Detail

getIntegerValue

int getIntegerValue()
                    throws Exception
If the attribute's value type is INTEGER, retrieve it as such.

Throws:
Exception - if value type is not INTEGER.

getName

String getName()
               throws WvcmException
Get the attribute's name.

Throws:
WvcmException

getOpaqueValue

byte[] getOpaqueValue()
                      throws Exception
If the attribute's value type is OPAQUE, retrieve it as such.

Throws:
Exception - if value type is not OPAQUE.

getRealValue

double getRealValue()
                    throws Exception
If the attribute's value type is REAL, retrieve it as such.

Throws:
Exception - if value type is not REAL.

getStringValue

String getStringValue()
                      throws Exception
If the attribute's value type is STRING, retrieve it as such.

Throws:
Exception - if value type is not STRING.

getTimeValue

Date getTimeValue()
                  throws Exception
If the attribute's value type is TIME, retrieve it as such.

Throws:
Exception - if value type is not TIME.

getValue

String getValue()
Get the attribute's value. This call is valid for all value types where a string representation of the data is desired.


getValueType

CcAttributeType.ValueType getValueType()
Get the type of the attribute's value data.


Generated Sun 26-Oct-2008 10:17 AM

Copyright © IBM 2008. All rights reserved.