Package org.eclipse.epsilon.emc.yaml
Class YamlNodeUtility
java.lang.Object
org.eclipse.epsilon.emc.yaml.YamlNodeUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
deleteNode
(Object yamlContent, List<Map.Entry> createdNodes, Map.Entry instance) static Map.Entry
getNode
(String type, int indexOfSeparator, Collection<Object> parameters) static Collection<Map.Entry>
getNodes
(Object yamlContent, YamlProperty yamlProperty, boolean areAllNodes) static YamlNodeType
getNodeType
(String type) static YamlNodeType
getNodeType
(Map.Entry node) static String
getPrefixOfType
(YamlNodeType yamlNodeType) static Object
getQueryResult
(Collection<Map.Entry> queryResult, YamlProperty yamlProperty) static Map.Entry
getRootNode
(Object yamlContent) static String
getTypeNameOf
(Map.Entry node) static Object
getYamlContent
(File file) static Object
getYamlContent
(String yamlContent) static boolean
isListNode
(List list) static boolean
ownsYamlObject
(Object yamlContent, List<Map.Entry> createdNodes, Object instance) static void
storeYamlContent
(File file, Object yamlContent)
-
Constructor Details
-
YamlNodeUtility
public YamlNodeUtility()
-
-
Method Details
-
getNodes
public static Collection<Map.Entry> getNodes(Object yamlContent, YamlProperty yamlProperty, boolean areAllNodes) -
getQueryResult
-
isListNode
-
getNodeType
-
getNodeType
-
getNode
-
deleteNode
-
ownsYamlObject
-
getPrefixOfType
-
getTypeNameOf
-
getYamlContent
- Throws:
FileNotFoundException
IOException
-
getYamlContent
-
storeYamlContent
- Throws:
IOException
-
getRootNode
-