jade.content.lang.sl
Class SimpleSLCodec

java.lang.Object
  extended by jade.content.lang.Codec
      extended by jade.content.lang.StringCodec
          extended by 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

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
SimpleSLCodec()
           
 
Method Summary
 AbsContentElement decode(Ontology ontology, java.lang.String content)
          Decodes the content to an abstract description using a given ontology.
 AbsContentElement decode(java.lang.String content)
          Decodes the content to an abstract description.
 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()
           
 
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
 

Constructor Detail

SimpleSLCodec

public SimpleSLCodec()
Method Detail

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 ontology
content - 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