af7c90658b598014532697c6cfcd273bb266d1d7
[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     public String name;
18
19     /**
20      * The full identifier name of the prefix mapping.  That is,
21      * typically, a URI permanently allocated to a specific index
22      * set, such as <TT>http://zthes.z3950.org/cql/1.0<TT>.
23      */
24     public String identifier;
25
26     /**
27      * Creates a new CQLPrefix mapping, which maps the specified name
28      * to the specified identifier.
29      */
30     CQLPrefix(String name, String identifier) {
31         this.name = name;
32         this.identifier = identifier;
33     }
34 }