org.marc4j.marc
Interface VariableField

All Superinterfaces:
Comparable, Serializable
All Known Subinterfaces:
ControlField, DataField
All Known Implementing Classes:
ControlFieldImpl, DataFieldImpl, VariableFieldImpl

public interface VariableField
extends Serializable, Comparable

Represents a variable field in a MARC record.

Version:
$Revision: 1.10 $
Author:
Bas Peters

Method Summary
 boolean find(String pattern)
          Returns true if the given regular expression matches a subsequence of a data element within the variable field.
 Long getId()
          Returns the identifier.
 String getTag()
          Returns the tag name.
 void setId(Long id)
          Sets the identifier.
 void setTag(String tag)
          Sets the tag name.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

setId

void setId(Long id)
Sets the identifier.

The purpose of this identifier is to provide an identifier for persistency.

Parameters:
id - the identifier

getId

Long getId()
Returns the identifier.

Returns:
Long - the identifier

getTag

String getTag()
Returns the tag name.

Returns:
String - the tag name

setTag

void setTag(String tag)
Sets the tag name.

Parameters:
tag - the tag name

find

boolean find(String pattern)
Returns true if the given regular expression matches a subsequence of a data element within the variable field.

See Pattern for more information about Java regular expressions.

Parameters:
pattern - the regular expression
Returns:
true if the pattern matches, false othewise


Copyright © 2002-2006 Bas Peters. All Rights Reserved.