/** * Get all children matching the specified query. * * @param patterns * The query to use for finding relevant child nodes * @return All found children, or empty list if none found. */ public List<Node> get(final Pattern... patterns) { return AbsoluteGetQuery.INSTANCE.execute(this, includeRootPatternFirst(patterns)); }
private Pattern[] includeRootPatternFirst(final Pattern... patterns) { return validateAndMergePatternInput(new Pattern(name), patterns); } }
@Override public ServletDef asyncSupported(boolean value) { servlet.getOrCreate("async-supported").text(value); return this; }
@Override public ApplicationDescriptor connectorModule(String uri) { model.createChild("module").createChild("connector").text(uri); return this; }
/** * Returns the <code>connectionfactory-interface</code> element * @return the node defined for the element <code>connectionfactory-interface</code> */ public String getConnectionfactoryInterface() { return childNode.getTextValueForPatternName("connectionfactory-interface"); }
/** * Removes the <code>display-name</code> element * @return the current instance of <code>ConnectorDescriptor</code> */ public ConnectorDescriptor removeAllDisplayName() { model.removeChildren("display-name"); return this; }
@Override public ApplicationDescriptor displayName(String displayName) { model.getOrCreate("display-name").text(displayName); return this; }
@Override public ApplicationDescriptor webModule(String uri, String contextRoot) { Node web = model.createChild("module").createChild("web"); web.createChild("web-uri").text(uri); web.createChild("context-root").text(contextRoot); return this; }
/** * Returns the <code>connection-interface</code> element * @return the node defined for the element <code>connection-interface</code> */ public String getConnectionInterface() { return childNode.getTextValueForPatternName("connection-interface"); }
/** * Removes the <code>eis-type</code> element * @return the current instance of <code>ConnectorDescriptor</code> */ public ConnectorDescriptor removeEisType() { model.removeChildren("eis-type"); return this; }
/** * Get all children matching the specified query. * * @param patterns * The query to use for finding relevant child nodes * @return All found children, or empty list if none found. */ public List<Node> get(final Pattern... patterns) { return AbsoluteGetQuery.INSTANCE.execute(this, includeRootPatternFirst(patterns)); }
private Pattern[] includeRootPatternFirst(final Pattern... patterns) { return validateAndMergePatternInput(new Pattern(name), patterns); } }
@Override public ApplicationDescriptor libraryDirectory(String libraryDirectory) { model.getOrCreate("library-directory").text(libraryDirectory); return this; }
/** * Removes the <code>connectionfactory-impl-class</code> element * @return the current instance of <code>Resourceadapter<T></code> */ public Resourceadapter<T> removeConnectionfactoryImplClass() { childNode.removeChildren("connectionfactory-impl-class"); return this; }
@Override public ServletDef name(String name) { servlet.getOrCreate("servlet-name").text(name); return this; }
@Override public ApplicationDescriptor description(String description) { model.getOrCreate("description").text(description); return this; }
@Override public ServletMappingDef servletName(String servletName) { mapping.getOrCreate("servlet-name").text(servletName); return this; }