jade.content.lang.leap
Class LEAPCodec

java.lang.Object
  |
  +--jade.content.lang.Codec
        |
        +--jade.content.lang.ByteArrayCodec
              |
              +--jade.content.lang.leap.LEAPCodec

public class LEAPCodec
extends ByteArrayCodec

Author:
Federico Bergenti - Universita` di Parma
See Also:
Serialized Form

Inner classes inherited from class jade.content.lang.Codec
Codec.CodecException
 
Field Summary
static java.lang.String INSTANCEOF
           
static java.lang.String INSTANCEOF_ENTITY
           
static java.lang.String INSTANCEOF_TYPE
           
static java.lang.String IOTA
           
static java.lang.String NAME
           
 
Fields inherited from class jade.content.lang.Codec
UNNAMEDPREFIX
 
Constructor Summary
LEAPCodec()
          Construct a LEAPCodec object i.e. a Codec for the LEAP language
 
Method Summary
 AbsContentElement decode(byte[] content)
          Decodes the content to an abstract descriptor.
 AbsContentElement decode(Ontology ontology, byte[] content)
          Decodes the content to an abstract description.
 byte[] encode(AbsContentElement content)
          Encodes an abstract descriptor holding a content element into a byte array.
 byte[] encode(Ontology ontology, AbsContentElement content)
          Encodes a content into a byte array.
 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
 

Field Detail

NAME

public static final java.lang.String NAME

INSTANCEOF

public static final java.lang.String INSTANCEOF

INSTANCEOF_ENTITY

public static final java.lang.String INSTANCEOF_ENTITY

INSTANCEOF_TYPE

public static final java.lang.String INSTANCEOF_TYPE

IOTA

public static final java.lang.String IOTA
Constructor Detail

LEAPCodec

public LEAPCodec()
Construct a LEAPCodec object i.e. a Codec for the LEAP language
Method Detail

getInnerOntology

public Ontology getInnerOntology()
Overrides:
getInnerOntology in class Codec
Returns:
the ontology containing the schemas of the operator defined i this language

encode

public byte[] encode(AbsContentElement content)
              throws Codec.CodecException
Encodes an abstract descriptor holding a content element into a byte array.
Overrides:
encode in class ByteArrayCodec
Parameters:
content - the content as an abstract descriptor.
Returns:
the content as a byte array.
Throws:
CodecException -  

encode

public byte[] encode(Ontology ontology,
                     AbsContentElement content)
              throws Codec.CodecException
Encodes a content into a byte array.
Overrides:
encode in class ByteArrayCodec
Parameters:
ontology - the ontology
content - the content as an abstract descriptor.
Returns:
the content as a byte array.
Throws:
CodecException -  

decode

public AbsContentElement decode(byte[] content)
                         throws Codec.CodecException
Decodes the content to an abstract descriptor.
Overrides:
decode in class ByteArrayCodec
Parameters:
content - the content as a byte array.
Returns:
the content as an abstract description.
Throws:
CodecException -  

decode

public AbsContentElement decode(Ontology ontology,
                                byte[] content)
                         throws Codec.CodecException
Decodes the content to an abstract description.
Overrides:
decode in class ByteArrayCodec
Parameters:
ontology - the ontology.
content - the content as a byte array.
Returns:
the content as an abstract description.
Throws:
CodecException -