Uses of Class
com.ultikits.ultitools.config.document.ConfigDocument
Packages that use ConfigDocument
Package
Description
The config storage layer: a config file as a document over SnakeYAML's node tree, the plain-data
boundary every value crosses before it reaches a file, the configuration write gate
(
OperatorFileWriter) every write to an operator-editable configuration file goes through, and the
atomic writer that publishes what the gate verified.-
Uses of ConfigDocument in com.ultikits.ultitools
Methods in com.ultikits.ultitools with parameters of type ConfigDocumentModifier and TypeMethodDescriptionprivate static voidUltiTools.addIfAbsent(ConfigDocument document, org.bukkit.configuration.file.YamlConfiguration server, Map<List<String>, Object> missing, Map<List<String>, List<String>> comments, String dottedPath, Object value, List<String> commentLines) RecordsdottedPath(framework keys, no key contains a dot) as missing when neither the document nor the server's Bukkit reading of the same bytes holds it (a flat dotted key is present only in the latter).Method parameters in com.ultikits.ultitools with type arguments of type ConfigDocumentModifier and TypeMethodDescriptionprivate static StringUltiTools.keyBukkitWouldReadDifferently(File configFile, String fingerprint, org.bukkit.configuration.file.YamlConfiguration before, Consumer<ConfigDocument> insert) Rendersinserton a fresh copy of the file and reads the result the way the server does: the first key whose value Bukkit would read differently thanbeforedoes, ornullwhen every existing key reads the same. -
Uses of ConfigDocument in com.ultikits.ultitools.abstracts
Fields in com.ultikits.ultitools.abstracts declared as ConfigDocumentModifier and TypeFieldDescriptionprivate ConfigDocumentAbstractConfigEntity.documentprivate final ConfigDocumentAbstractConfigEntity.PanelCheckpoint.oldDocumentprivate final ConfigDocumentAbstractConfigEntity.PendingInitialization.readMethods in com.ultikits.ultitools.abstracts with parameters of type ConfigDocumentModifier and TypeMethodDescriptionprivate voidAbstractConfigEntity.acknowledgeRaw(ConfigDocument source, List<Field> fields) private voidAbstractConfigEntity.acknowledgeWritten(String readFingerprint, String fingerprint, ConfigDocument onDisk, List<AbstractConfigEntity.ModuleChange> applied) Advances the effective baseline and the last-read entry of exactly the changes the file now holds.private booleanAbstractConfigEntity.addEntryComment(ConfigDocument target, Field field) Writes the framework's comment abovefield's key intarget: for a token comment, only the run of comment linesAbstractConfigEntity.frameworkCommentRun(com.ultikits.ultitools.config.document.ConfigDocument, java.lang.reflect.Field)identifies as the framework's is replaced, and a comment that is the operator's is left as it is; a literal comment is written only for a key just inserted, which has no comment yet.private static voidAbstractConfigEntity.apply(ConfigDocument target, List<AbstractConfigEntity.ModuleChange> changes) Sets the module's value, or removes the map entry the module removed, at each change's path.private intAbstractConfigEntity.frameworkCommentRun(ConfigDocument target, Field field) How many of the last comment lines abovefield's key intargetthe framework wrote (#604, maintainer decision 2026-10-04: "only the framework's own comments are rewritten").private booleanAbstractConfigEntity.heldTwice(ConfigDocument doc, Field field) Whetherdocholdsfield's setting in more than one form (#612).AbstractConfigEntity.insertKeysIn(ConfigDocument doc, Field field) Where an insert putsfield's setting, whichdocdoes not hold (#614, maintainer decision 2026-10-06): below the longest prefix of its path the file holds as a section (heldSections(java.lang.String)), the rest of the path as nested keys - so a section the operator wrote in flat dotted form (a.b:) gets the setting in place, never a second, nested copy of the section.AbstractConfigEntity.keysIn(ConfigDocument doc, Field field) Wheredocholdsfield's setting: its one reading (readings(String)) - the nested keys, a flat dotted key such asfeatures.chat, or a mix such asa.b: {c: 1}- or, when it holds none, where an insert puts it (AbstractConfigEntity.insertKeysIn(com.ultikits.ultitools.config.document.ConfigDocument, java.lang.reflect.Field); the nested keys when that cannot be decided, for a caller that only asks whether the setting is held).private voidAbstractConfigEntity.ownFrameworkComments(OwnedPaths.Builder owned, ConfigDocument read) The token comments ofreadthe framework may rewrite, each owning only the run of linesAbstractConfigEntity.frameworkCommentRun(com.ultikits.ultitools.config.document.ConfigDocument, java.lang.reflect.Field)identified as the framework's in the file as read (#604): the config write gate then refuses any write that changes a comment line above that run or of a comment that is the operator's.private AbstractConfigEntity.PlacementAbstractConfigEntity.placement(ConfigDocument doc, Field field) private voidAbstractConfigEntity.refuseSeveralSpellings(ConfigDocument read, Field field) An operator write of a setting whose typed map keysreadholds in several spellings is refused.private booleanAbstractConfigEntity.reportedSeveralSpellings(ConfigDocument read, Field field, List<List<String>> leaves) The save rule for a setting whose typed map keysreadholds in several spellings: none of its changedleavesis written, and one warning names them with the reason, never a value.private static OwnedPathsAbstractConfigEntity.saveOwnership(List<AbstractConfigEntity.ModuleChange> changes, ConfigDocument read) What a save owns at the config write gate: each change's whole key, except that a map which is empty in the file as read ({}), or which the changes empty, is owned as a whole - its key line must change with its first or last entry, and an empty map holds nothing of the operator's that could be lost.AbstractConfigEntity.sectionHoldingASibling(ConfigDocument doc, Field field, List<List<String>> sections) Of several forms of one section, the one form holding another declared setting of it;nullfor none or several.AbstractConfigEntity.severalSpellings(ConfigDocument read, Field field) Every typed map key thatreadholds forfieldin several spellings, relative to the setting and ending in its first spelling in file order (#673, case 52).private booleanAbstractConfigEntity.tokenCommentsDiffer(ConfigDocument target) Whether a framework token comment intargetdiffers from what the current language renders, without changingtarget: the framework's own run (AbstractConfigEntity.frameworkCommentRun(com.ultikits.ultitools.config.document.ConfigDocument, java.lang.reflect.Field)) compared, in its written byte form, with the current rendering; a comment that is the operator's never differs.private StringAbstractConfigEntity.unplacedReason(ConfigDocument doc, Field field) Whyfield's setting cannot be inserted (AbstractConfigEntity.insertKeysIn(com.ultikits.ultitools.config.document.ConfigDocument, java.lang.reflect.Field)returnednull): names, never values.private booleanAbstractConfigEntity.updateTokenComments(ConfigDocument target) private OperatorFileWriter.ResultAbstractConfigEntity.writeInitialization(Map<Field, Object> inserted, String expected, ConfigDocument read) Writes an initialization - the declared keysinitfound missing, each with its comment, and the framework's token comments - through the config write gate (OperatorFileWriter), at once or from the batch flush.Constructors in com.ultikits.ultitools.abstracts with parameters of type ConfigDocumentModifierConstructorDescriptionprivatePendingInitialization(ConfigDocument read, Map<Field, Object> baseline, Map<Field, Object> inserted, String expected) privateRawEntry(ConfigDocument source, List<String> path) -
Uses of ConfigDocument in com.ultikits.ultitools.config.document
Fields in com.ultikits.ultitools.config.document declared as ConfigDocumentModifier and TypeFieldDescriptionprivate ConfigDocumentOperatorFileWriter.Snapshot.candidateprivate final ConfigDocumentOperatorFileWriter.Staged.candidateprivate final ConfigDocumentConfigLoadResult.documentprivate final ConfigDocumentOperatorFileWriter.Result.documentprivate final ConfigDocumentOperatorFileWriter.Side.documentprivate ConfigDocumentOperatorFileWriter.Snapshot.originalMethods in com.ultikits.ultitools.config.document that return ConfigDocumentModifier and TypeMethodDescriptionConfigLoadResult.document()The parsed document.OperatorFileWriter.Result.document()The edited document, which is what the file now holds, forOperatorFileWriter.Outcome.WRITTENandOperatorFileWriter.Outcome.UNCHANGED;nullotherwise.static ConfigDocumentConfigDocument.empty()Returns an empty document, as for a file that does not exist yet, in the default style.static ConfigDocumentParses a config file's text.private static ConfigDocumentOperatorFileWriter.parseOrNull(String text) Methods in com.ultikits.ultitools.config.document with parameters of type ConfigDocumentModifier and TypeMethodDescriptionprivate static intOperatorFileWriter.commentLineCount(ConfigDocument document, List<String> path) How many lines directly above the key atpathare its own comment indocument: the comment linesblockComment(List)reports, without the blank lines above them (those are kept by every comment write).(package private) static ConfigLoadResultConfigLoadResult.loaded(Path file, ConfigDocument document, String fingerprint) OperatorFileWriter.EmptySections.nearestHeldAncestor(ConfigDocument original, List<String> path) (package private) static OperatorFileWriter.ChangesOperatorFileWriter.Changes.of(ConfigDocument original, ConfigDocument candidate, OwnedPaths owned) (package private) static OperatorFileWriter.EmptySectionsOperatorFileWriter.EmptySections.of(String text, ConfigDocument original, ConfigDocument candidate, OperatorFileWriter.Changes changes) OperatorFileWriter.topmostAbsentPrefix(ConfigDocument original, List<String> path) private static StringOperatorFileWriter.verify(String text, String rendered, ConfigDocument original, ConfigDocument candidate, OperatorFileWriter.Changes changes, OwnedPaths owned, List<List<String>> expanded) private static StringOperatorFileWriter.verifyValues(ConfigDocument original, ConfigDocument candidate, String rendered, List<List<String>> changedValues, List<List<String>> expanded, boolean wholeFile) Check 1: the rendered text holds exactly the edited values, and the edit stayed inside its paths.private static OperatorFileWriter.ResultOperatorFileWriter.written(String rendered, ConfigDocument candidate, String read) Method parameters in com.ultikits.ultitools.config.document with type arguments of type ConfigDocumentModifier and TypeMethodDescriptionstatic OperatorFileWriter.StagedOperatorFileWriter.stage(Path file, OwnedPaths owned, String expectedFingerprint, Consumer<ConfigDocument> edit) AsOperatorFileWriter.write(Path, OwnedPaths, String, Consumer), but stops once the verified content is staged (written and forced to a temporary file beside the target), so several files can be prepared before any of them is replaced.(package private) static OperatorFileWriter.StagedOperatorFileWriter.stage(Path file, OwnedPaths owned, String expectedFingerprint, Consumer<ConfigDocument> edit, AtomicConfigWriter.FileOperations files) OperatorFileWriter.wouldChange(OperatorFileWriter.Snapshot snapshot, OwnedPaths owned, Consumer<ConfigDocument> edit) For a write that cannot start because the file changed: what it would have changed in the file as it is now, to name in the warning; empty when that cannot be told.static OperatorFileWriter.ResultOperatorFileWriter.write(Path file, OwnedPaths owned, String expectedFingerprint, Consumer<ConfigDocument> edit) Applieseditto the file as it is now and publishes the result only when every byte outsideownedstays as it is (see the class description for why this cannot overwrite operator content).(package private) static OperatorFileWriter.ResultOperatorFileWriter.write(Path file, OwnedPaths owned, String expectedFingerprint, Consumer<ConfigDocument> edit, AtomicConfigWriter.FileOperations files) AsOperatorFileWriter.write(Path, OwnedPaths, String, Consumer), with the publication steps as a test seam (null: real).Constructors in com.ultikits.ultitools.config.document with parameters of type ConfigDocumentModifierConstructorDescriptionprivateConfigLoadResult(Path file, ConfigLoadResult.State state, ConfigDocument document, String fingerprint, IOException cause, String parserMessage) privateResult(OperatorFileWriter.Outcome outcome, String reason, ConfigDocument document) privateResult(OperatorFileWriter.Outcome outcome, String reason, ConfigDocument document, String fingerprint, String readFingerprint) (package private)Side(ConfigDocument document, org.yaml.snakeyaml.nodes.Node tree, List<String> lines) privateStaged(Path file, Path absolute, OwnedPaths owned, List<String> keys, String rendered, ConfigDocument candidate, String read, String readText, AtomicConfigWriter.StagedWrite temporary) -
Uses of ConfigDocument in com.ultikits.ultitools.utils
Methods in com.ultikits.ultitools.utils with parameters of type ConfigDocumentModifier and TypeMethodDescription(package private) static List<RemoteConfigEntries.Entry> RemoteConfigEntries.describe(AbstractConfigEntity entity, ConfigDocument document) Builds the editable entries of one file as it is on disk.