public class XMLDOMUtil extends Object
Constructor and Description |
---|
XMLDOMUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
getInt(String attrName,
Map<String,String> runtimeAttributes,
Node docElement)
Get an int value.
|
static long |
getLong(String attrName,
Map<String,String> runtimeAttributes,
Node docElement)
Get a long value.
|
static Map<String,String> |
mapifyAttrs(Node node,
Map<String,String> overwrite)
This grabs the attributes from a dom node and overwrites those values with those
specified by the overwrite map.
|
public static Map<String,String> mapifyAttrs(Node node, Map<String,String> overwrite)
node
- node for buildingoverwrite
- map of attributes to overwritepublic static int getInt(String attrName, Map<String,String> runtimeAttributes, Node docElement)
attrName
- attribute name to findruntimeAttributes
- runtime attributesdocElement
- correct element that should have specified attributepublic static long getLong(String attrName, Map<String,String> runtimeAttributes, Node docElement)
attrName
- attribute name to findruntimeAttributes
- runtime attributesdocElement
- correct element that should have specified attributeCopyright © 2007–2023 The Apache Software Foundation. All rights reserved.