List of usage examples for org.jdom2.filter Filters fstring
Filter fstring
To view the source code for org.jdom2.filter Filters fstring.
Click Source Link
From source file:sample.webservices.endpoint.HolidayEndpoint.java
License:Apache License
public HolidayEndpoint(HumanResourceService humanResourceService) throws JDOMException, XPathFactoryConfigurationException, XPathExpressionException { this.humanResourceService = humanResourceService; Namespace namespace = Namespace.getNamespace("hr", NAMESPACE_URI); XPathFactory xPathFactory = XPathFactory.instance(); this.startDateExpression = xPathFactory.compile("//hr:StartDate", Filters.element(), null, namespace); this.endDateExpression = xPathFactory.compile("//hr:EndDate", Filters.element(), null, namespace); this.nameExpression = xPathFactory.compile("concat(//hr:FirstName,' ',//hr:LastName)", Filters.fstring(), null, namespace);/*from ww w.ja v a2 s. c o m*/ }
From source file:sample.ws.endpoint.HolidayEndpoint.java
License:Apache License
@Autowired public HolidayEndpoint(HumanResourceService humanResourceService) throws JDOMException, XPathFactoryConfigurationException, XPathExpressionException { this.humanResourceService = humanResourceService; Namespace namespace = Namespace.getNamespace("hr", NAMESPACE_URI); XPathFactory xPathFactory = XPathFactory.instance(); this.startDateExpression = xPathFactory.compile("//hr:StartDate", Filters.element(), null, namespace); this.endDateExpression = xPathFactory.compile("//hr:EndDate", Filters.element(), null, namespace); this.nameExpression = xPathFactory.compile("concat(//hr:FirstName,' ',//hr:LastName)", Filters.fstring(), null, namespace);/*w w w. j ava 2 s .c o m*/ }