Package gate.creole

Examples of gate.creole.ExecutionException


    startup();
  }

  public void startup() throws ExecutionException {
    if (getAnnotationSpecifications() == null || getAnnotationSpecifications().isEmpty()) {
      throw new ExecutionException("SourceSpecifications must not be empty");
    }
    if(insertSpace) {
      processingOptions.put("separator"," ");
    } else {
      if(processingOptions.containsKey("separator")) {
        processingOptions.remove("separator");
      }
    }
    try {
      annotatedDocumentTransformer =
        new AnnotatedDocumentTransformer(
        getAnnotationSpecifications(), processingOptions,
        false, true);
    } catch (InvalidNameException ex) {
      throw new ExecutionException(ex);
    }

  }
View Full Code Here


  }

  public void startup() throws ExecutionException {
  if(getSourceSpecifications() == null ||
     getSourceSpecifications().size() == 0) {
    throw new ExecutionException("SourceSpecifications must not be empty");
  }
  sourceSpecificationsVector = new Vector<String>(sourceSpecifications);
  try {
    annotatedDocumentTransformer =
      new AnnotatedDocumentTransformer(
        getSourceSpecifications(),
              getProcessingOptions(),
              false, false);
  } catch (InvalidNameException ex) {
    throw new ExecutionException(ex);
  }   
  }
View Full Code Here

    fireStatusChanged("ExportContainedAnnotationsPR processing: "
            + getDocument().getName());

    //check the input
    if(document == null) {
      throw new ExecutionException(
        "No document to process!"
      );
    }

    String fileName;
View Full Code Here

  }

  public void startup() throws ExecutionException {
    if(getContainedAnnotationTypeName() == null ||
       getContainedAnnotationTypeName().equals("")) {
    throw new ExecutionException("Contained Annotation Type Name must be specified");
  }
    // TODO: more parameter checking!
  try {
    directoryFile = new File(directoryUrl.toURI());
  } catch (URISyntaxException ex) {
    throw new ExecutionException(ex);
 
  }
View Full Code Here

  startup();
}

public void startup() throws ExecutionException {
    if(getAnnotationSpecifications() == null || getAnnotationSpecifications().size() == 0) {
        throw new ExecutionException("SrouceSpecifications must not be empty");
      }
      try {
        annotatedDocumentTransformer =
                new AnnotatedDocumentTransformer(
                getAnnotationSpecifications(), getProcessingOptions(),
                false,true);
        // For now we explicitly define that we do the backward mapping but
        // not the forward mapping.
        // TODO: Once we do optional forward mapping of annotations we have to make
        // this dependent on whether we map forward annotations.
      } catch (InvalidNameException ex) {
        throw new ExecutionException(ex);
      }
      if(languageAnalyser == null) {
        throw new ExecutionException("Language Analyser PR not set!");
      }
 
}
View Full Code Here

  startup();
}

public void startup() throws ExecutionException {
  if(getInputSpecification() == null || getInputSpecification().isEmpty()) {
    throw new ExecutionException("InputSpecification must be specified");
  }
  if(getOutputFeature() == null || getOutputFeature().isEmpty()) {
    throw new ExecutionException("OutputFeature must be specified");
  }
  if(getVirtualSpecification() == null || getVirtualSpecification().isEmpty()) {
    throw new ExecutionException("VirtualSpecification must be specified");
  }
  if(languageAnalyser == null) {
    throw new ExecutionException("Language Analyser PR not set!");
  }
 
  String specfields[];
  specfields = splitSpecification(getInputSpecification());
  inputSpecificationSet = specfields[0];
  inputSpecificationType = specfields[1];
  inputSpecificationFeature = specfields[2];
 
  specfields = splitSpecification(getVirtualSpecification());
  virtualSpecificationSet = specfields[0];
  virtualSpecificationType = specfields[1];
  virtualSpecificationFeature = specfields[2];
  if(virtualSpecificationFeature == null) {
    throw new ExecutionException("VirtualSpecification must include a feature name");
  }
  if(separatorString != null && !separatorString.isEmpty()) {
    actualSeparatorString = Strings.unescape(separatorString);
  } else {
    actualSeparatorString = "";
View Full Code Here

      new AnnotatedDocumentTransformer(
             getSourceSpecifications(), getProcessingOptions(),
                   // TODO: for now no mappings, add!
                   false, false);
   } catch (InvalidNameException ex) {
     throw new ExecutionException(ex);
   }
  } 
View Full Code Here

          new AnnotatedDocumentTransformer(
          getSourceSpecifications(), getProcessingOptions(),
          forwardcopy, false);
      }
    } catch (InvalidNameException ex) {
      throw new ExecutionException(ex);
    }
  }
View Full Code Here

   public void doExecute(Document theDocument) throws ExecutionException {
    interrupted = false;
    //check the input
    if(theDocument == null) {
      throw new ExecutionException(
        "No document to process!"
      );
    }

    AnnotationSet inputAS = null;
View Full Code Here

   public void doExecute(Document theDocument) throws ExecutionException {
    interrupted = false;
    //check the input
    if(theDocument == null) {
      throw new ExecutionException(
        "No document to process!"
      );
    }

    AnnotationSet inputAS = null;
View Full Code Here

TOP

Related Classes of gate.creole.ExecutionException

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.