Change obsolete collections, remove redundant imports
[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      * The short name of the prefix mapping.  That is, the prefix
13      * itself, such as <TT>dc</TT>, as it might be used in an index
14      * like <TT>dc.title</TT>.
15      */
16     String name;
17
18     public String getName() {
19         return name;
20     }
21
22     /**
23      * The full identifier name of the prefix mapping.  That is,
24      * typically, a URI permanently allocated to a specific index
25      * set, such as <TT>http://zthes.z3950.org/cql/1.0<TT>.
26      */
27     String identifier;
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 }