public abstract class StringCodec extends Codec
Codec.CodecException
UNNAMEDPREFIX
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, getName
public StringCodec(java.lang.String name)
public abstract java.lang.String encode(AbsContentElement content) throws Codec.CodecException
content
- the content as an abstract descriptor.CodecException
Codec.CodecException
public abstract java.lang.String encode(Ontology ontology, AbsContentElement content) throws Codec.CodecException
ontology
- the ontologycontent
- the content as an abstract descriptor.CodecException
Codec.CodecException
public abstract AbsContentElement decode(java.lang.String content) throws Codec.CodecException
content
- the content as a string.CodecException
Codec.CodecException
public abstract AbsContentElement decode(Ontology ontology, java.lang.String content) throws Codec.CodecException
ontology
- the ontology.content
- the content as a string.CodecException
Codec.CodecException