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

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

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

origin: de.tudarmstadt.ukp.clarin.webanno/webanno-export

@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.setLinkedListBehavior(aExLayer.isLinkedListBehavior());
  aLayer.setUiName(aExLayer.getUiName());
  aLayer.setName(aExLayer.getName());
  aLayer.setProject(aProject);
  aLayer.setType(aExLayer.getType());
  aAnnotationService.createLayer(aLayer);
}
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: de.tudarmstadt.ukp.clarin.webanno/webanno-api-dao

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.setLinkedListBehavior(aExLayer.isLinkedListBehavior());
  aLayer.setUiName(aExLayer.getUiName());
  aLayer.setName(aExLayer.getName());
  aLayer.setProject(aProject);
  aLayer.setType(aExLayer.getType());
  annotationService.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.modelExportedAnnotationLayerisReadonly

Popular methods of ExportedAnnotationLayer

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Permission (java.security)
    Legacy security code; do not use.
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JLabel (javax.swing)
  • JTable (javax.swing)
  • Github Copilot alternatives
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