public abstract class StringCodec extends Codec
Codec.CodecExceptionUNNAMEDPREFIX| Constructor and Description |
|---|
StringCodec(java.lang.String name)
Construct a StringCodec object with the given name
|
| Modifier and Type | Method and Description |
|---|---|
abstract AbsContentElement |
decode(Ontology ontology,
java.lang.String content)
Decodes the content to an abstract description using a
given ontology.
|
abstract AbsContentElement |
decode(java.lang.String content)
Decodes the content to an abstract description.
|
abstract java.lang.String |
encode(AbsContentElement content)
Encodes a content into a string.
|
abstract java.lang.String |
encode(Ontology ontology,
AbsContentElement content)
Encodes a content into a string using a given ontology.
|
getInnerOntology, getNamepublic StringCodec(java.lang.String name)
public abstract java.lang.String encode(AbsContentElement content) throws Codec.CodecException
content - the content as an abstract descriptor.CodecExceptionCodec.CodecExceptionpublic abstract java.lang.String encode(Ontology ontology, AbsContentElement content) throws Codec.CodecException
ontology - the ontologycontent - the content as an abstract descriptor.CodecExceptionCodec.CodecExceptionpublic abstract AbsContentElement decode(java.lang.String content) throws Codec.CodecException
content - the content as a string.CodecExceptionCodec.CodecExceptionpublic abstract AbsContentElement decode(Ontology ontology, java.lang.String content) throws Codec.CodecException
ontology - the ontology.content - the content as a string.CodecExceptionCodec.CodecException