public RepositoryLocation(String repositoryName,String[] pathComponents) throws MalformedRepositoryLocationException {
  if (repositoryName == null || repositoryName.isEmpty()) {
    throw new MalformedRepositoryLocationException("repositoryName must not contain null or empty!");
  }
  if (pathComponents == null) {
    throw new MalformedRepositoryLocationException("pathComponents must not be null!");
  }
  for (  String pathComp : pathComponents) {
    if (pathComp == null || pathComp.isEmpty()) {
      throw new MalformedRepositoryLocationException("path must not contain null or empty strings!");
    }
  }
  this.repositoryName=repositoryName;
  this.path=pathComponents;
}

public RepositoryLocation ( String repositoryName , String [ ] pathComponents ) throws MalformedRepositoryLocationException { if ( repositoryName == null || repositoryName . isEmpty ( ) ) { throw new MalformedRepositoryLocationException ( "repositoryName must not contain null or empty!" ) ; } if ( pathComponents == null ) { throw new MalformedRepositoryLocationException ( "pathComponents must not be null!" ) ; } for ( String pathComp : pathComponents ) { if ( pathComp == null || pathComp . isEmpty ( ) ) { throw new MalformedRepositoryLocationException ( "path must not contain null or empty strings!" ) ; } } this . repositoryName = repositoryName ; this . path = pathComponents ; }
creates a repositorylocation for a given repository and a set of path components which will be concatenated by a / .
