1 // $Id: CQLPrefix.java,v 1.5 2007-06-27 22:39:55 mike Exp $
3 package org.z3950.zing.cql;
4 import java.lang.String;
7 * Represents a CQL prefix mapping from short name to long identifier.
9 * @version $Id: CQLPrefix.java,v 1.5 2007-06-27 22:39:55 mike Exp $
11 public class CQLPrefix {
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>.
19 public String getName() {
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>.
30 public String getIdentifier() {
35 * Creates a new CQLPrefix mapping, which maps the specified name
36 * to the specified identifier.
38 CQLPrefix(String name, String identifier) {
40 this.identifier = identifier;