예제 #1
0
파일: Item.java 프로젝트: roger-diaz/core
  /**
   * Queries multiple descriptor node text values. First looks in the properties, if not found it
   * executes the XPath query.
   */
  public List<String> queryDescriptorValues(String xPathQuery) {
    if (descriptorDom != null) {
      List<String> value = (List<String>) getProperty(xPathQuery);
      if (CollectionUtils.isEmpty(value)) {
        value = XmlUtils.selectNodeValues(descriptorDom, xPathQuery);
      }

      return value;
    } else {
      return Collections.emptyList();
    }
  }