org.nanoko.coffee.mill.processors
Class CSSLintProcessor

java.lang.Object
  extended by org.nanoko.coffee.mill.processors.DefaultProcessor
      extended by org.nanoko.coffee.mill.processors.CSSLintProcessor
All Implemented Interfaces:
Processor

public class CSSLintProcessor
extends DefaultProcessor

Processor validating CSS files using jslint.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.nanoko.coffee.mill.processors.Processor
Processor.ProcessorException, Processor.ProcessorWarning
 
Field Summary
 
Fields inherited from class org.nanoko.coffee.mill.processors.DefaultProcessor
mojo, options
 
Constructor Summary
CSSLintProcessor()
           
 
Method Summary
 boolean accept(File file)
          Accepts CSS files from
 void configure(AbstractCoffeeMillMojo mojo, Map<String,Object> options)
           
 void fileCreated(File file)
           
 void fileUpdated(File file)
           
protected  InputStream getScriptAsStream()
           
 void processAll()
           
 void tearDown()
           
 List<Processor.ProcessorWarning> validate(File file)
           
 
Methods inherited from class org.nanoko.coffee.mill.processors.DefaultProcessor
computeRelativeFile, copyFileToDir, fileDeleted, getLog, isFileContainedInDirectory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSSLintProcessor

public CSSLintProcessor()
Method Detail

validate

public List<Processor.ProcessorWarning> validate(File file)
                                          throws Processor.ProcessorException
Throws:
Processor.ProcessorException

getScriptAsStream

protected InputStream getScriptAsStream()

tearDown

public void tearDown()
Specified by:
tearDown in interface Processor
Overrides:
tearDown in class DefaultProcessor

configure

public void configure(AbstractCoffeeMillMojo mojo,
                      Map<String,Object> options)
Specified by:
configure in interface Processor
Overrides:
configure in class DefaultProcessor

accept

public boolean accept(File file)
Accepts CSS files from

Specified by:
accept in interface Processor
Overrides:
accept in class DefaultProcessor
Parameters:
file -
Returns:

processAll

public void processAll()
                throws Processor.ProcessorException
Specified by:
processAll in interface Processor
Overrides:
processAll in class DefaultProcessor
Throws:
Processor.ProcessorException

fileCreated

public void fileCreated(File file)
                 throws Processor.ProcessorException
Specified by:
fileCreated in interface Processor
Overrides:
fileCreated in class DefaultProcessor
Throws:
Processor.ProcessorException

fileUpdated

public void fileUpdated(File file)
                 throws Processor.ProcessorException
Specified by:
fileUpdated in interface Processor
Overrides:
fileUpdated in class DefaultProcessor
Throws:
Processor.ProcessorException


Copyright © 2012-2013 OW2. All Rights Reserved.