public MetaDataInfo hasSpecial(String role){
  if (attributeMetaData == null) {
    return MetaDataInfo.UNKNOWN;
  }
  if (role.equals(Attributes.CONFIDENCE_NAME)) {
    for (    AttributeMetaData amd : attributeMetaData.values()) {
      String currentRole=amd.getRole();
      if (currentRole != null && currentRole.startsWith(role)) {
        return MetaDataInfo.YES;
      }
    }
  }
 else {
    for (    AttributeMetaData amd : attributeMetaData.values()) {
      if (role.equals(amd.getRole())) {
        return MetaDataInfo.YES;
      }
    }
  }
switch (attributesRelation) {
case SUBSET:
    return MetaDataInfo.UNKNOWN;
case SUPERSET:
case EQUAL:
  return MetaDataInfo.NO;
default :
return MetaDataInfo.UNKNOWN;
}
}

public MetaDataInfo hasSpecial ( String role ) { if ( attributeMetaData == null ) { return MetaDataInfo . UNKNOWN ; } if ( role . equals ( Attributes . CONFIDENCE_NAME ) ) { for ( AttributeMetaData amd : attributeMetaData . values ( ) ) { String currentRole = amd . getRole ( ) ; if ( currentRole != null && currentRole . startsWith ( role ) ) { return MetaDataInfo . YES ; } } } else { for ( AttributeMetaData amd : attributeMetaData . values ( ) ) { if ( role . equals ( amd . getRole ( ) ) ) { return MetaDataInfo . YES ; } } } switch ( attributesRelation ) { case SUBSET : return MetaDataInfo . UNKNOWN ; case SUPERSET : case EQUAL : return MetaDataInfo . NO ; default : return MetaDataInfo . UNKNOWN ; } }
this returns if an attribute with the given role exists in the example set . if the role is confidence , then it checks not whether exactly the same role occurs , but if any role starts with the confidence stem .
