Package org.apache.ibatis.parsing
Class XNode
java.lang.Object
org.apache.ibatis.parsing.XNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Properties
private final String
private final String
private final Node
private final Properties
private final XPathParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevalBoolean
(String expression) evalDouble
(String expression) evalString
(String expression) private String
getBodyData
(Node child) 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) private void
indent
(StringBuilder builder, int level) private Properties
private String
toString()
private void
toString
(StringBuilder builder, int level)
-
Field Details
-
node
-
name
-
body
-
attributes
-
variables
-
xpathParser
-
-
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
-
toString
-
indent
-
parseAttributes
-
parseBody
-
getBodyData
-