EnforcerRule, EnforcerRule2public class RequireFilesSize extends AbstractRequireFiles
| Constructor | Description |
|---|---|
RequireFilesSize() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
execute(EnforcerRuleHelper helper) |
This is the interface into the rule.
|
long |
getMaxsize() |
|
long |
getMinsize() |
|
boolean |
isCacheable() |
This tells the system if the results are cacheable at all.
|
boolean |
isResultValid(EnforcerRule cachedRule) |
If the rule is cacheable and the same id is found in the cache, the stored results are passed to this method to
allow double checking of the results.
|
void |
setMaxsize(long maxsize) |
|
void |
setMinsize(long minsize) |
getCacheId, getFiles, isAllowNulls, setAllowNulls, setFilesgetLevel, getMessage, setLevel, setMessagepublic void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
execute in interface EnforcerRuleexecute in class AbstractRequireFileshelper - The helper provides access to the log, MavenSession and has
helpers to get common components. It is also able to lookup components
by class name.EnforcerRuleException - the enforcer rule exceptionpublic boolean isCacheable()
isCacheable in interface EnforcerRuleisCacheable in class AbstractRequireFilestrue if rule is cacheablepublic boolean isResultValid(EnforcerRule cachedRule)
isResultValid in interface EnforcerRuleisResultValid in class AbstractRequireFilescachedRule - the cached ruletrue if the stored results are valid for the same id.public long getMaxsize()
public void setMaxsize(long maxsize)
public long getMinsize()
public void setMinsize(long minsize)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.