Class PrettyPrinter


  • public class PrettyPrinter
    extends Object
    Allows to serialize a Model that contains an Aspect model to RDF/Turtle while following the formatting rules for Aspect models.
    • Constructor Detail

      • PrettyPrinter

        public PrettyPrinter​(io.openmanufacturing.sds.aspectmodel.resolver.services.VersionedModel versionedModel,
                             io.openmanufacturing.sds.aspectmodel.urn.AspectModelUrn rootElementUrn,
                             PrintWriter writer)
        Constructor.
        Parameters:
        versionedModel - The model to write
        rootElementUrn - The URN of the root model element
        writer - The writer to write to.
    • Method Detail

      • print

        public void print()
        Print to the PrintWriter given in the constructor. This method does not close the PrintWriter.