org.apache.ibatis.parsing
Class XNode

java.lang.Object
  extended by org.apache.ibatis.parsing.XNode

public class XNode
extends Object


Constructor Summary
XNode(XPathParser xpathParser, Node node, Properties variables)
           
 
Method Summary
 Boolean evalBoolean(String expression)
           
 Double evalDouble(String expression)
           
 XNode evalNode(String expression)
           
 List<XNode> evalNodes(String expression)
           
 String evalString(String expression)
           
 Boolean getBooleanAttribute(String name)
           
 Boolean getBooleanAttribute(String name, Boolean def)
           
 Boolean getBooleanBody()
           
 Boolean getBooleanBody(Boolean def)
           
 List<XNode> getChildren()
           
 Properties getChildrenAsProperties()
           
 Double getDoubleAttribute(String name)
           
 Double getDoubleAttribute(String name, Double def)
           
 Double getDoubleBody()
           
 Double getDoubleBody(Double def)
           
<T extends Enum<T>>
T
getEnumAttribute(Class<T> enumType, String name)
           
<T extends Enum<T>>
T
getEnumAttribute(Class<T> enumType, String name, T def)
           
 Float getFloatAttribute(String name)
           
 Float getFloatAttribute(String name, Float def)
           
 Float getFloatBody()
           
 Float getFloatBody(Float def)
           
 Integer getIntAttribute(String name)
           
 Integer getIntAttribute(String name, Integer def)
           
 Integer getIntBody()
           
 Integer getIntBody(Integer def)
           
 Long getLongAttribute(String name)
           
 Long getLongAttribute(String name, Long def)
           
 Long getLongBody()
           
 Long getLongBody(Long def)
           
 String getName()
           
 Node getNode()
           
 XNode getParent()
           
 String getPath()
           
 String getStringAttribute(String name)
           
 String getStringAttribute(String name, String def)
           
 String getStringBody()
           
 String getStringBody(String def)
           
 String getValueBasedIdentifier()
           
 XNode newXNode(Node node)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XNode

public XNode(XPathParser xpathParser,
             Node node,
             Properties variables)
Method Detail

newXNode

public XNode newXNode(Node node)

getParent

public XNode getParent()

getPath

public String getPath()

getValueBasedIdentifier

public String getValueBasedIdentifier()

evalString

public String evalString(String expression)

evalBoolean

public Boolean evalBoolean(String expression)

evalDouble

public Double evalDouble(String expression)

evalNodes

public List<XNode> evalNodes(String expression)

evalNode

public XNode evalNode(String expression)

getNode

public Node getNode()

getName

public String getName()

getStringBody

public String getStringBody()

getStringBody

public String getStringBody(String def)

getBooleanBody

public Boolean getBooleanBody()

getBooleanBody

public Boolean getBooleanBody(Boolean def)

getIntBody

public Integer getIntBody()

getIntBody

public Integer getIntBody(Integer def)

getLongBody

public Long getLongBody()

getLongBody

public Long getLongBody(Long def)

getDoubleBody

public Double getDoubleBody()

getDoubleBody

public Double getDoubleBody(Double def)

getFloatBody

public Float getFloatBody()

getFloatBody

public Float getFloatBody(Float def)

getEnumAttribute

public <T extends Enum<T>> T getEnumAttribute(Class<T> enumType,
                                              String name)

getEnumAttribute

public <T extends Enum<T>> T getEnumAttribute(Class<T> enumType,
                                              String name,
                                              T def)

getStringAttribute

public String getStringAttribute(String name)

getStringAttribute

public String getStringAttribute(String name,
                                 String def)

getBooleanAttribute

public Boolean getBooleanAttribute(String name)

getBooleanAttribute

public Boolean getBooleanAttribute(String name,
                                   Boolean def)

getIntAttribute

public Integer getIntAttribute(String name)

getIntAttribute

public Integer getIntAttribute(String name,
                               Integer def)

getLongAttribute

public Long getLongAttribute(String name)

getLongAttribute

public Long getLongAttribute(String name,
                             Long def)

getDoubleAttribute

public Double getDoubleAttribute(String name)

getDoubleAttribute

public Double getDoubleAttribute(String name,
                                 Double def)

getFloatAttribute

public Float getFloatAttribute(String name)

getFloatAttribute

public Float getFloatAttribute(String name,
                               Float def)

getChildren

public List<XNode> getChildren()

getChildrenAsProperties

public Properties getChildrenAsProperties()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2012 MyBatis.org. All Rights Reserved.