Interface GenericStoExSerialiser
- All Known Subinterfaces:
PlainStoExSerialiser
- All Known Implementing Classes:
GenericStoExSerialiserImpl
,PlainStoExSerialiserImpl
public interface GenericStoExSerialiser
Service interface for StoEx serialisers.
The serialiser transforms an
Expression
to human readable conrete syntax. You can acquire
an instance of the parser via OSGi declarative services or use the #createInstance()
method.-
Method Summary
Modifier and TypeMethodDescriptionserialise
(AbstractNamedReference reference) Serialises anAbstractNamedReference
to a human readable text.serialise
(Expression expression) Serialises anExpression
to a human readable text.
-
Method Details
-
serialise
Serialises anExpression
to 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
Serialises anAbstractNamedReference
to 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.
-