Tabnine Logo
StructuredNode.of
Code IndexAdd Tabnine to your IDE (free)

How to use
of
method
in
sirius.kernel.xml.StructuredNode

Best Java code snippets using sirius.kernel.xml.StructuredNode.of (Showing top 2 results out of 315)

origin: com.scireum/sirius-kernel

/**
 * Creates a new XMLStructuredInput for the given stream.
 *
 * @param in    the InputStream containing the xml data.
 * @param close determines whether the stream should be closed after parsing or not
 * @throws IOException if an io error occurs while parsing the input xml
 */
public XMLStructuredInput(InputStream in, boolean close) throws IOException {
  try {
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document doc = db.parse(in);
    node = StructuredNode.of(doc.getDocumentElement());
    if (close) {
      in.close();
    }
  } catch (ParserConfigurationException | SAXException e) {
    throw new IOException(e);
  }
}
origin: com.scireum/sirius-kernel

private boolean nodeUp() {
  if (isComplete()) {
    nodeHandler.process(StructuredNode.of(root));
    return true;
  }
  currentNode = currentNode.getParentNode();
  return false;
}
sirius.kernel.xmlStructuredNodeof

Javadoc

Wraps the given W3C node into a structured node.

Popular methods of StructuredNode

  • queryString
    Returns the property at the given relative path as string.
  • queryValue
    Queries a sirius.kernel.commons.Value by evaluating the given xpath.
  • <init>
    Wraps the given node
  • compile
  • getChildren
    Returns a list of all children of this DOM node.
  • getNode
    Returns the underlying W3C Node.
  • queryNode
    Returns a given node at the relative path.
  • serializeNodeAsXML
  • toString
  • visit
    Iterates through the sub-tree and invokes the appropriate handler for each child node.

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now