public class SimpleSLCodec extends StringCodec
Codec.CodecException
UNNAMEDPREFIX
Constructor and Description |
---|
SimpleSLCodec() |
Modifier and Type | Method and Description |
---|---|
AbsContentElement |
decode(Ontology ontology,
java.lang.String content)
Decodes a content expression to an abstract description using a
given ontology.
|
AbsContentElement |
decode(java.lang.String content)
Decodes the content to an abstract description.
|
AbsObject |
decodeObject(Ontology ontology,
java.lang.String content) |
java.lang.String |
encode(AbsContentElement content)
Encodes a content into a string.
|
java.lang.String |
encode(Ontology ontology,
AbsContentElement content)
Encodes a content into a string using a given ontology.
|
Ontology |
getInnerOntology() |
public java.lang.String encode(Ontology ontology, AbsContentElement content) throws Codec.CodecException
encode
in class StringCodec
ontology
- the ontologycontent
- the content as an abstract descriptor.CodecException
Codec.CodecException
public AbsContentElement decode(Ontology ontology, java.lang.String content) throws Codec.CodecException
decode
in class StringCodec
ontology
- the ontology.content
- the content as a string.CodecException
Codec.CodecException
public AbsObject decodeObject(Ontology ontology, java.lang.String content) throws Codec.CodecException
Codec.CodecException
public AbsContentElement decode(java.lang.String content) throws Codec.CodecException
StringCodec
decode
in class StringCodec
content
- the content as a string.Codec.CodecException
public java.lang.String encode(AbsContentElement content) throws Codec.CodecException
StringCodec
encode
in class StringCodec
content
- the content as an abstract descriptor.Codec.CodecException
public Ontology getInnerOntology()
getInnerOntology
in class Codec