public void addCOSAttribute(String attrName,int qualifier) throws UMSException {
  StringBuilder attrStr=new StringBuilder();
  if (qualifier < ICOSDefinition.minQualifier || qualifier > ICOSDefinition.maxQualifier) {
    String msg=i18n.getString(IUMSConstants.BAD_COS_ATTR_QUALIFIER);
    throw new UMSException(msg);
  }
  attrStr.append(attrName);
  attrStr.append(" ");
  attrStr.append(ICOSDefinition.qualifiers[qualifier]);
  modify(ICOSDefinition.COSATTRIBUTE,attrStr.toString(),ModificationType.ADD);
}

public void addCOSAttribute ( String attrName , int qualifier ) throws UMSException { StringBuilder attrStr = new StringBuilder ( ) ; if ( qualifier < ICOSDefinition . minQualifier || qualifier > ICOSDefinition . maxQualifier ) { String msg = i18n . getString ( IUMSConstants . BAD_COS_ATTR_QUALIFIER ) ; throw new UMSException ( msg ) ; } attrStr . append ( attrName ) ; attrStr . append ( " " ) ; attrStr . append ( ICOSDefinition . qualifiers [ qualifier ] ) ; modify ( ICOSDefinition . COSATTRIBUTE , attrStr . toString ( ) , ModificationType . ADD ) ; }
adds the cos attribute to the definition . the cos attribute is the name of the attribute for which you want to generate a value .
