public boolean isAttrNameValid(){
  return attrName == null || !attrNamePatterns.isEmpty();
}

public boolean isAttrNameValid ( ) { return attrName == null || ! attrNamePatterns . isEmpty ( ) ; }
checks if is attr name valid .
