public ArtifactID(final String uri){
  final String[] parts=decodeURI(uri);
  if (parts == null) {
    throw new MalformedURIException(String.format("The URI was not able to be decoded: %s",uri));
  }
  tool=parts[0];
  artifactType=parts[1];
  toolSpecificId=parts[2];
}

public ArtifactID ( final String uri ) { final String [ ] parts = decodeURI ( uri ) ; if ( parts == null ) { throw new MalformedURIException ( String . format ( "The URI was not able to be decoded: %s" , uri ) ) ; } tool = parts [ 0 ] ; artifactType = parts [ 1 ] ; toolSpecificId = parts [ 2 ] ; }
create a new artifact id from a tfs uri . the uri must be well - formed .
