/** * Checks in under a given root element whether it can find a child element * which matches the name supplied. Returns {@link Element} if exists. * * @param name the Element name (required) * @param root the parent DOM element (required) * @return the Element if discovered * @deprecated use {@link DomUtils#findFirstElementByName(String, Element)} * instead */ @Deprecated public static Element findFirstElementByName(final String name, final Element root) { return DomUtils.findFirstElementByName(name, root); }
DomUtils.findFirstElementByName("util:placeholder", original); if (placeHolder != null) { // Insert right before place
/** * Check if login.jspx is modified with bootstrap * * @return */ @Override public boolean isLoginModified() { String dirPath = pathResolver.getIdentifier(getWebappPath(), "WEB-INF/views/login.jspx"); final Document document = XmlUtils.readXml(fileManager .getInputStream(dirPath)); final Element config = document.getDocumentElement(); final Element urlElement = DomUtils.findFirstElementByName("div", config); String value = urlElement.getAttribute("class"); return value.contains("alert alert-danger"); }
.getDocumentElement(); final Element provider = DomUtils.findFirstElementByName( "provider", persistenceElement);
/** * Check if login.jspx is modified with bootstrap * * @return */ @Override public boolean isLoginModified() { String dirPath = getPathResolver().getIdentifier(getWebappPath(), "WEB-INF/views/login.jspx"); final Document document = XmlUtils.readXml(getFileManager() .getInputStream(dirPath)); final Element config = document.getDocumentElement(); final Element urlElement = DomUtils.findFirstElementByName("div", config); String value = urlElement.getAttribute("class"); return value.contains("alert alert-danger"); }
.findFirstElementByName(EXECUTIONS, plugin); if (executions == null) { executions = pom.createElement(EXECUTIONS); Element configuration = DomUtils.findFirstElementByName(CONFIGURATION2, execution); if (configuration == null) { execution.appendChild(configuration); Element sourceRoot = DomUtils.findFirstElementByName("sourceRoot", configuration); if (sourceRoot == null) { configuration.appendChild(sourceRoot); Element defaultOptions = DomUtils.findFirstElementByName( "defaultOptions", configuration); if (defaultOptions == null) { Element wsdlOptions = DomUtils.findFirstElementByName("wsdlOptions", configuration); if (wsdlOptions == null) {
Element executionPhase = DomUtils.findFirstElementByName(PHASE2, oldGenerateSourcesCxfServer);
Element executions = DomUtils.findFirstElementByName(EXECUTIONS, axistoolsPlugin); if (executions == null) {
Element oldExecutions = DomUtils.findFirstElementByName(EXECUTIONS, jaxWsPlugin);
"urn:jsptagdir:/WEB-INF/tags/dialog/modal"); Element messageBoxElement = DomUtils.findFirstElementByName( "dialog:message-box", lsHtml); if (messageBoxElement == null) {
Element oldExecutions = DomUtils.findFirstElementByName(EXECUTIONS, codegenWsPlugin);