Hide some memebers as private, add getters
[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 import java.lang.String;
5
6 /**
7  * Represents a CQL prefix mapping from short name to long identifier.
8  *
9  * @version     $Id: CQLPrefix.java,v 1.5 2007-06-27 22:39:55 mike Exp $
10  */
11 public class CQLPrefix {
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     String name;
18
19     public String getName() {
20         return name;
21     }
22
23     /**
24      * The full identifier name of the prefix mapping.  That is,
25      * typically, a URI permanently allocated to a specific index
26      * set, such as <TT>http://zthes.z3950.org/cql/1.0<TT>.
27      */
28     String identifier;
29
30     public String getIdentifier() {
31         return identifier;
32     }
33
34     /**
35      * Creates a new CQLPrefix mapping, which maps the specified name
36      * to the specified identifier.
37      */
38     CQLPrefix(String name, String identifier) {
39         this.name = name;
40         this.identifier = identifier;
41     }
42 }