notio.translators
Class SimpleInfoUnit

java.lang.Object
  |
  +--notio.translators.SimpleInfoUnit
All Implemented Interfaces:
java.io.Serializable, TranslationInfoUnit
Direct Known Subclasses:
DefiningLabelTable, MarkerTable

public abstract class SimpleInfoUnit
extends java.lang.Object
implements TranslationInfoUnit

An abstract base-class for implementors the TranslationInfoUnit interface. This class simply provides support for the name-related methods.

See Also:
TranslationInfoUnit, Serialized Form

Constructor Summary
SimpleInfoUnit()
           
 
Method Summary
 java.lang.String getUnitName()
          Returns the name of this translation unit.
 void setUnitName(java.lang.String newName)
          Sets the name of this translation unit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface notio.TranslationInfoUnit
copyUnit, resetUnit
 

Constructor Detail

SimpleInfoUnit

public SimpleInfoUnit()
Method Detail

setUnitName

public void setUnitName(java.lang.String newName)
Sets the name of this translation unit. Parsers and generators can use a name to retrieve the units they need from a TranslationContext.
Specified by:
setUnitName in interface TranslationInfoUnit
Parameters:
newName - the new name for this unit.

getUnitName

public java.lang.String getUnitName()
Returns the name of this translation unit. Parsers and generators can use a name to retrieve the units they need from a TranslationContext.
Specified by:
getUnitName in interface TranslationInfoUnit
Returns:
the name for this unit.


Copyright 1998-2001 Finnegan Southey