Package org.apache.tika.util
Class XMLDOMUtil
java.lang.Object
org.apache.tika.util.XMLDOMUtil
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic intGet an int value.static longGet a long value.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.
- 
Constructor Details- 
XMLDOMUtilpublic XMLDOMUtil()
 
- 
- 
Method Details- 
mapifyAttrsThis grabs the attributes from a dom node and overwrites those values with those specified by the overwrite map.- Parameters:
- node- node for building
- overwrite- map of attributes to overwrite
- Returns:
- map of attributes
 
- 
getIntGet an int value. Try the runtime attributes first and then back off to the document element. Throw a RuntimeException if the attribute is not found or if the value is not parseable as an int.- Parameters:
- attrName- attribute name to find
- runtimeAttributes- runtime attributes
- docElement- correct element that should have specified attribute
- Returns:
- specified int value
 
- 
getLongGet a long value. Try the runtime attributes first and then back off to the document element. Throw a RuntimeException if the attribute is not found or if the value is not parseable as a long.- Parameters:
- attrName- attribute name to find
- runtimeAttributes- runtime attributes
- docElement- correct element that should have specified attribute
- Returns:
- specified long value
 
 
-