Package org.dbwiki.data.database

Examples of org.dbwiki.data.database.DatabaseGroupNode.children()


      this.printUpdateLine((DatabaseAttributeNode)element, body);
      body.closeTABLE();
    } else {
      body.openTABLE(layout.getCSS(CSS.CSSObjectFrame));
      DatabaseGroupNode group = (DatabaseGroupNode)element;
      for (int iChild = 0; iChild < group.children().size(); iChild++) {
        DatabaseElementNode child = group.children().get(iChild);
        if (child.getTimestamp().isCurrent()) {
          if (child.isAttribute()) {
            body.openTR();
            body.openTD(layout.getCSS(CSS.CSSObjectListing));
View Full Code Here


      body.closeTABLE();
    } else {
      body.openTABLE(layout.getCSS(CSS.CSSObjectFrame));
      DatabaseGroupNode group = (DatabaseGroupNode)element;
      for (int iChild = 0; iChild < group.children().size(); iChild++) {
        DatabaseElementNode child = group.children().get(iChild);
        if (child.getTimestamp().isCurrent()) {
          if (child.isAttribute()) {
            body.openTR();
            body.openTD(layout.getCSS(CSS.CSSObjectListing));
            body.openTABLE(layout.getCSS(CSS.CSSObjectFrameActive));
View Full Code Here

      // only display nodes that have not been deleted
      if (versionParameter.matches(groupNode)) {
        content.openTR();
        for (int iColumn = 0; iColumn < schemaNode.children().size(); iColumn++) {
          //DatabaseElementList nodes = groupNode.children().get(schemaNode.children().get(iColumn));
          DatabaseElementList nodes = groupNode.children().get(schemaNode.children().get(iColumn).label());
          if (groupNode.getTimestamp().isCurrent()) {
            content.openTD(layout.getCSS(CSS.CSSContentCellActive));
          } else {
            content.openTD(layout.getCSS(CSS.CSSContentCellInactive));
          }
View Full Code Here

          this.addModificationPoints(value.getTimestamp(), versions);
        }
      }
    } else {
      DatabaseGroupNode group = (DatabaseGroupNode)element;
      for (int iNode = 0; iNode < group.children().size(); iNode++) {
        DatabaseElementNode node = group.children().get(iNode);
        if (node.hasTimestamp()) {
          this.addModificationPoints(node.getTimestamp(),  versions);
        }
        this.addNodeChanges(node,  versions);
View Full Code Here

        }
      }
    } else {
      DatabaseGroupNode group = (DatabaseGroupNode)element;
      for (int iNode = 0; iNode < group.children().size(); iNode++) {
        DatabaseElementNode node = group.children().get(iNode);
        if (node.hasTimestamp()) {
          this.addModificationPoints(node.getTimestamp(),  versions);
        }
        this.addNodeChanges(node,  versions);
      }
View Full Code Here

  public void consume(DatabaseElementNode node, XPath targetPath, QueryNodeHandler consumer) {
   
    if (targetPath.size() > 0) {
      XPathComponent pathComponent = targetPath.firstElement();
      DatabaseGroupNode group = (DatabaseGroupNode)node;
      for (int iChild = 0; iChild < group.children().size(); iChild++) {
        DatabaseElementNode childNode = group.children().get(iChild);
        if (pathComponent.matches(childNode)) {
          if (targetPath.size() == 1) {
            consumer.handle(childNode);
          } else {
View Full Code Here

   
    if (targetPath.size() > 0) {
      XPathComponent pathComponent = targetPath.firstElement();
      DatabaseGroupNode group = (DatabaseGroupNode)node;
      for (int iChild = 0; iChild < group.children().size(); iChild++) {
        DatabaseElementNode childNode = group.children().get(iChild);
        if (pathComponent.matches(childNode)) {
          if (targetPath.size() == 1) {
            consumer.handle(childNode);
          } else {
            new RelativeXPathConsumer().consume(childNode, targetPath.subpath(1), consumer);
View Full Code Here

   
    XPathComponent pathComponent = targetPath.firstElement();
    if (pathComponent.matches(node)) {
      if (targetPath.size() > 1) {
        DatabaseGroupNode group = (DatabaseGroupNode)node;
        for (int iChild = 0; iChild < group.children().size(); iChild++) {
          new AbsoluteXPathConsumer().consume(group.children().get(iChild), targetPath.subpath(1), consumer);
        }
      } else {
        consumer.handle(node);
      }
View Full Code Here

    XPathComponent pathComponent = targetPath.firstElement();
    if (pathComponent.matches(node)) {
      if (targetPath.size() > 1) {
        DatabaseGroupNode group = (DatabaseGroupNode)node;
        for (int iChild = 0; iChild < group.children().size(); iChild++) {
          new AbsoluteXPathConsumer().consume(group.children().get(iChild), targetPath.subpath(1), consumer);
        }
      } else {
        consumer.handle(node);
      }
    }
View Full Code Here

    // list of children of the node's parent that have a node ID
    // below the ID of the given node
    if (node.parent() != null) {
      if (node.parent().isGroup()) {
        DatabaseGroupNode parent = (DatabaseGroupNode)node.parent();
        for (int iChild = 0; iChild < parent.children().size(); iChild++) {
          DatabaseElementNode child = parent.children().get(iChild);
          if (child.schema().equals(node.schema())) {
            if (child.identifier().compareTo(node.identifier()) < 0) {
              nodeIndex++;
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.