Class XNode
java.lang.Object
org.apache.ibatis.parsing.XNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Propertiesprivate final Stringprivate final Stringprivate final Nodeprivate final Propertiesprivate final XPathParser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringBuilderbuildToString(StringBuilder builder, int indentLevel) evalBoolean(String expression) evalDouble(String expression) evalString(String expression) private StringgetBodyData(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 StringBuilderindent(StringBuilder builder, int level) private Propertiesprivate StringtoString()
-
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
-
buildToString
-
indent
-
parseAttributes
-
parseBody
-
getBodyData
-