Modifier and Type | Field and Description |
---|---|
private static Pattern |
itemPattern |
private static Pattern |
simplePathPattern |
Constructor and Description |
---|
Nodes() |
Modifier and Type | Method and Description |
---|---|
static String |
concat(String path1,
String path2) |
static Object |
deepCloneNode(Object node)
Clones structure but re-uses primitives
|
static List<String> |
fromSimpleEscapedPath(String path) |
static List<String> |
fromSimpleEscapedPathOrNull(String path) |
private static Object |
getElement(Object node,
Object pathItem) |
static Object |
getNode(Object node,
List<Object> pathItems) |
static Object |
getNode(Object rootConfigNode,
String path) |
static List<Object> |
getPathItems(String path)
traverses nodenames and also @name predicates, so something like this
/dicomConfigurationRoot/dicomDevicesRoot[@name='deviceName']/deviceExtensions
will return
dicomConfigurationRoot,dicomDevicesRoot,deviceName,deviceExtensions
|
static boolean |
isPrimitive(Object value) |
static boolean |
nodeExists(Map<String,Object> rootConfigNode,
String path) |
static boolean |
nodeExists(Object node,
List<Object> pathItems) |
static void |
removeNode(Map<String,Object> map,
List<Object> pathItems) |
static void |
removeNodes(Map<String,Object> configurationRoot,
String path) |
static Map<String,Object> |
replaceNode(Map<String,Object> map,
Map<String,Object> replacement,
List<Object> pathItems) |
private static Object |
replaceObject(Map<String,Object> map,
Object replacement,
List<Object> pathItems) |
static void |
replacePrimitive(Map<String,Object> map,
Object replacement,
List<Object> pathItems) |
static Iterator |
search(Map<String,Object> configurationRoot,
String liteXPathExpression) |
static List<Object> |
simpleOrPersistablePathToPathItemsOrNull(String path) |
static String |
toSimpleEscapedPath(Iterable<Object> items) |
static String |
toSimpleEscapedPath(Iterator<Object> items) |
private static Pattern itemPattern
private static Pattern simplePathPattern
public Nodes()
public static boolean nodeExists(Map<String,Object> rootConfigNode, String path)
public static void removeNodes(Map<String,Object> configurationRoot, String path)
public static Iterator search(Map<String,Object> configurationRoot, String liteXPathExpression) throws IllegalArgumentException
IllegalArgumentException
public static Object deepCloneNode(Object node)
node
- public static boolean isPrimitive(Object value)
public static List<Object> getPathItems(String path)
path
- public static List<Object> simpleOrPersistablePathToPathItemsOrNull(String path)
path
- path str to parsepublic static String toSimpleEscapedPath(Iterator<Object> items)
public static String toSimpleEscapedPath(Iterable<Object> items)
public static List<String> fromSimpleEscapedPath(String path)
public static List<String> fromSimpleEscapedPathOrNull(String path)
public static void replacePrimitive(Map<String,Object> map, Object replacement, List<Object> pathItems)
public static Map<String,Object> replaceNode(Map<String,Object> map, Map<String,Object> replacement, List<Object> pathItems)
private static Object replaceObject(Map<String,Object> map, Object replacement, List<Object> pathItems)
private static Object getElement(Object node, Object pathItem)
public static boolean nodeExists(Object node, List<Object> pathItems)
Copyright © 2017 dcm4che.org. All rights reserved.