1 //$Id: VariableField.java,v 1.10 2006/08/04 12:28:17 bpeters Exp $
\r
3 * Copyright (C) 2004 Bas Peters
\r
5 * This file is part of MARC4J
\r
7 * MARC4J is free software; you can redistribute it and/or
\r
8 * modify it under the terms of the GNU Lesser General Public
\r
9 * License as published by the Free Software Foundation; either
\r
10 * version 2.1 of the License, or (at your option) any later version.
\r
12 * MARC4J is distributed in the hope that it will be useful,
\r
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
\r
15 * Lesser General Public License for more details.
\r
17 * You should have received a copy of the GNU Lesser General Public
\r
18 * License along with MARC4J; if not, write to the Free Software
\r
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
\r
21 package org.marc4j.marc;
\r
23 import java.io.Serializable;
\r
26 * Represents a variable field in a MARC record.
\r
28 * @author Bas Peters
\r
29 * @version $Revision: 1.10 $
\r
31 @SuppressWarnings("rawtypes")
\r
32 public interface VariableField extends Serializable, Comparable {
\r
35 * Sets the identifier.
\r
38 * The purpose of this identifier is to provide an identifier for
\r
44 public void setId(Long id);
\r
47 * Returns the identifier.
\r
49 * @return Long - the identifier
\r
51 public Long getId();
\r
54 * Returns the tag name.
\r
56 * @return String - the tag name
\r
58 public String getTag();
\r
61 * Sets the tag name.
\r
66 public void setTag(String tag);
\r
69 * Returns true if the given regular expression matches a subsequence of a
\r
70 * data element within the variable field.
\r
73 * See {@link java.util.regex.Pattern} for more information about Java
\r
74 * regular expressions.
\r
78 * the regular expression
\r
79 * @return true if the pattern matches, false othewise
\r
81 public abstract boolean find(String pattern);
\r