public static void validateAttributes(AttrSet attrSet,Class cls,Guid guid) throws UMSException, DataConstraintException {
  if (attrSet == null) {
    return;
  }
  String[] attrNames=attrSet.getAttributeNames();
  for (int i=0; i < attrNames.length; i++) {
    Attr attr=attrSet.getAttribute(attrNames[i]);
    validateAttribute(attr,cls,guid);
  }
}

public static void validateAttributes ( AttrSet attrSet , Class cls , Guid guid ) throws UMSException , DataConstraintException { if ( attrSet == null ) { return ; } String [ ] attrNames = attrSet . getAttributeNames ( ) ; for ( int i = 0 ; i < attrNames . length ; i ++ ) { Attr attr = attrSet . getAttribute ( attrNames [ i ] ) ; validateAttribute ( attr , cls , guid ) ; } }
determines whether each attribute in the attribute set is valid . iterates though the set checking each element to see if there is a validation method that needs to execute .
