Package 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:
Serializable,Serializable
public class SimpleSLCodec extends StringCodec
MIDP implementation of the SLCodec. Actually the MIDP version of the SLCodec just extends SimpleSLCodec- Version:
- $Date$ $Revision$
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jade.content.lang.Codec
Codec.CodecException
-
-
Field Summary
-
Fields inherited from class jade.content.lang.Codec
UNNAMEDPREFIX
-
-
Constructor Summary
Constructors Constructor Description SimpleSLCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbsContentElementdecode(Ontology ontology, String content)Decodes a content expression to an abstract description using a given ontology.AbsContentElementdecode(String content)Decodes the content to an abstract description.AbsObjectdecodeObject(Ontology ontology, String content)Stringencode(AbsContentElement content)Encodes a content into a string.Stringencode(Ontology ontology, AbsContentElement content)Encodes a content into a string using a given ontology.OntologygetInnerOntology()
-
-
-
Method Detail
-
encode
public String encode(Ontology ontology, AbsContentElement content) throws Codec.CodecException
Encodes a content into a string using a given ontology.- Specified by:
encodein classStringCodec- Parameters:
ontology- the ontologycontent- the content as an abstract descriptor.- Returns:
- the content as a string.
- Throws:
Codec.CodecException
-
decode
public AbsContentElement decode(Ontology ontology, String content) throws Codec.CodecException
Decodes a content expression to an abstract description using a given ontology.- Specified by:
decodein classStringCodec- Parameters:
ontology- the ontology.content- the content as a string.- Returns:
- the content as an abstract description.
- Throws:
Codec.CodecException
-
decodeObject
public AbsObject decodeObject(Ontology ontology, String content) throws Codec.CodecException
- Throws:
Codec.CodecException
-
decode
public AbsContentElement decode(String content) throws Codec.CodecException
Description copied from class:StringCodecDecodes the content to an abstract description.- Specified by:
decodein classStringCodec- Parameters:
content- the content as a string.- Returns:
- the content as an abstract description.
- Throws:
Codec.CodecException
-
encode
public String encode(AbsContentElement content) throws Codec.CodecException
Description copied from class:StringCodecEncodes a content into a string.- Specified by:
encodein classStringCodec- Parameters:
content- the content as an abstract descriptor.- Returns:
- the content as a string.
- Throws:
Codec.CodecException
-
getInnerOntology
public Ontology getInnerOntology()
- Overrides:
getInnerOntologyin classCodec- Returns:
- the ontology containing the schemas of the operator defined in this language
-
-