|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.ml.openmath.codec.CDCodec
public abstract class CDCodec
A codec that translates (XML-encoded) OpenMath objects as defined in the Content Dictionary it implements to their backengine equivalent and vice-versa.
Note that this kind of Codec always needs a master codec as parent to terminate properly.
| Field Summary | |
|---|---|
protected Codec |
mParent
Stores the parent Codec. |
| Constructor Summary | |
|---|---|
CDCodec()
Constructor. |
|
CDCodec(Codec parent)
Constructor (parameterized). |
|
| Method Summary | |
|---|---|
java.lang.String |
decode(java.lang.String syntax)
Decodes the backengine syntax to a XML-encoded OM-object. |
OMObject |
decodeOMObject(java.lang.String syntax)
Decodes the backengine-syntax to an OM-object. |
java.lang.String |
encode(java.lang.String string)
Encodes the XML-encoded OM-object. |
java.lang.String |
encodeOMObject(OMObject object)
Encodes the OM-object to backengine-syntax. |
Codec |
getParent()
Gets the parent-object. |
void |
setParent(Codec parent)
Sets the parent-object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Codec mParent
| Constructor Detail |
|---|
public CDCodec()
public CDCodec(Codec parent)
parent - the parent codec.| Method Detail |
|---|
public void setParent(Codec parent)
parent - set the parent codec.public Codec getParent()
public java.lang.String encode(java.lang.String string)
throws CodecEncodeException
string - encodes the XML-encoded OpenMath object.
CodecEncodeException - when a problem arises during encoding.
public java.lang.String encodeOMObject(OMObject object)
throws CodecEncodeException
object - encodes the OpenMath object.
CodecEncodeException - when a problem arises during encoding.
public java.lang.String decode(java.lang.String syntax)
throws CodecDecodeException
syntax - decodes the syntax to an OpenMath object.
CodecDecodeException - when a problem arises during decoding.
public OMObject decodeOMObject(java.lang.String syntax)
throws CodecDecodeException
syntax - decodes the syntax to an OpenMath object.
CodecDecodeException - when a problem arises during decoding.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||