1
2
3
4
5
6
7
8
9
10
11 package org.astrogrid.applications.parameter.protocol;
12
13 import java.net.URI;
14
15 /*** Factory interface for creating {@link org.astrogrid.applications.parameter.protocol.ExternalValue} instances.
16 * @see org.astrogrid.applications.parameter.protocol.DefaultProtocolLibrary
17 * @author Noel Winstanley nw@jb.man.ac.uk 16-Jun-2004
18 *
19 */
20 public interface Protocol {
21 /*** access the name of the protocol this object provides support for
22 * @return name of the protocl this factory can build instances for.*/
23 public String getProtocolName();
24 /*** create a new indirectParameterValue for the passed in URI
25 * @param reference the uri to build an instance for.
26 * @return a handler for this uri.
27 * @throws InaccessibleExternalValueException*/
28 public ExternalValue createIndirectValue(URI reference) throws InaccessibleExternalValueException;
29 }
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49