コード例 #1
0
 /**
  * Recursively save all requested properties to check the result properties against.
  *
  * @param queryTree query tree to process
  */
 private void processRequestedProperties(TreeNode<QueryInfo> queryTree) {
   QueryInfo queryInfo = queryTree.getObject();
   if (queryInfo != null) {
     Resource.Type type = queryInfo.getResource().getType();
     Set<String> properties = m_originalProperties.get(type);
     if (properties == null) {
       properties = new HashSet<String>();
       m_originalProperties.put(type, properties);
     }
     properties.addAll(queryInfo.getProperties());
     for (TreeNode<QueryInfo> child : queryTree.getChildren()) {
       processRequestedProperties(child);
     }
   }
 }