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