示例#1
0
文件: Item.java 项目: roger-diaz/core
  /**
   * Queries a single descriptor node text value. First looks in the properties, if not found it
   * executes the XPath query.
   */
  public String queryDescriptorValue(String xPathQuery) {
    if (descriptorDom != null) {
      String value = (String) getProperty(xPathQuery);
      if (value == null) {
        value = XmlUtils.selectSingleNodeValue(descriptorDom, xPathQuery);
      }

      return value;
    } else {
      return null;
    }
  }