Package org.eclipse.epsilon.emc.yaml
Class YamlNodeUtility
java.lang.Object
org.eclipse.epsilon.emc.yaml.YamlNodeUtility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandeleteNode(Object yamlContent, List<Map.Entry> createdNodes, Map.Entry instance) static Map.EntrygetNode(String type, int indexOfSeparator, Collection<Object> parameters) static Collection<Map.Entry> getNodes(Object yamlContent, YamlProperty yamlProperty, boolean areAllNodes) static YamlNodeTypegetNodeType(String type) static YamlNodeTypegetNodeType(Map.Entry node) static StringgetPrefixOfType(YamlNodeType yamlNodeType) static ObjectgetQueryResult(Collection<Map.Entry> queryResult, YamlProperty yamlProperty) static Map.EntrygetRootNode(Object yamlContent) static StringgetTypeNameOf(Map.Entry node) static ObjectgetYamlContent(File file) static ObjectgetYamlContent(String yamlContent) static booleanisListNode(List list) static booleanownsYamlObject(Object yamlContent, List<Map.Entry> createdNodes, Object instance) static voidstoreYamlContent(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:
FileNotFoundExceptionIOException
-
getYamlContent
-
storeYamlContent
- Throws:
IOException
-
getRootNode
-