Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
The proposal is to add two new methods to OMOutputFormat:
Object getProperty(String key)
Object setProperty(String key, Object value)
This would provide a simple extension mechanism. This would be useful for the following use case: when serializing a tree containing OMSourcedElement nodes, the serialization of these nodes is actually handled by the backing OMDataSource objects. These objects receive a reference to the OMOutputFormat and custom implementations could use the proposed extension mechanism to allow better control of the serialization.
Note that since OMOutputFormat is a concrete class, adding the get/setProperty methods would not impact existing code.