@Test(expected=IllegalArgumentException.class) public void testNewInstance$opaqueEndpoint() throws Exception { URIDescriber.newInstance(application,URI.create("urn:opaque")); }
static URIDescriber newInstance(URI application, URI endpoint) { checkNotNull(application,"Application URI cannot be null"); checkNotNull(endpoint,"Endpoint URI cannot be null"); checkArgument(application.isAbsolute() && !endpoint.isOpaque(),"Application URI must be absolute hierarchical"); checkArgument(endpoint.isAbsolute() && !endpoint.isOpaque(),"Endpoint URI must be absolute hierarchical"); checkArgument(!application.relativize(endpoint).isAbsolute(),"Endpoint URI must be relative to the application one"); return new URIDescriber(application,endpoint); }
URIDescriber { static URIDescriber newInstance(URI application, URI endpoint) { checkNotNull(application,"Application URI cannot be null"); checkNotNull(endpoint,"Endpoint URI cannot be null"); checkArgument(application.isAbsolute() && !endpoint.isOpaque(),"Application URI must be absolute hierarchical"); checkArgument(endpoint.isAbsolute() && !endpoint.isOpaque(),"Endpoint URI must be absolute hierarchical"); checkArgument(!application.relativize(endpoint).isAbsolute(),"Endpoint URI must be relative to the application one"); return new URIDescriber(application,endpoint); } }
URIDescriber { static URIDescriber newInstance(URI application, URI endpoint) { checkNotNull(application,"Application URI cannot be null"); checkNotNull(endpoint,"Endpoint URI cannot be null"); checkArgument(application.isAbsolute() && !endpoint.isOpaque(),"Application URI must be absolute hierarchical"); checkArgument(endpoint.isAbsolute() && !endpoint.isOpaque(),"Endpoint URI must be absolute hierarchical"); checkArgument(!application.relativize(endpoint).isAbsolute(),"Endpoint URI must be relative to the application one"); return new URIDescriber(application,endpoint); } private  URIDescriber(URI application, URI endpoint); }
URIDescriber { static URIDescriber newInstance(URI application, URI endpoint) { checkNotNull(application,"Application URI cannot be null"); checkNotNull(endpoint,"Endpoint URI cannot be null"); checkArgument(application.isAbsolute() && !endpoint.isOpaque(),"Application URI must be absolute hierarchical"); checkArgument(endpoint.isAbsolute() && !endpoint.isOpaque(),"Endpoint URI must be absolute hierarchical"); checkArgument(!application.relativize(endpoint).isAbsolute(),"Endpoint URI must be relative to the application one"); return new URIDescriber(application,endpoint); } private  URIDescriber(URI application, URI endpoint); @Override String toString(); }
URIDescriber { static URIDescriber newInstance(URI application, URI endpoint) { checkNotNull(application,"Application URI cannot be null"); checkNotNull(endpoint,"Endpoint URI cannot be null"); checkArgument(application.isAbsolute() && !endpoint.isOpaque(),"Application URI must be absolute hierarchical"); checkArgument(endpoint.isAbsolute() && !endpoint.isOpaque(),"Endpoint URI must be absolute hierarchical"); checkArgument(!application.relativize(endpoint).isAbsolute(),"Endpoint URI must be relative to the application one"); return new URIDescriber(application,endpoint); } private  URIDescriber(URI application, URI endpoint); @Override String toString();  }