Package org.dbwiki.data.database

Examples of org.dbwiki.data.database.DatabaseAttributeNode


      if ((!this.isRootTimestamp(node.getTimestamp())) && (this.matchesProvenanceCondition(node.getTimestamp()))) {
        return true;
      }
    }
    if (node.isAttribute()) {
      DatabaseAttributeNode attribute = (DatabaseAttributeNode)node;
      for (int iValue = 0; iValue < attribute.value().size(); iValue++) {
        if (attribute.value().get(iValue).hasTimestamp()) {
          if (this.matchesProvenanceCondition(attribute.value().get(iValue).getTimestamp())) {
            return true;
          }
        }
      }
      return false;
View Full Code Here


    if (node.getTimestamp().changedSince(versionNumber())) {
      return true;
    } else if (node.isElement()) {
      boolean matches = false;
      if (((DatabaseElementNode)node).isAttribute()) {
        DatabaseAttributeNode attribute = (DatabaseAttributeNode)node;
        for (int iValue = 0; iValue < attribute.value().size(); iValue++) {
          if (attribute.value().get(iValue).getTimestamp().changedSince(versionNumber())) {
            matches = true;
            break;
          }
        }
      } else {
View Full Code Here

      String label = null;
     
      try {
        DatabaseElementList nodes = ((DatabaseGroupNode)node).find(_path);
        for (int iNode = 0; iNode < nodes.size(); iNode++) {
          DatabaseAttributeNode attribute = (DatabaseAttributeNode)nodes.get(iNode);
          for (int iText = 0; iText < attribute.value().size(); iText++) {
            DatabaseTextNode text = attribute.value().get(iText);
            if (version.matches(text)) {
              if (label != null) {
                label = label + ", " + text.value();
              } else {
                label = text.value();
View Full Code Here

        DatabaseGroupNode childNode = (DatabaseGroupNode)nodes.get(iNode);
        if (versionParameter.matches(childNode)) {
          int matches = 0;
          DatabaseElementList valueNodes = childNode.find(rule.value().path().substring(childNode.schema().path().length() + 1));
          for (int iValueNode = 0; iValueNode < valueNodes.size(); iValueNode++) {
            DatabaseAttributeNode attributeNode = (DatabaseAttributeNode)valueNodes.get(iValueNode);
            for (int iAttrValue = 0; iAttrValue < attributeNode.value().size(); iAttrValue++) {
              DatabaseTextNode textNode = attributeNode.value().get(iAttrValue);
              if ((versionParameter.matches(textNode)) && (textNode.value().equals(keyValue))) {
                matches++;
                break;
              }
            }
View Full Code Here

TOP

Related Classes of org.dbwiki.data.database.DatabaseAttributeNode

Copyright © 2018 www.massapicom. 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.