Interface GenericStoExSerialiser
-
- All Known Subinterfaces:
PlainStoExSerialiser
- All Known Implementing Classes:
GenericStoExSerialiserImpl,PlainStoExSerialiserImpl
public interface GenericStoExSerialiserService interface for StoEx serialisers. The serialiser transforms anExpressionto human readable conrete syntax. You can acquire an instance of the parser via OSGi declarative services or use the#createInstance()method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringserialise(AbstractNamedReference reference)Serialises anAbstractNamedReferenceto a human readable text.Stringserialise(Expression expression)Serialises anExpressionto a human readable text.
-
-
-
Method Detail
-
serialise
String serialise(Expression expression) throws NotSerializableException
Serialises anExpressionto a human readable text.- Parameters:
expression- The expression to serialise.- Returns:
- The concrete syntax representation of the given expression.
- Throws:
NotSerializableException- In case of an error during serialisation. This is usually caused by an invalid expression.
-
serialise
String serialise(AbstractNamedReference reference) throws NotSerializableException
Serialises anAbstractNamedReferenceto a human readable text.- Parameters:
reference- The reference to serialise.- Returns:
- The concrete syntax representation of the given reference.
- Throws:
NotSerializableException- In case of an error during serialisation. This is usually caused by an invalid reference.
-
-