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
Constructor Summary |
LEAPCodec()
Construct a LEAPCodec object i.e. a Codec for the LEAP language |
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 |
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
LEAPCodec
public LEAPCodec()
- Construct a LEAPCodec object i.e. a Codec for the LEAP language
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 ontologycontent
- 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 -