cb3043f65f7c567d1af66da660ecfc774fb34d99
[cql-java-moved-to-github.git] / src / main / java / org / z3950 / zing / cql / CQLPrefix.java
1 // $Id: CQLPrefix.java,v 1.5 2007-06-27 22:39:55 mike Exp $
2
3 package org.z3950.zing.cql;
4
5 /**
6  * Represents a CQL prefix mapping from short name to long identifier.
7  *
8  * @version     $Id: CQLPrefix.java,v 1.5 2007-06-27 22:39:55 mike Exp $
9  */
10 public class CQLPrefix {
11
12     String name;
13
14     /**
15      * The short name of the prefix mapping.  That is, the prefix
16      * itself, such as <TT>dc</TT>, as it might be used in an index
17      * like <TT>dc.title</TT>.
18      */
19     public String getName() {
20         return name;
21     }
22
23  
24     String identifier;
25
26     /**
27      * The full identifier name of the prefix mapping.  That is,
28      * typically, a URI permanently allocated to a specific index
29      * set, such as <TT>http://zthes.z3950.org/cql/1.0<TT>.
30      */
31     public String getIdentifier() {
32         return identifier;
33     }
34
35     /**
36      * Creates a new CQLPrefix mapping, which maps the specified name
37      * to the specified identifier.
38      */
39     CQLPrefix(String name, String identifier) {
40         this.name = name;
41         this.identifier = identifier;
42     }
43 }