public class RootTranslator extends Object implements ReferenceFactory, Externalizable
| Modifier and Type | Field and Description |
|---|---|
String |
prefix |
String |
translatedPrefix |
| Constructor and Description |
|---|
RootTranslator()
Serialization only!
|
RootTranslator(String prefix,
String translatedPrefix)
Creates a translator which will create references of the
type described by translatedPrefix whenever references of
the type prefix are being derived.
|
| Modifier and Type | Method and Description |
|---|---|
Reference |
derive(String URI) |
Reference |
derive(String URI,
String context) |
boolean |
derives(String URI) |
void |
readExternal(DataInputStream in,
PrototypeFactory pf) |
String |
toString() |
void |
writeExternal(DataOutputStream out) |
public Reference derive(String URI) throws InvalidReferenceException
derive in interface ReferenceFactoryInvalidReferenceExceptionpublic Reference derive(String URI, String context) throws InvalidReferenceException
derive in interface ReferenceFactoryInvalidReferenceExceptionpublic boolean derives(String URI)
derives in interface ReferenceFactorypublic void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException
readExternal in interface ExternalizableIOExceptionDeserializationExceptionpublic void writeExternal(DataOutputStream out) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2022. All rights reserved.