Uploaded image for project: 'Axiom'
  1. Axiom
  2. AXIOM-302

Add a simple extension mechanism to OMOutputFormat

    XMLWordPrintableJSON

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.

      Attachments

        Activity

          People

            scheu@us.ibm.com Rich Scheuerle
            veithen Andreas Veithen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: