jade.content.lang.sl
Class SimpleSLCodec
java.lang.Object
jade.content.lang.Codec
jade.content.lang.StringCodec
jade.content.lang.sl.SimpleSLCodec
- All Implemented Interfaces:
- java.io.Serializable
public class SimpleSLCodec
- extends StringCodec
MIDP implementation of the SLCodec. Actually the MIDP version of the SLCodec just extends SimpleSLCodec
- Version:
- $Date: 2011-10-27 12:21:30 +0200 (gio, 27 ott 2011) $ $Revision: 6522 $
- See Also:
- Serialized Form
| Methods inherited from class jade.content.lang.Codec |
getName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleSLCodec
public SimpleSLCodec()
encode
public java.lang.String encode(Ontology ontology,
AbsContentElement content)
throws Codec.CodecException
- Encodes a content into a string using a given ontology.
- Specified by:
encode in class StringCodec
- Parameters:
ontology - the ontologycontent - the content as an abstract descriptor.
- Returns:
- the content as a string.
- Throws:
CodecException
Codec.CodecException
decode
public AbsContentElement decode(Ontology ontology,
java.lang.String content)
throws Codec.CodecException
- Decodes the content to an abstract description using a
given ontology.
- Specified by:
decode in class StringCodec
- Parameters:
ontology - the ontology.content - the content as a string.
- Returns:
- the content as an abstract description.
- Throws:
CodecException
Codec.CodecException
decode
public AbsContentElement decode(java.lang.String content)
throws Codec.CodecException
- Description copied from class:
StringCodec
- Decodes the content to an abstract description.
- Specified by:
decode in class StringCodec
- Parameters:
content - the content as a string.
- Returns:
- the content as an abstract description.
- Throws:
Codec.CodecException
encode
public java.lang.String encode(AbsContentElement content)
throws Codec.CodecException
- Description copied from class:
StringCodec
- Encodes a content into a string.
- Specified by:
encode in class StringCodec
- Parameters:
content - the content as an abstract descriptor.
- Returns:
- the content as a string.
- Throws:
Codec.CodecException
getInnerOntology
public Ontology getInnerOntology()
- Overrides:
getInnerOntology in class Codec
- Returns:
- the ontology containing the schemas of the operator
defined in this language