Package org.apache.ibatis.parsing
Class XNode
java.lang.Object
org.apache.ibatis.parsing.XNode
- Author:
- Clinton Begin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionevalBoolean
(String expression) evalDouble
(String expression) evalString
(String expression) getBooleanAttribute
(String name) getBooleanAttribute
(String name, Boolean def) getBooleanBody
(Boolean def) getDoubleAttribute
(String name) getDoubleAttribute
(String name, Double def) getDoubleBody
(Double def) <T extends Enum<T>>
TgetEnumAttribute
(Class<T> enumType, String name) <T extends Enum<T>>
TgetEnumAttribute
(Class<T> enumType, String name, T def) getFloatAttribute
(String name) getFloatAttribute
(String name, Float def) getFloatBody
(Float def) getIntAttribute
(String name) getIntAttribute
(String name, Integer def) getIntBody
(Integer def) getLongAttribute
(String name) getLongAttribute
(String name, Long def) getLongBody
(Long def) getName()
getNode()
getPath()
getStringAttribute
(String name) getStringAttribute
(String name, String def) getStringAttribute
(String name, Supplier<String> defSupplier) Return a attribute value as String.getStringBody
(String def) toString()
-
Constructor Details
-
XNode
-
-
Method Details
-
newXNode
-
getParent
-
getPath
-
getValueBasedIdentifier
-
evalString
-
evalBoolean
-
evalDouble
-
evalNodes
-
evalNode
-
getNode
-
getName
-
getStringBody
-
getStringBody
-
getBooleanBody
-
getBooleanBody
-
getIntBody
-
getIntBody
-
getLongBody
-
getLongBody
-
getDoubleBody
-
getDoubleBody
-
getFloatBody
-
getFloatBody
-
getEnumAttribute
-
getEnumAttribute
-
getStringAttribute
Return a attribute value as String.If attribute value is absent, return value that provided from supplier of default value.
- Parameters:
name
- attribute namedefSupplier
- a supplier of default value- Returns:
- the string attribute
- Since:
- 3.5.4
-
getStringAttribute
-
getStringAttribute
-
getBooleanAttribute
-
getBooleanAttribute
-
getIntAttribute
-
getIntAttribute
-
getLongAttribute
-
getLongAttribute
-
getDoubleAttribute
-
getDoubleAttribute
-
getFloatAttribute
-
getFloatAttribute
-
getChildren
-
getChildrenAsProperties
-
toString
-