Tabnine Logo
ExportedAnnotationLayer.getValidationMode
Code IndexAdd Tabnine to your IDE (free)

How to use
getValidationMode
method
in
de.tudarmstadt.ukp.clarin.webanno.export.model.ExportedAnnotationLayer

Best Java code snippets using de.tudarmstadt.ukp.clarin.webanno.export.model.ExportedAnnotationLayer.getValidationMode (Showing top 2 results out of 315)

origin: webanno/webanno

@Deprecated
public static void setLayer(AnnotationSchemaService aAnnotationService, AnnotationLayer aLayer,
    ExportedAnnotationLayer aExLayer,
    Project aProject, User aUser)
  throws IOException
{
  aLayer.setAllowStacking(aExLayer.isAllowStacking());
  aLayer.setBuiltIn(aExLayer.isBuiltIn());
  aLayer.setReadonly(aExLayer.isReadonly());
  aLayer.setCrossSentence(aExLayer.isCrossSentence());
  aLayer.setDescription(aExLayer.getDescription());
  aLayer.setEnabled(aExLayer.isEnabled());
  if (aExLayer.getAnchoringMode() == null) {
    // This allows importing old projects which did not have the anchoring mode yet
    aLayer.setAnchoringMode(aExLayer.isLockToTokenOffset(), aExLayer.isMultipleTokens());
  }
  else {
    aLayer.setAnchoringMode(aExLayer.getAnchoringMode());
  }
  aLayer.setValidationMode(aExLayer.getValidationMode() != null ? aExLayer.getValidationMode()
      : ValidationMode.NEVER);
  aLayer.setLinkedListBehavior(aExLayer.isLinkedListBehavior());
  aLayer.setUiName(aExLayer.getUiName());
  aLayer.setName(aExLayer.getName());
  aLayer.setProject(aProject);
  aLayer.setType(aExLayer.getType());
  aAnnotationService.createLayer(aLayer);
}
origin: webanno/webanno

public void importLayer(AnnotationLayer aLayer, ExportedAnnotationLayer aExLayer,
    Project aProject)
  throws IOException
{
  aLayer.setAllowStacking(aExLayer.isAllowStacking());
  aLayer.setBuiltIn(aExLayer.isBuiltIn());
  aLayer.setReadonly(aExLayer.isReadonly());
  aLayer.setCrossSentence(aExLayer.isCrossSentence());
  aLayer.setDescription(aExLayer.getDescription());
  aLayer.setEnabled(aExLayer.isEnabled());
  if (aExLayer.getAnchoringMode() == null) {
    // This allows importing old projects which did not have the anchoring mode yet
    aLayer.setAnchoringMode(aExLayer.isLockToTokenOffset(), aExLayer.isMultipleTokens());
  }
  else {
    aLayer.setAnchoringMode(aExLayer.getAnchoringMode());
  }
  aLayer.setValidationMode(aExLayer.getValidationMode() != null ? aExLayer.getValidationMode()
      : ValidationMode.NEVER);
  aLayer.setLinkedListBehavior(aExLayer.isLinkedListBehavior());
  aLayer.setUiName(aExLayer.getUiName());
  aLayer.setName(aExLayer.getName());
  aLayer.setProject(aProject);
  aLayer.setType(aExLayer.getType());
  annotationService.createLayer(aLayer);
}
de.tudarmstadt.ukp.clarin.webanno.export.modelExportedAnnotationLayergetValidationMode

Popular methods of ExportedAnnotationLayer

  • getName
  • getType
  • <init>
  • getAnchoringMode
  • getAttachFeature
  • getAttachType
  • getDescription
  • getFeatures
  • getUiName
  • isAllowStacking
  • isBuiltIn
  • isCrossSentence
  • isBuiltIn,
  • isCrossSentence,
  • isEnabled,
  • isLinkedListBehavior,
  • isLockToTokenOffset,
  • isMultipleTokens,
  • isReadonly,
  • setAllowStacking,
  • setAnchoringMode

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • scheduleAtFixedRate (Timer)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now