Class ErrorParserNamedWrapper

    • Constructor Detail

      • ErrorParserNamedWrapper

        public ErrorParserNamedWrapper​(java.lang.String id,
                                       java.lang.String name,
                                       IErrorParser errorParser)
        Constructor.
        Parameters:
        id - - assigned ID
        name - - assigned name.
        errorParser - - error parser to assign name and ID.
    • Method Detail

      • processLine

        public boolean processLine​(java.lang.String line,
                                   ErrorParserManager epm)
        Description copied from interface: IErrorParser
        Finds error or warnings on the given line
        Specified by:
        processLine in interface IErrorParser
        Parameters:
        line - - line to process
        epm - - ErrorParserManager
        Returns:
        true if the parser found a problem reported in output. More accurately, true will consume the line (prevent other parsers from seeing it) and false won't (the line will be handed to the next parser).
      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface IErrorParserNamed
        Returns:
        id of error parser
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface IErrorParserNamed
        Returns:
        name of error parser
      • getErrorParser

        public IErrorParser getErrorParser()
        Returns:
        original error parser which is being wrapped
      • setId

        public void setId​(java.lang.String id)
        Description copied from interface: IErrorParserNamed
        Set error parser ID.
        Specified by:
        setId in interface IErrorParserNamed
        Parameters:
        id - of error parser
      • setName

        public void setName​(java.lang.String name)
        Description copied from interface: IErrorParserNamed
        Set error parser name.
        Specified by:
        setName in interface IErrorParserNamed
        Parameters:
        name - of error parser
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException