Tabnine Logo
ElementInstance.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
se.cambio.cds.model.instance.ElementInstance
constructor

Best Java code snippets using se.cambio.cds.model.instance.ElementInstance.<init> (Showing top 2 results out of 315)

origin: org.gdl-lang.gdl-tools/cds-core

private static void checkForMissingPathsInEHR(
    ElementInstanceCollection ehrEIC,
    ElementInstanceCollection generatedEIC) {
  Map<String, ArchetypeReference> compressedARsMap = getCompressedQueryArchetypeReferencesMap(generatedEIC.getAllArchetypeReferences());
  for (ArchetypeReference ar : ehrEIC.getAllArchetypeReferences()) {
    ArchetypeReference compressedAR = compressedARsMap.get(ar.getIdArchetype());
    if (compressedAR != null) {
      for (String elementId : compressedAR.getElementInstancesMap().keySet()) {
        if (!ar.getElementInstancesMap().containsKey(elementId)) {
          new ElementInstance(elementId, null, ar, null, OpenEHRConstUI.NULL_FLAVOUR_CODE_NO_INFO);
        }
      }
    }
  }
}
origin: org.gdl-lang.gdl-tools/cds-gui-swing

public DVGenericPanel createDVGenericPanel(ElementInstance elementInstance) {
  if (!Domains.CDS_ID.equals(elementInstance.getArchetypeReference().getIdDomain())
      && elementInstance instanceof PredicateGeneratedElementInstance) {
    elementInstance = new ElementInstance(
        elementInstance.getId(),
        null,
        elementInstance.getArchetypeReference(),
        null,
        OpenEHRConstUI.NULL_FLAVOUR_CODE_NO_INFO);
  }
  DVGenericPanel dvGenericPanel = getDVGenericForElement(elementInstance);
  for (JComponent component : dvGenericPanel.getJComponents()) {
    if (component instanceof JDateChooser) {
      ((JDateChooser) component).getDateEditor().getUiComponent().addFocusListener(new DVGenericComponentFocusAdapter(dvGenericPanel, elementInstance));
    } else {
      component.addFocusListener(new DVGenericComponentFocusAdapter(dvGenericPanel, elementInstance));
    }
    if (Domains.CDS_ID.equals(elementInstance.getArchetypeReference().getIdDomain())
        || elementInstance instanceof PredicateGeneratedElementInstance) {
      DvSwingManager.disable(component);
    }
  }
  return dvGenericPanel;
}
se.cambio.cds.model.instanceElementInstance<init>

Popular methods of ElementInstance

  • getArchetypeReference
  • getId
  • getDataValue
  • clone
  • setArchetypeReference
  • setDataValue
  • setNullFlavour

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Best plugins for Eclipse
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