Class XMLOutputOperator

    • Field Detail

      • produceHeader

        protected boolean produceHeader
        Should we produce the XML header?
      • filename

        protected String filename
        Path to the output file/
    • Constructor Detail

      • XMLOutputOperator

        public XMLOutputOperator()
      • XMLOutputOperator

        public XMLOutputOperator​(String filename,
                                 boolean produceHeader)
    • Method Detail

      • getId

        public String getId()
        Description copied from interface: Service
        Obtains a unique ID of the service
      • getName

        public String getName()
        Description copied from interface: Service
        Obtains a descriptive name of the service that may be presented to the user.
        Returns:
        the operator name
      • getDescription

        public String getDescription()
        Description copied from interface: Service
        Obtains a longer description of the service.
        Returns:
        the description
      • getCategory

        public String getCategory()
        Description copied from interface: Service
        A category that allows to group similar services.
        Returns:
        Category name or null when no category is assigned.
      • getProduceHeader

        public boolean getProduceHeader()
      • setProduceHeader

        public void setProduceHeader​(boolean produceHeader)
      • getFilename

        public String getFilename()
      • setFilename

        public void setFilename​(String filename)
      • apply

        public void apply​(AreaTree atree)
        Description copied from interface: AreaTreeOperator
        Applies the operation to the given tree.
        Parameters:
        atree - the area tree to be modified.
      • apply

        public void apply​(AreaTree atree,
                          Area root)
        Description copied from interface: AreaTreeOperator
        Applies the operation to the given subtree of the tree.
        Parameters:
        atree - the area tree to be modified.
        root - the root node of the affected subtree.
      • dumpTo

        public void dumpTo​(AreaTree tree,
                           PrintWriter out)
        Formats the complete tag tree to an output stream
      • colorString

        public String colorString​(String spec)
        Converts the CSS specification rgb(r,g,b) to #rrggbb
        Parameters:
        spec - the CSS color specification
        Returns:
        a #rrggbb string