private void validateCollectionAttribute(CollectionAttribute collection,Set<String> allCollections){
  if (collection == null || allCollections == null) {
    return;
  }
  for (  RestMethod restMethod : collection.getMethods()) {
    if (allCollections.contains(restMethod.getRestFullMethodName())) {
      aspect.warning(SimpleLocation.TOPLEVEL,"The rpc methods and the associated http paths are not following the guidelines. As a " + "result the derived rest collection '%s' contains a sub collection and a " + "method with the same name as '%s'. This can cause a failure to generate client "+ "library, since these names are used for generating artifacts in generated code.",collection.getFullName(),restMethod.getRestMethodName());
    }
  }
}

private void validateCollectionAttribute ( CollectionAttribute collection , Set < String > allCollections ) { if ( collection == null || allCollections == null ) { return ; } for ( RestMethod restMethod : collection . getMethods ( ) ) { if ( allCollections . contains ( restMethod . getRestFullMethodName ( ) ) ) { aspect . warning ( SimpleLocation . TOPLEVEL , "The rpc methods and the associated http paths are not following the guidelines. As a " + "result the derived rest collection '%s' contains a sub collection and a " + "method with the same name as '%s'. This can cause a failure to generate client " + "library, since these names are used for generating artifacts in generated code." , collection . getFullName ( ) , restMethod . getRestMethodName ( ) ) ; } } }
validates if the collection does not contain same named elements ( methods and resources ) .
