Package org.dbwiki.data.database

Examples of org.dbwiki.data.database.ResultAttributeNode


       
    if(!_rename)
      outputNode = node;
    else {
      if(node.isAttribute()) {
        ResultAttributeNode result = new ResultAttributeNode((AttributeSchemaNode)_schema, node.getTimestamp());
        DatabaseNodeValue value = ((DatabaseAttributeNode)node).value();
        for(int i = 0; i < value.size(); i++) {
          result.value().add(value.get(i));
        }
        outputNode = result;
      } else if(node.isGroup()) {
        ResultGroupNode result = new ResultGroupNode((GroupSchemaNode)_schema, node.getTimestamp());
        DatabaseElementList children = ((DatabaseGroupNode)node).children();
        for(int i = 0; i < children.size(); i++) {
          result.children().add(children.get(i));
        }
        outputNode = result;
      }
    }
     
View Full Code Here

TOP

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

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.