Interface GenericStoExSerialiser
-
- All Known Subinterfaces:
PlainStoExSerialiser
- All Known Implementing Classes:
GenericStoExSerialiserImpl
,PlainStoExSerialiserImpl
public interface GenericStoExSerialiser
Service interface for StoEx serialisers. The serialiser transforms anExpression
to 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 String
serialise(AbstractNamedReference reference)
Serialises anAbstractNamedReference
to a human readable text.String
serialise(Expression expression)
Serialises anExpression
to a human readable text.
-
-
-
Method Detail
-
serialise
String serialise(Expression expression) throws NotSerializableException
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
String serialise(AbstractNamedReference reference) throws NotSerializableException
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.
-
-