Examples of AutomatonDocument


Examples of org.waveprotocol.wave.model.document.operation.automaton.AutomatonDocument

  public void consumeMethodsTestOneRun(RandomProvider random,
      RandomDocOpGenerator.Parameters params) throws OperationException {
    IndexedDocument<Node, Element, Text> doc =
      new IndexedDocumentImpl<Node, Element, Text, Void>(RawDocumentImpl.PROVIDER.parse("<a></a>"),
          new AnnotationTree<Object>("a", "b", null), DocumentSchema.NO_SCHEMA_CONSTRAINTS);
    AutomatonDocument autoDoc = Automatons.fromReadable(doc);

    ModifiableDocument checkDoc;
    IsDocOp checkDocOpProvider;
    AutomatonDocument checkAuto;

    // Set to false for faster test runs
    boolean checkAgainstBootstrapDocument = true;
    if (checkAgainstBootstrapDocument) {
      BootstrapDocument bootstrapDoc = new BootstrapDocument();
View Full Code Here

Examples of org.waveprotocol.wave.model.document.operation.automaton.AutomatonDocument

    RandomDocOpGenerator.Parameters params = PARAM_SETS[0];
    DocumentSchema constraints = DocumentSchema.NO_SCHEMA_CONSTRAINTS;
    IndexedDocument<Node, Element, Text> doc =
      new IndexedDocumentImpl<Node, Element, Text, Void>(RawDocumentImpl.PROVIDER.parse("<a></a>"),
          new AnnotationTree<Object>("a", "b", null), constraints);
    AutomatonDocument autoDoc = Automatons.fromReadable(doc);

    final boolean testAsOperation = true;
    final boolean testNindos = true;
    final int NUM_OPS = 200;
View Full Code Here

Examples of org.waveprotocol.wave.model.document.operation.automaton.AutomatonDocument

   * @return an automaton view of the given document
   */
  public static <N, E extends N, T extends N> AutomatonDocument fromReadable(
      final ReadableWDocument<N, E, T> doc) {

    return new AutomatonDocument() {

      @Override
      public AnnotationMap annotationsAt(final int pos) {
        Preconditions.checkElementIndex(pos, doc.size());
        class AnnoMap extends HashMap<String, String> implements AnnotationMap {
View Full Code Here

Examples of org.waveprotocol.wave.model.document.operation.automaton.AutomatonDocument

   * @return an automaton view of the given document
   */
  public static <N, E extends N, T extends N> AutomatonDocument fromReadable(
      final ReadableWDocument<N, E, T> doc) {

    return new AutomatonDocument() {

      @Override
      public AnnotationMap annotationsAt(final int pos) {
        Preconditions.checkElementIndex(pos, doc.size());
        class AnnoMap extends HashMap<String, String> implements AnnotationMap {
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.