public void addAttributeValidationModeUsage(ModeUsage modeUsage){
  int ap=modeUsage.getAttributeProcessing();
  if (ap != Mode.ATTRIBUTE_PROCESSING_NONE) {
    attributeValidationModeUsages.addElement(modeUsage);
    attributeProcessing=Math.max(ap,attributeProcessing);
    if (modeUsage.isContextDependent())     contextDependent=true;
  }
}

public void addAttributeValidationModeUsage ( ModeUsage modeUsage ) { int ap = modeUsage . getAttributeProcessing ( ) ; if ( ap != Mode . ATTRIBUTE_PROCESSING_NONE ) { attributeValidationModeUsages . addElement ( modeUsage ) ; attributeProcessing = Math . max ( ap , attributeProcessing ) ; if ( modeUsage . isContextDependent ( ) ) contextDependent = true ; } }
adds a mode usage to the attributevalidationmodeusages list if we process attributes .
