A B C D E F G H I K L M N P R S T U V W Y
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- add(T) - Method in class ru.vyarus.yaml.updater.parse.common.model.TreeNode
-
Properly attached node into this node (removing node from previous root).
- addAdded(CmtNode) - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- addAll(Iterable<T>) - Method in class ru.vyarus.yaml.updater.parse.common.model.TreeNode
-
Attaches provided nodes to current.
- addRemoved(CmtNode) - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- apply(String) - Method in class ru.vyarus.yaml.updater.update.EnvSupport
-
Replace variables in the provided text.
B
- backup(boolean) - Method in class ru.vyarus.yaml.updater.UpdateConfig.Configurator
- backupCreated(File) - Method in interface ru.vyarus.yaml.updater.listen.UpdateListener
-
Called after backup file creation (only if required).
- backupCreated(File) - Method in class ru.vyarus.yaml.updater.listen.UpdateListenerAdapter
- backupDir(File) - Method in class ru.vyarus.yaml.updater.UpdateConfig.Configurator
-
By default, backup is created in the same directory with configuration.
C
- cleanPropertyName(String) - Static method in class ru.vyarus.yaml.updater.parse.common.YamlModelUtils
-
Property name may be quited in yaml file and contain escaped symbols.
- cleanPropertyPath(String, boolean) - Static method in class ru.vyarus.yaml.updater.parse.common.YamlModelUtils
-
Try to correctly split path elements and unescape quoted property names.
- CmtNode - Class in ru.vyarus.yaml.updater.parse.comments.model
-
One or multiple lines in yaml file.
- CmtNode(CmtNode, int, int) - Constructor for class ru.vyarus.yaml.updater.parse.comments.model.CmtNode
- CmtNodeFactory - Class in ru.vyarus.yaml.updater.parse.comments.model
-
Helper factory class for creating correct node objects.
- CmtTree - Class in ru.vyarus.yaml.updater.parse.comments.model
-
Yaml tree built by comments parser.
- CmtTree(List<CmtNode>, int) - Constructor for class ru.vyarus.yaml.updater.parse.comments.model.CmtTree
- CommentsParserValidator - Class in ru.vyarus.yaml.updater.update
-
Comments parse is a very simple yaml parser and to make sure it works correctly comparing parsed structure with snakeyaml parse result (parsed trees are unified to represent equal trees).
- CommentsReader - Class in ru.vyarus.yaml.updater.parse.comments
-
Custom yaml parser, preserving comments.
- CommentsWriter - Class in ru.vyarus.yaml.updater.parse.comments
-
Renders comments model.
- config - Variable in class ru.vyarus.yaml.updater.UpdateConfig.Configurator
- Configurator(File, InputStream) - Constructor for class ru.vyarus.yaml.updater.UpdateConfig.Configurator
-
Yaml updater configurator.
- configured(UpdateConfig) - Method in interface ru.vyarus.yaml.updater.listen.UpdateListener
-
Called just before start to provide access to configuration actually used by merger (catching configuration errors).
- configured(UpdateConfig) - Method in class ru.vyarus.yaml.updater.listen.UpdateListenerAdapter
- copyToTempFile(String) - Static method in class ru.vyarus.yaml.updater.util.FileUtils
-
Creates temporary file by copying content of the specified file.
- couldBeFlowMultiline(String) - Static method in class ru.vyarus.yaml.updater.parse.comments.util.MultilineValue
- CountingIterator<T> - Class in ru.vyarus.yaml.updater.parse.comments.util
-
Iterator, remembering processed items count.
- CountingIterator(Iterator<T>) - Constructor for class ru.vyarus.yaml.updater.parse.comments.util.CountingIterator
- create(File, File) - Static method in class ru.vyarus.yaml.updater.YamlUpdater
-
Shortcut for
YamlUpdater.create(File, InputStream). - create(File, InputStream) - Static method in class ru.vyarus.yaml.updater.YamlUpdater
-
Builds updater configurator.
- createListObject(CmtNode, int, int, CmtNode...) - Static method in class ru.vyarus.yaml.updater.parse.comments.model.CmtNodeFactory
-
Creates list item node for object.
- createListObject(StructNode, int, int, StructNode...) - Static method in class ru.vyarus.yaml.updater.parse.struct.model.StructNodeFactory
-
Creates list item node for object.
- createListValue(CmtNode, int, int, String...) - Static method in class ru.vyarus.yaml.updater.parse.comments.model.CmtNodeFactory
-
Creates scalar list value.
- createListValue(StructNode, int, int, String) - Static method in class ru.vyarus.yaml.updater.parse.struct.model.StructNodeFactory
-
Creates scalar list value.
- createProperty(CmtNode, int, int, String, String...) - Static method in class ru.vyarus.yaml.updater.parse.comments.model.CmtNodeFactory
-
Could be used to create any node type: with both key and value it would be property, without value - subtree root and without both key and value - stub for virtualized list item.
- createProperty(StructNode, int, int, String, String) - Static method in class ru.vyarus.yaml.updater.parse.struct.model.StructNodeFactory
-
Could be used to create any node type: with both key and value it would be property, without value - subtree root and without both key and value - stub for virtualized list item.
- createTest(String, String) - Static method in class ru.vyarus.yaml.updater.YamlUpdater
-
Special factory for testing file migrations (WITHOUT actual modifications).
- currentConfigParsed(CmtTree, StructTree) - Method in interface ru.vyarus.yaml.updater.listen.UpdateListener
-
Parsed current configuration with two parsers (preserving comments and snakeyaml).
- currentConfigParsed(CmtTree, StructTree) - Method in class ru.vyarus.yaml.updater.listen.UpdateListenerAdapter
D
- deleteProps(String...) - Method in class ru.vyarus.yaml.updater.UpdateConfig.Configurator
-
IMPORTANT: yaml property names could contain '.' and so '/' used as property separator.
- deleteProps(List<String>) - Method in class ru.vyarus.yaml.updater.UpdateConfig.Configurator
-
Properties paths to delete in current file.
- detect(String) - Static method in class ru.vyarus.yaml.updater.parse.comments.util.MultilineValue
-
Detect multi-line marker at the end of the line.
- dryRun(boolean) - Method in class ru.vyarus.yaml.updater.profile.TestConfigurator
- dryRun(boolean) - Method in class ru.vyarus.yaml.updater.UpdateConfig.Configurator
-
Test execution - performs complete update, but did not override existing file.
E
- ending - Variable in class ru.vyarus.yaml.updater.parse.comments.util.MultilineValue.Marker
- EnvSupport - Class in ru.vyarus.yaml.updater.update
-
Environment variables could be used to personalize updating yaml file.
- EnvSupport(String, String, Map<String, String>) - Constructor for class ru.vyarus.yaml.updater.update.EnvSupport
- EnvSupport(Map<String, String>) - Constructor for class ru.vyarus.yaml.updater.update.EnvSupport
- envVars(Map<String, String>) - Method in class ru.vyarus.yaml.updater.UpdateConfig.Configurator
-
Deprecated.use
UpdateConfig.Configurator.vars(java.util.Map)instead - execute() - Method in class ru.vyarus.yaml.updater.YamlUpdater
-
Perform configuration migration.
F
- FileUtils - Class in ru.vyarus.yaml.updater.util
- fillTo(String, int) - Static method in class ru.vyarus.yaml.updater.parse.common.TreeStringUtils
-
Appends whitespace to line to increase its length.
- find(String) - Method in class ru.vyarus.yaml.updater.parse.common.model.TreeNode
-
Search for yaml node by path.
- find(String) - Method in class ru.vyarus.yaml.updater.parse.common.model.TreeRoot
- find(String) - Method in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
- findExistingFile(String) - Static method in class ru.vyarus.yaml.updater.util.FileUtils
-
Same as
findFile(String), but fails if target file not found. - findFile(String) - Static method in class ru.vyarus.yaml.updater.util.FileUtils
-
Searches file in multiple locations.
- findNextLineRoot(int, T) - Static method in class ru.vyarus.yaml.updater.parse.common.YamlModelUtils
-
Searches for correct parent node by current node padding.
- flowMarker(int) - Static method in class ru.vyarus.yaml.updater.parse.comments.util.MultilineValue
-
Flow multiline value is a value spanning multiple lines without additional markers.
G
- getAdded() - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- getAfterLinesCnt() - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- getAfterSize() - Method in class ru.vyarus.yaml.updater.report.UpdateReport
-
NOTE: size obtained as
File.length()and may be slightly different on different OS. - getAllPropertiesIncludingScalarLists() - Method in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
-
Same as
YamlLine.getTreeLeaves()but also includes scalar list items for list nodes. - getApplied() - Method in class ru.vyarus.yaml.updater.update.EnvSupport
- getAppliedVariables() - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- getBackup() - Method in class ru.vyarus.yaml.updater.report.UpdateReport
-
NOTE: in dry run always return null.
- getBackupDir() - Method in class ru.vyarus.yaml.updater.UpdateConfig
- getBeforeLinesCnt() - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- getBeforeSize() - Method in class ru.vyarus.yaml.updater.report.UpdateReport
-
NOTE: size obtained as
File.length()and may be slightly different on different OS. - getChildren() - Method in class ru.vyarus.yaml.updater.parse.common.model.TreeNode
- getConfig() - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- getCurrent() - Method in class ru.vyarus.yaml.updater.UpdateConfig
- getDeleteProps() - Method in class ru.vyarus.yaml.updater.UpdateConfig
-
NOTE: '/' used for property separation because in yaml property name could contain dot.
- getDryRunResult() - Method in class ru.vyarus.yaml.updater.report.UpdateReport
-
NOTE: set ONLY for dry run (
UpdateReport.isDryRun()), in normal execution you can always read updated file content (in dry run content is not saved). - getEnv() - Method in class ru.vyarus.yaml.updater.UpdateConfig
-
Variables for replacing placeholders in update file
#{var}. - getIdentityValue() - Method in class ru.vyarus.yaml.updater.parse.comments.model.CmtNode
- getIdentityValue() - Method in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
-
Returned values assumed to be used in node comparisons.
- getIdentityValue() - Method in class ru.vyarus.yaml.updater.parse.struct.model.StructNode
- getKey() - Method in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
- getLineNum() - Method in interface ru.vyarus.yaml.updater.parse.common.model.LineNumberAware
- getLineNum() - Method in class ru.vyarus.yaml.updater.parse.common.model.TreeRoot
- getLineNum() - Method in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
- getLinesCnt() - Method in class ru.vyarus.yaml.updater.parse.common.model.TreeRoot
-
NOTE: numbers may be different for comments and structural parser as the later would ignore trailing comments.
- getListener() - Method in class ru.vyarus.yaml.updater.UpdateConfig
- getPadding() - Method in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
- getParsedValue() - Method in class ru.vyarus.yaml.updater.parse.comments.model.CmtNode
-
NOTE: such value may not be set if comments parser used directly (e.g. in tests).
- getPath() - Method in class ru.vyarus.yaml.updater.report.UpdateReport.Pair
- getPosition() - Method in class ru.vyarus.yaml.updater.parse.comments.util.CountingIterator
- getRemoved() - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- getRoot() - Method in class ru.vyarus.yaml.updater.parse.common.model.TreeNode
- getRootProperties() - Method in class ru.vyarus.yaml.updater.parse.common.model.TreeNode
-
Note there might be comment-only nodes in case of comments parser and these are not included.
- getSourceKey() - Method in class ru.vyarus.yaml.updater.parse.comments.model.CmtNode
-
Original yaml file could contain quoted key, but
YamlLine.getKey()would always return unquoted key to avoid comparison mistakes. - getTopComment() - Method in class ru.vyarus.yaml.updater.parse.comments.model.CmtNode
-
NOTE: If multiple comments above property, separated by blank lines - it all would be assumed as property comment (everything is remembered to re-create exactly the same file).
- getTreeLeaves() - Method in class ru.vyarus.yaml.updater.parse.common.model.TreeNode
- getTreeLeaves() - Method in class ru.vyarus.yaml.updater.parse.common.model.TreeRoot
- getTreeLeaves() - Method in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
-
Assumed iterative usage: first all properties selected and then list nodes are post processed (because almost always list nodes processing is situation-specific).
- getUpdate() - Method in class ru.vyarus.yaml.updater.UpdateConfig
-
Configuration file may contain placeholders (
UpdateConfig.getEnv()). - getUpdateLines() - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- getUpdateSize() - Method in class ru.vyarus.yaml.updater.report.UpdateReport
-
NOTE: update file length calculated from the content instead of calling
File.length()(which is OS dependent). - getValue() - Method in class ru.vyarus.yaml.updater.parse.comments.model.CmtNode
- getValue() - Method in class ru.vyarus.yaml.updater.parse.struct.model.StructNode
- getValue() - Method in class ru.vyarus.yaml.updater.report.UpdateReport.Pair
- getYamlPath() - Method in class ru.vyarus.yaml.updater.parse.common.model.TreeNode
-
Note, for list items possible empty dash line is ignored (not a level in path).
- getYamlPath() - Method in class ru.vyarus.yaml.updater.parse.common.model.TreeRoot
- getYamlPath() - Method in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
- getYamlPathElement() - Method in class ru.vyarus.yaml.updater.parse.common.model.TreeNode
-
Cases: - for property or object (or list) root: "name" - for list item: "[n]" (where n number from 0).
- getYamlPathElement() - Method in class ru.vyarus.yaml.updater.parse.common.model.TreeRoot
- getYamlPathElement() - Method in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
H
- hasChildren() - Method in class ru.vyarus.yaml.updater.parse.common.model.TreeNode
- hasComment() - Method in class ru.vyarus.yaml.updater.parse.comments.model.CmtNode
- hasListValue() - Method in class ru.vyarus.yaml.updater.parse.common.model.TreeNode
- hasNext() - Method in class ru.vyarus.yaml.updater.parse.comments.util.CountingIterator
- hasValue() - Method in class ru.vyarus.yaml.updater.parse.comments.model.CmtNode
I
- indent - Variable in class ru.vyarus.yaml.updater.parse.comments.util.MultilineValue.Marker
- isAddedNode() - Method in class ru.vyarus.yaml.updater.parse.comments.model.CmtNode
- isBackup() - Method in class ru.vyarus.yaml.updater.UpdateConfig
- isCommentOnly() - Method in class ru.vyarus.yaml.updater.parse.comments.model.CmtNode
- isConfigChanged() - Method in class ru.vyarus.yaml.updater.report.UpdateReport
-
If merged file content is identical to the original file (ignoring leading/trailing whitespaces) then original file is not touched.
- isDryRun() - Method in class ru.vyarus.yaml.updater.report.UpdateReport
-
Changed configuration could be obtained with
UpdateReport.getDryRunResult()(because otherwise it is not stored anywhere). - isDryRun() - Method in class ru.vyarus.yaml.updater.UpdateConfig
- isEmptyDash() - Method in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
- isListItem() - Method in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
-
In all cases list item means "dash".
- isListItemWithProperty() - Method in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
- isObjectListItem() - Method in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
- isProperty() - Method in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
- isValidateResult() - Method in class ru.vyarus.yaml.updater.UpdateConfig
K
- keep - Variable in class ru.vyarus.yaml.updater.parse.comments.util.MultilineValue.Marker
L
- LineNumberAware - Interface in ru.vyarus.yaml.updater.parse.common.model
-
Unification for yaml nodes and tree node (not mapped object, grouping all root yaml properties).
- listen(UpdateListener) - Method in class ru.vyarus.yaml.updater.UpdateConfig.Configurator
-
Register listener for accessing internal files model during merge process.
- listItem(T) - Static method in class ru.vyarus.yaml.updater.parse.common.YamlModelUtils
-
Marks node as list item.
- ListMatcher - Class in ru.vyarus.yaml.updater.update
-
List matching utilities.
- loadProperties(InputStream, Map<String, String>) - Static method in class ru.vyarus.yaml.updater.util.FileUtils
-
Loads properties file from stream.
- loadProperties(String) - Static method in class ru.vyarus.yaml.updater.util.FileUtils
-
Loads properties file from fs, classpath or url (see
findFile(String)) as map of values. - loadProperties(String, Map<String, String>) - Static method in class ru.vyarus.yaml.updater.util.FileUtils
-
Loads properties file from fs, classpath or url (see
findFile(String)) and appends everything to provided map.
M
- Marker() - Constructor for class ru.vyarus.yaml.updater.parse.comments.util.MultilineValue.Marker
- match(T, List<T>) - Static method in class ru.vyarus.yaml.updater.update.ListMatcher
-
Searches for matched list item in the items list (assuming item from one file and list from another, no matter what direction).
- merge(CmtTree, CmtTree) - Static method in class ru.vyarus.yaml.updater.update.TreeMerger
-
Merge commented models.
- merged(CmtTree) - Method in interface ru.vyarus.yaml.updater.listen.UpdateListener
-
Called just after the merge, but before final validation.
- merged(CmtTree) - Method in class ru.vyarus.yaml.updater.listen.UpdateListenerAdapter
- MultilineValue - Class in ru.vyarus.yaml.updater.parse.comments.util
-
Yaml multi-line value detector utility.
- MultilineValue.Marker - Class in ru.vyarus.yaml.updater.parse.comments.util
-
Multi-line value descriptor.
N
- next() - Method in class ru.vyarus.yaml.updater.parse.comments.util.CountingIterator
P
- Pair(String, String) - Constructor for class ru.vyarus.yaml.updater.report.UpdateReport.Pair
- PATH_SEPARATOR - Static variable in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
-
Separator character for yaml paths.
- print(UpdateReport) - Static method in class ru.vyarus.yaml.updater.report.ReportPrinter
- printDryRunResult(UpdateReport) - Static method in class ru.vyarus.yaml.updater.report.ReportPrinter
-
Prints merged file from dry run execution.
- printReport(boolean) - Method in class ru.vyarus.yaml.updater.profile.TestConfigurator
-
Enabled by default.
- printResult(boolean) - Method in class ru.vyarus.yaml.updater.profile.TestConfigurator
-
Enabled by default.
- ProdConfigurator - Class in ru.vyarus.yaml.updater.profile
-
Represents normal tool run.
- ProdConfigurator(File, InputStream) - Constructor for class ru.vyarus.yaml.updater.profile.ProdConfigurator
R
- read(File) - Static method in class ru.vyarus.yaml.updater.parse.comments.CommentsReader
- read(File) - Static method in class ru.vyarus.yaml.updater.parse.struct.StructureReader
- read(InputStream) - Static method in class ru.vyarus.yaml.updater.util.FileUtils
-
Reads file content from stream.
- read(Reader) - Static method in class ru.vyarus.yaml.updater.parse.struct.StructureReader
- read(String) - Static method in class ru.vyarus.yaml.updater.parse.comments.CommentsReader
- read(String) - Static method in class ru.vyarus.yaml.updater.parse.struct.StructureReader
- removeLeadingPath(String, String) - Static method in class ru.vyarus.yaml.updater.parse.common.YamlModelUtils
-
Removes leading part of the path (specified).
- ReportPrinter - Class in ru.vyarus.yaml.updater.report
-
Formats update report.
- ru.vyarus.yaml.updater - package ru.vyarus.yaml.updater
- ru.vyarus.yaml.updater.listen - package ru.vyarus.yaml.updater.listen
- ru.vyarus.yaml.updater.parse.comments - package ru.vyarus.yaml.updater.parse.comments
- ru.vyarus.yaml.updater.parse.comments.model - package ru.vyarus.yaml.updater.parse.comments.model
- ru.vyarus.yaml.updater.parse.comments.util - package ru.vyarus.yaml.updater.parse.comments.util
- ru.vyarus.yaml.updater.parse.common - package ru.vyarus.yaml.updater.parse.common
- ru.vyarus.yaml.updater.parse.common.model - package ru.vyarus.yaml.updater.parse.common.model
- ru.vyarus.yaml.updater.parse.struct - package ru.vyarus.yaml.updater.parse.struct
- ru.vyarus.yaml.updater.parse.struct.model - package ru.vyarus.yaml.updater.parse.struct.model
- ru.vyarus.yaml.updater.profile - package ru.vyarus.yaml.updater.profile
- ru.vyarus.yaml.updater.report - package ru.vyarus.yaml.updater.report
- ru.vyarus.yaml.updater.update - package ru.vyarus.yaml.updater.update
- ru.vyarus.yaml.updater.util - package ru.vyarus.yaml.updater.util
S
- setAddedNode(boolean) - Method in class ru.vyarus.yaml.updater.parse.comments.model.CmtNode
-
Mark node as added during merge process.
- setAfterLinesCnt(int) - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- setAfterSize(long) - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- setBackup(File) - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- setBeforeLinesCnt(int) - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- setBeforeSize(long) - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- setConfigChanged(boolean) - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- setDryRun(boolean) - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- setDryRunResult(String) - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- setKey(String) - Method in class ru.vyarus.yaml.updater.parse.comments.model.CmtNode
- setKey(String) - Method in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
- setListItem(boolean) - Method in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
- setListItemWithProperty(boolean) - Method in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
- setPadding(int) - Method in class ru.vyarus.yaml.updater.parse.common.model.YamlLine
-
Changes item padding.
- setParsedValue(String) - Method in class ru.vyarus.yaml.updater.parse.comments.model.CmtNode
-
Property value, parsed by snakeyaml parser.
- setRoot(T) - Method in class ru.vyarus.yaml.updater.parse.common.model.TreeNode
-
Change node root.
- setSourceKey(String) - Method in class ru.vyarus.yaml.updater.parse.comments.model.CmtNode
-
Method should be used only to change existing node property style (e.g. quoted to unquoted and vice-versa).
- setUpdateLines(int) - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- setUpdateSize(long) - Method in class ru.vyarus.yaml.updater.report.UpdateReport
- setValue(String) - Method in class ru.vyarus.yaml.updater.parse.struct.model.StructNode
- setValue(List<String>) - Method in class ru.vyarus.yaml.updater.parse.comments.model.CmtNode
-
Register property value.
- shiftRight(String, int) - Static method in class ru.vyarus.yaml.updater.parse.common.TreeStringUtils
-
Appends whitespace before line.
- StructNode - Class in ru.vyarus.yaml.updater.parse.struct.model
-
Structure build by snakeyaml-based parser.
- StructNode(StructNode, int, int) - Constructor for class ru.vyarus.yaml.updater.parse.struct.model.StructNode
- StructNodeFactory - Class in ru.vyarus.yaml.updater.parse.struct.model
-
Helper factory class for creating correct node objects.
- StructTree - Class in ru.vyarus.yaml.updater.parse.struct.model
-
Yaml tree build by snakeyaml-based parser.
- StructTree(List<StructNode>, int) - Constructor for class ru.vyarus.yaml.updater.parse.struct.model.StructTree
- StructureReader - Class in ru.vyarus.yaml.updater.parse.struct
-
Snakeyaml-based parser.
T
- TestConfigurator - Class in ru.vyarus.yaml.updater.profile
-
Utility to simplify testing updates: it could search file on fs, in classpath or as url.
- TestConfigurator(String, String) - Constructor for class ru.vyarus.yaml.updater.profile.TestConfigurator
- toString() - Method in class ru.vyarus.yaml.updater.parse.comments.model.CmtNode
- toString() - Method in class ru.vyarus.yaml.updater.parse.comments.model.CmtTree
- toString() - Method in class ru.vyarus.yaml.updater.parse.struct.model.StructNode
- toString() - Method in class ru.vyarus.yaml.updater.parse.struct.model.StructTree
- TreeMerger - Class in ru.vyarus.yaml.updater.update
-
Merges commented models.
- TreeNode<T extends YamlLine<T>> - Class in ru.vyarus.yaml.updater.parse.common.model
-
Universal tree-like structure.
- TreeNode(T) - Constructor for class ru.vyarus.yaml.updater.parse.common.model.TreeNode
- TreeRoot<T extends YamlLine<T>> - Class in ru.vyarus.yaml.updater.parse.common.model
-
Base class for both comments and structure trees.
- TreeRoot(List<T>, int) - Constructor for class ru.vyarus.yaml.updater.parse.common.model.TreeRoot
- TreeStringUtils - Class in ru.vyarus.yaml.updater.parse.common
-
String utilities related to yaml model trees.
U
- unifyListItemPath(String) - Static method in class ru.vyarus.yaml.updater.update.ListMatcher
-
Replaces list item positions with asterisk, so list items from different files (different list positions) could be compared.
- update() - Method in class ru.vyarus.yaml.updater.profile.TestConfigurator
- update() - Method in class ru.vyarus.yaml.updater.UpdateConfig.Configurator
-
Performs configuration migration.
- UpdateConfig - Class in ru.vyarus.yaml.updater
-
Update configuration.
- UpdateConfig.Configurator<T extends UpdateConfig.Configurator<T>> - Class in ru.vyarus.yaml.updater
-
Updater configurator.
- updateConfigParsed(CmtTree, StructTree) - Method in interface ru.vyarus.yaml.updater.listen.UpdateListener
-
Parsed new configuration with two parsers (preserving comments and snakeyaml).
- updateConfigParsed(CmtTree, StructTree) - Method in class ru.vyarus.yaml.updater.listen.UpdateListenerAdapter
- UpdateListener - Interface in ru.vyarus.yaml.updater.listen
-
Update stages listener.
- UpdateListenerAdapter - Class in ru.vyarus.yaml.updater.listen
-
Dummy implementation of
UpdateListenerto simplify selective implementation. - UpdateListenerAdapter() - Constructor for class ru.vyarus.yaml.updater.listen.UpdateListenerAdapter
- UpdateReport - Class in ru.vyarus.yaml.updater.report
-
Update report.
- UpdateReport(File) - Constructor for class ru.vyarus.yaml.updater.report.UpdateReport
- UpdateReport.Pair - Class in ru.vyarus.yaml.updater.report
-
Yaml path - line identity pair.
- UpdateResultValidator - Class in ru.vyarus.yaml.updater.update
-
Validates merged file against old and new configs: all old values must be preserved and all new values must be added.
V
- validate(CmtTree, StructTree) - Static method in class ru.vyarus.yaml.updater.update.CommentsParserValidator
-
Compare that parsed trees are structurally the same to verify comments parser correctness (assuming snakeyaml works perfectly).
- validate(TreeNode<StructNode>, TreeNode<StructNode>, TreeNode<StructNode>) - Static method in class ru.vyarus.yaml.updater.update.UpdateResultValidator
-
Validate merge result correctness.
- validated(StructTree) - Method in interface ru.vyarus.yaml.updater.listen.UpdateListener
-
Called after result validation.
- validated(StructTree) - Method in class ru.vyarus.yaml.updater.listen.UpdateListenerAdapter
- validateResult(boolean) - Method in class ru.vyarus.yaml.updater.UpdateConfig.Configurator
-
Merged file validation (checks that all old values remains and new values added).
- var(String, String) - Method in class ru.vyarus.yaml.updater.UpdateConfig.Configurator
-
Adds variable for source config substitution.
- vars(Map<String, String>) - Method in class ru.vyarus.yaml.updater.UpdateConfig.Configurator
-
Variables use special syntax
#{name}because with it yaml file still remains valid (variable treated as comment). - varsFile(String, boolean) - Method in class ru.vyarus.yaml.updater.UpdateConfig.Configurator
-
Load variables (see
UpdateConfig.Configurator.vars(java.util.Map)) from properties file. - virtualListItem(T) - Static method in class ru.vyarus.yaml.updater.parse.common.YamlModelUtils
-
Marks node as virtual list item node.
W
- whitespace(int) - Static method in class ru.vyarus.yaml.updater.parse.common.TreeStringUtils
- write(CmtTree) - Static method in class ru.vyarus.yaml.updater.parse.comments.CommentsWriter
- write(CmtTree, File) - Static method in class ru.vyarus.yaml.updater.parse.comments.CommentsWriter
-
Writes yaml into file.
- write(CmtTree, OutputStream) - Static method in class ru.vyarus.yaml.updater.parse.comments.CommentsWriter
-
Writes yaml into stream.
Y
- YamlLine<T extends YamlLine<T>> - Class in ru.vyarus.yaml.updater.parse.common.model
-
Base class for comments and structure parsers.
- YamlLine(T, int, int) - Constructor for class ru.vyarus.yaml.updater.parse.common.model.YamlLine
- YamlModelUtils - Class in ru.vyarus.yaml.updater.parse.common
-
Yaml model utils.
- YamlUpdater - Class in ru.vyarus.yaml.updater
-
Yaml configuration merger preserving comments.
- YamlUpdater(UpdateConfig) - Constructor for class ru.vyarus.yaml.updater.YamlUpdater
All Classes All Packages