|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--notio.translators.SimpleInfoUnit | +--notio.translators.MarkerTable
A TranslationInfoUnit that serves as a symbol table relating foreign markers to native markers.
Constructor Summary | |
MarkerTable()
Constructs a new MarkerTable. |
|
MarkerTable(MarkerTable originalTable)
Constructs a new MarkerTable that is a copy of the specified original. |
Method Summary | |
void |
clearForeignMarkerIDToNativeMarkerMapping()
Clears all existing mappings between foreign marker ID's and native markers. |
TranslationInfoUnit |
copyUnit()
Returns a duplicate of this information unit that is distinct from the original. |
java.lang.String |
getForeignMarkerIDByNativeMarker(Marker marker)
Returns the foreign marker ID associated with the specified native marker in this translation context. |
Marker |
getNativeMarkerByForeignMarkerID(java.lang.String foreignID)
Returns the native marker associated with the specified foreign marker ID in this translation context. |
void |
mapForeignMarkerIDToNativeMarker(java.lang.String foreignID,
Marker marker)
Creates a two-way mapping between a foreign marker ID and a native marker instance. |
void |
resetUnit()
Resets this information unit to its initial state. |
Methods inherited from class notio.translators.SimpleInfoUnit |
getUnitName, setUnitName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MarkerTable()
public MarkerTable(MarkerTable originalTable)
originalContext
- the translation context to be copied.Method Detail |
public void mapForeignMarkerIDToNativeMarker(java.lang.String foreignID, Marker marker)
foreignID
- the foreign marker ID being mapped.marker
- the native marker being mapped.public Marker getNativeMarkerByForeignMarkerID(java.lang.String foreignID)
foreignID
- the foreign marker ID used for lookup.public java.lang.String getForeignMarkerIDByNativeMarker(Marker marker)
marker
- the native marker used for lookup.public void clearForeignMarkerIDToNativeMarkerMapping()
public void resetUnit()
public TranslationInfoUnit copyUnit()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |