Package htmlcompiler.compilers.checks
Enum Class ElementChecks
- All Implemented Interfaces:
Serializable
,Comparable<ElementChecks>
,Constable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
alignAttributeContainsAbsmiddle
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
buttonHasHref
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
dontUseBlink
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
dontUseBold
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
dontUseEm
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
dontUseItalic
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
dontUseMarquee
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
dontUseStrong
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
dontUseStyling
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
hasBorderAttribute
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
hasDeprecatedAttribute
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
hasDeprecatedTag
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
hasEventHandlerAttribute
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
hasStyleAttribute
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
hasUppercaseTagsOrAttributes
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
inputWithoutMaxLength
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
isValidAttribute
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
isValidTag
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
labelWithForAttribute
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
marginWidthInBody
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
missingAltForImages
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
missingInputType
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
missingPatternForInputs
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
missingPlaceholderForInputs
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
scriptWithHardcodedNonce
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
styleWithHardcodedNonce
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static void
unknownInputType
(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) static ElementChecks
Returns the enum constant of this class with the specified name.static ElementChecks[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
buttonHasHref
public static void buttonHasHref(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
hasStyleAttribute
public static void hasStyleAttribute(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
hasUppercaseTagsOrAttributes
public static void hasUppercaseTagsOrAttributes(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
missingAltForImages
public static void missingAltForImages(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
missingPlaceholderForInputs
public static void missingPlaceholderForInputs(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
missingPatternForInputs
public static void missingPatternForInputs(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
missingInputType
public static void missingInputType(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
unknownInputType
public static void unknownInputType(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
dontUseMarquee
public static void dontUseMarquee(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
dontUseBlink
public static void dontUseBlink(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
dontUseBold
public static void dontUseBold(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
dontUseItalic
public static void dontUseItalic(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
dontUseStrong
public static void dontUseStrong(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
dontUseEm
public static void dontUseEm(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
dontUseStyling
public static void dontUseStyling(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
marginWidthInBody
public static void marginWidthInBody(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
alignAttributeContainsAbsmiddle
public static void alignAttributeContainsAbsmiddle(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
hasBorderAttribute
public static void hasBorderAttribute(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
hasDeprecatedTag
public static void hasDeprecatedTag(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
hasDeprecatedAttribute
public static void hasDeprecatedAttribute(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
scriptWithHardcodedNonce
public static void scriptWithHardcodedNonce(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
styleWithHardcodedNonce
public static void styleWithHardcodedNonce(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
labelWithForAttribute
public static void labelWithForAttribute(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
inputWithoutMaxLength
public static void inputWithoutMaxLength(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
hasEventHandlerAttribute
public static void hasEventHandlerAttribute(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
isValidTag
public static void isValidTag(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element) -
isValidAttribute
public static void isValidAttribute(Logger log, CompilerConfig config, Path file, org.jsoup.nodes.Element element)
-