public final class CheckOptionsUtils extends Object
CheckOptions
instances.Modifier and Type | Method and Description |
---|---|
static CheckOptions |
allOptions() |
protected Object |
clone() |
static CheckOptions |
disabled(String... options) |
static CheckOptions |
disableIn(CheckOptions original,
String... newDisabledOptions) |
static CheckOptions |
noOptions() |
static CheckOptions |
parseOptions(org.dom4j.Document document)
Creates a
CheckOptions object by parsing through the
comments at the top level of the passed document and looking for lines of the form: |
static void |
writeOptions(org.dom4j.Document document,
CheckOptions options)
Writes the passed
CheckOptions object to a comment in the
passed document. |
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public static CheckOptions allOptions()
public static CheckOptions noOptions()
public static CheckOptions disabled(String... options)
public static CheckOptions disableIn(CheckOptions original, String... newDisabledOptions)
public static CheckOptions parseOptions(org.dom4j.Document document)
CheckOptions
object by parsing through the
comments at the top level of the passed document and looking for lines of the form:
suppresscheck: check
or
suppresschecks: check, check2
There a special check called "all". When specified all the checks will be suppressed.
document
- the document to scan.public static void writeOptions(org.dom4j.Document document, CheckOptions options)
CheckOptions
object to a comment in the
passed document.document
- the document to write to.options
- the options to write to the passed document.Copyright © 2002-2022 Atlassian. All Rights Reserved.