Class Process


  • public class Process
    extends java.lang.Object
    This class contains methods to get first process block element, next process block element and checks for next process block element.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ELEM_TYPE  
    • Constructor Summary

      Constructors 
      Constructor Description
      Process​(TemplateCore template, org.w3c.dom.Element element, java.lang.String id)
      Constructor to create a process.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getMacros()  
      boolean isReadyToProcess()  
      org.eclipse.core.runtime.IStatus process​(org.eclipse.core.runtime.IProgressMonitor monitor)
      Executes this process
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Process

        public Process​(TemplateCore template,
                       org.w3c.dom.Element element,
                       java.lang.String id)
        Constructor to create a process.
        Parameters:
        template -
        element -
        id -
    • Method Detail

      • isReadyToProcess

        public boolean isReadyToProcess()
        Returns:
        boolean, true if the Process is Ready.
      • process

        public org.eclipse.core.runtime.IStatus process​(org.eclipse.core.runtime.IProgressMonitor monitor)
                                                 throws ProcessFailureException
        Executes this process
        Parameters:
        monitor -
        Returns:
        the result of executing this process
        Throws:
        ProcessFailureException
      • getMacros

        public java.util.Set<java.lang.String> getMacros()
        Returns:
        the macros defined in the context of this process
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object