Codota Logo
ArchetypeBinding.getTemplateId
Code IndexAdd Codota to your IDE (free)

How to use
getTemplateId
method
in
se.cambio.cds.gdl.model.ArchetypeBinding

Best Java code snippets using se.cambio.cds.gdl.model.ArchetypeBinding.getTemplateId (Showing top 5 results out of 315)

origin: org.gdl-lang.gdl-tools/gdl-graph

private String getArchetypeKey(ArchetypeBinding archetypeBinding) {
  return archetypeBinding.getDomain() + "|" + archetypeBinding.getArchetypeId() + archetypeBinding.getTemplateId();
}
origin: org.gdl-lang.gdl-tools/cds-core

  private void generateGTCodeMapForElementBinding(
      ArchetypeBinding archetypeBinding, ArchetypeInstantiationRuleLine airl, ElementBinding elementBinding) {
    ArchetypeElementInstantiationRuleLine aeirl =
        new ArchetypeElementInstantiationRuleLine(airl);
    aeirl.setReadableGuide(readableGuide);
    aeirl.setGTCode(elementBinding.getId());
    if ("/event/time".equals(elementBinding.getPath())) {
      elementBinding.setPath(OpenEHRRMUtil.EVENT_TIME_PATH);
    }
    String elementId =
        archetypeBinding.getArchetypeId() + elementBinding.getPath();
    ArchetypeElementVO archetypeElementVO =
        archetypeManager.getArchetypeElements().getArchetypeElement(
            archetypeBinding.getTemplateId(),
            elementId);
    if (archetypeElementVO == null) {
      throw new RuntimeException(
          "Element '" + elementId
              + (archetypeBinding.getTemplateId() != null ? " (" + archetypeBinding.getTemplateId() + ")" : "")
              + "' not found!");
    }
    aeirl.setArchetypeElementVO(archetypeElementVO);
    gtCodeElementMap.put(elementBinding.getId(), aeirl);
  }
}
origin: org.gdl-lang.gdl-tools/cds-core

private void generateGtCodeMapForArchetypeBinding(ArchetypeBinding archetypeBinding) throws InternalErrorException {
  ArchetypeInstantiationRuleLine airl =
      new ArchetypeInstantiationRuleLine();
  airl.setReadableGuide(readableGuide);
  airl.setGTCode(archetypeBinding.getId());
  ArchetypeReference ar =
      new ArchetypeReference(
          archetypeBinding.getDomain(),
          archetypeBinding.getArchetypeId(),
          archetypeBinding.getTemplateId());
  airl.setArchetypeReference(ar);
  gtCodeElementMap.put(archetypeBinding.getId(), airl);
  if (archetypeBinding.getElements() != null) {
    for (ElementBinding elementBinding : archetypeBinding.getElements().values()) {
      generateGTCodeMapForElementBinding(archetypeBinding, airl, elementBinding);
    }
  }
}
origin: org.gdl-lang.gdl-tools/cds-core

private static GeneratedArchetypeReference getGeneratedArchetypeReference(
    ArchetypeBinding archetypeBinding, String guideId, Guide guide, DateTime dateTime, boolean resolvePredicates) {
  GeneratedArchetypeReference ar =
      new GeneratedArchetypeReference(
          archetypeBinding.getDomain(),
          archetypeBinding.getArchetypeId(),
          archetypeBinding.getTemplateId());
  if (archetypeBinding.getElements() != null) {
    for (ElementBinding elementBinding : archetypeBinding.getElements().values()) {
      String idElement =
          archetypeBinding.getArchetypeId() + elementBinding.getPath();
      GeneratedElementInstance gei = new GeneratedElementInstance(
          idElement,
          null,
          ar,
          null,
          NULL_FLAVOUR_CODE_NO_INFO);
      gei.getRuleReferences().add(new RuleReference(guideId, elementBinding.getId()));
    }
  }
  generatePredicateElements(archetypeBinding, ar, guideId, guide, dateTime, resolvePredicates);
  return ar;
}
origin: org.gdl-lang.gdl-tools/cds-core

  ArchetypeElementVO archetypeElementVO =
      airl.getArchetypeManager().getArchetypeElements().getArchetypeElement(
          archetypeBinding.getTemplateId(),
          archetypeBinding.getArchetypeId() + path);
  if (archetypeElementVO == null) {
    throw new RuntimeException(
        "Element '" + archetypeBinding.getArchetypeId() + path
            + (archetypeBinding.getTemplateId() != null ? " (" + archetypeBinding.getTemplateId() + ")" : "")
            + "' not found!");
  ArchetypeElementVO archetypeElementVO =
      airl.getArchetypeManager().getArchetypeElements().getArchetypeElement(
          archetypeBinding.getTemplateId(),
          archetypeBinding.getArchetypeId() + path);
  if (archetypeElementVO == null) {
    throw new RuntimeException(
        "Element '" + archetypeBinding.getArchetypeId() + path
            + (archetypeBinding.getTemplateId() != null ? " (" + archetypeBinding.getTemplateId()
            + ")" : "") + "' not found!");
ArchetypeElementVO archetypeElementVO =
    airl.getArchetypeManager().getArchetypeElements().getArchetypeElement(
        archetypeBinding.getTemplateId(),
        archetypeBinding.getArchetypeId() + path);
if (archetypeElementVO == null) {
  throw new RuntimeException(
      "Element '" + archetypeBinding.getArchetypeId() + path
          + (archetypeBinding.getTemplateId() != null ? " (" + archetypeBinding.getTemplateId() + ")" : "")
          + "' not found!");
se.cambio.cds.gdl.modelArchetypeBindinggetTemplateId

Popular methods of ArchetypeBinding

  • getArchetypeId
  • getDomain
  • getElements
  • getId
  • getPredicateStatements
  • getPredicates
  • setPredicateStatements

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • getSystemService (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now