Package edu.mit.simile.backstage.util

Examples of edu.mit.simile.backstage.util.ScriptableArrayBuilder.toArray()


              _logger.error("Error querying for restricted items", e);
          }
         
          result.put("count", result, count);
          result.put("items", result, itemIDs.toArray());
          result.put("lenses", result, lenses.toArray());
     
            _logger.debug("< internalRun");
          return result;
    }
    }
View Full Code Here


          }
    } catch (Exception e) {
      _logger.error("", e);
    }
   
    result.put("content", result, arrayBuilder.toArray());
  }
 
  protected Object generateInnerContentWithInnerTemplates(Value value, Database database, SailRepositoryConnection connection) {
    ScriptableArrayBuilder arrayBuilder = new ScriptableArrayBuilder();
    for (LensNode node : _children) {
View Full Code Here

            ((DomLensNode) node).render(value, o, database, connection);
           
        arrayBuilder.add(o);
      }
    }
    return arrayBuilder.toArray();
  }
 
  protected void generateContent(Value value, Scriptable result, Database database, SailRepositoryConnection connection) {
    ScriptableArrayBuilder arrayBuilder = new ScriptableArrayBuilder();
    String valueType = "text";
View Full Code Here

      e.printStackTrace();
    }
   
        DefaultScriptableObject o = new DefaultScriptableObject();
        o.put("valueType", o, valueType);
        o.put("values", o, arrayBuilder.toArray());
       
    result.put("content", result, o);
  }
 
  protected void generateContentAttributes(Value value, Scriptable result, Database database, SailRepositoryConnection connection) {
View Full Code Here

      }
     
      arrayBuilder.add(o);
    }
   
    result.put("contentAttributes", result, arrayBuilder.toArray());
  }
 
  protected void generateSubcontentAttributes(Value value, Scriptable result, Database database, SailRepositoryConnection connection) {
    ScriptableArrayBuilder arrayBuilder = new ScriptableArrayBuilder();
   
View Full Code Here

          o.put("value", o, sb.toString());
         
      arrayBuilder.add(o);
    }
   
    result.put("subcontentAttributes", result, arrayBuilder.toArray());
  }
 
  protected Object renderInnerValue(Value value, Database database, SailRepositoryConnection connection) {
    if (value instanceof URI) {
      return renderInnerItem((URI) value, database, connection);
View Full Code Here

        } else {
          for (Value value : values) {
            valueArrayBuilder.add(Utilities.valueToString(value));
          }
        }
        o.put("values", o, valueArrayBuilder.toArray());
       
        propertiesO.put(propertyID, propertiesO, o);
      }
     
      result.put("propertyValues", result, propertiesO);
View Full Code Here

                selectionCount++;
              }
          }
      }
     
        result.put("values", result, facetChoicesWithSelection.toArray());
        result.put("selectionCount", result, selectionCount);
       
        return result;
    }
   
View Full Code Here

             
          arrayBuilder.add(o);
        }
      }
     
      result.put("children", result, arrayBuilder.toArray());
    }
  }
 
  protected boolean testCondition(Value value, Scriptable result, Database database, SailRepositoryConnection connection) {
    if (_conditionTest == null) {
View Full Code Here

            if (state != null) {
                state.put("id", state, c.getID());
                states.add(state);
            }
        }
        return states.toArray();
    }
   
    public NativeArray getComponentUpdateArray() {
        return _componentUpdates.toArray();
    }
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.