org.marc4j.marc.impl
Class VariableFieldImpl

java.lang.Object
  extended by org.marc4j.marc.impl.VariableFieldImpl
All Implemented Interfaces:
Serializable, Comparable, VariableField
Direct Known Subclasses:
ControlFieldImpl, DataFieldImpl

public abstract class VariableFieldImpl
extends Object
implements VariableField

Represents a variable field in a MARC record.

Version:
$Revision: 1.4 $
Author:
Bas Peters
See Also:
Serialized Form

Constructor Summary
VariableFieldImpl()
          Creates a new VariableField.
VariableFieldImpl(String tag)
          Creates a new VariableField and sets the tag name.
 
Method Summary
 int compareTo(Object obj)
           
 String getTag()
          Returns the tag name.
 void setTag(String tag)
          Sets the tag name.
 String toString()
          Returns a string representation of this variable field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.marc4j.marc.VariableField
find, getId, setId
 

Constructor Detail

VariableFieldImpl

public VariableFieldImpl()
Creates a new VariableField.


VariableFieldImpl

public VariableFieldImpl(String tag)
Creates a new VariableField and sets the tag name.

Method Detail

setTag

public void setTag(String tag)
Description copied from interface: VariableField
Sets the tag name.

Specified by:
setTag in interface VariableField
Parameters:
tag - the tag name

getTag

public String getTag()
Description copied from interface: VariableField
Returns the tag name.

Specified by:
getTag in interface VariableField
Returns:
String - the tag name

compareTo

public int compareTo(Object obj)
Specified by:
compareTo in interface Comparable

toString

public String toString()
Returns a string representation of this variable field.

Overrides:
toString in class Object
Returns:
String - a string representation of this variable field


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