Package ch.njol.skript.config.validate
Class SectionValidator
java.lang.Object
ch.njol.skript.config.validate.SectionValidator
- All Implemented Interfaces:
NodeValidator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> SectionValidator
addNode
(String name, NodeValidator v, boolean optional) addSection
(String name, boolean optional) static void
notASectionError
(Node node) setAllowUndefinedEntries
(boolean b) setAllowUndefinedSections
(boolean b) boolean
-
Constructor Details
-
SectionValidator
public SectionValidator()
-
-
Method Details
-
addNode
-
addEntry
-
addEntry
-
addEntry
public <T> SectionValidator addEntry(String name, Parser<? extends T> parser, Setter<T> setter, boolean optional) -
addSection
-
validate
- Specified by:
validate
in interfaceNodeValidator
-
notASectionError
-
setAllowUndefinedSections
-
setAllowUndefinedEntries
-