All Downloads are FREE. Search and download functionalities are using the official Maven repository.

obigen.templates-oasp4j.2.4.1.source-code.context.xml Maven / Gradle / Ivy

There is a newer version: 2.4.3
Show newest version
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<contextConfiguration xmlns="http://capgemini.com/devonfw/cobigen/ContextConfiguration" version="2.1">

    <trigger id="crud_nested_java_server_app" type="java" templateFolder="crud_nested_java_server_app">
        <containerMatcher type="package" value="((.+\.)?([^\.]+))\.([^\.]+)\.dataaccess\.api" retrieveObjectsRecursively="false"/>
        <matcher type="fqn" value="((.+\.)?([^\.]+))\.([^\.]+)\.dataaccess\.api\.([^\.]+)Entity">
            <variableAssignment type="regex" key="rootPackage" value="1"/>
            <variableAssignment type="regex" key="domain" value="3"/>
            <variableAssignment type="regex" key="component" value="4"/>
            <variableAssignment type="regex" key="entityName" value="5"/>
        </matcher>
    </trigger>
    <trigger id="crud_java_server_app" type="java" templateFolder="crud_java_server_app">
        <containerMatcher type="package" value="((.+\.)?([^\.]+))\.([^\.]+)\.dataaccess\.api" retrieveObjectsRecursively="false"/>
        <matcher type="fqn" value="((.+\.)?([^\.]+))\.([^\.]+)\.dataaccess\.api\.([^\.]+)Entity">
            <variableAssignment type="regex" key="rootPackage" value="1"/>
            <variableAssignment type="regex" key="domain" value="3"/>
            <variableAssignment type="regex" key="component" value="4"/>
            <variableAssignment type="regex" key="entityName" value="5"/>
        </matcher>
    </trigger>
    <trigger id="crud_java_server_app_complex" type="java" templateFolder="crud_java_server_app_complex">
      <containerMatcher type="package" value="((.+\.)?([^\.]+))\.([^\.]+)\.dataaccess\.api" retrieveObjectsRecursively="false"/>
      <matcher type="fqn" value="((.+\.)?([^\.]+))\.([^\.]+)\.dataaccess\.api\.([^\.]+)Entity">
        <variableAssignment type="regex" key="rootPackage" value="1"/>
        <variableAssignment type="regex" key="domain" value="3"/>
        <variableAssignment type="regex" key="component" value="4"/>
        <variableAssignment type="regex" key="entityName" value="5"/>
      </matcher>
	</trigger>
    <trigger id="embeddables" type="java" templateFolder="embeddables">
        <!-- <containerMatcher type="package" value="((.+\.)?([^\.]+))\.([^\.]+)\.dataaccess\.api" retrieveObjectsRecursively="false"/>-->
        <matcher type="fqn" value="((.+\.)?([^\.]+))\.([^\.]+)\.dataaccess\.api\.([^\.]+)Embeddable">
            <variableAssignment type="regex" key="rootPackage" value="1"/>
            <variableAssignment type="regex" key="domain" value="3"/>
            <variableAssignment type="regex" key="component" value="4"/>
            <variableAssignment type="regex" key="entityName" value="5"/>
        </matcher>
    </trigger>
    <trigger id="testdata_builder" type="java" templateFolder="testdata_builder">
        <containerMatcher type="package" value="((.+\.)?([^\.]+))\.([^\.]+)\.dataaccess\.api" retrieveObjectsRecursively="false"/>
        <matcher type="fqn" value="((.+\.)?([^\.]+))\.([^\.]+)\.dataaccess\.api\.([^\.]+Entity)">
            <variableAssignment type="regex" key="rootPackage" value="1"/>
            <variableAssignment type="regex" key="domain" value="3"/>
            <variableAssignment type="regex" key="component" value="4"/>
            <variableAssignment type="regex" key="pojoName" value="5"/>
        </matcher>
        <matcher type="fqn" value="((.+\.)?([^\.]+))\.([^\.]+)\.logic\.api\.to\.([^\.]+[E|C]to)">
            <variableAssignment type="regex" key="rootPackage" value="1"/>
            <variableAssignment type="regex" key="domain" value="3"/>
            <variableAssignment type="regex" key="component" value="4"/>
            <variableAssignment type="regex" key="pojoName" value="5"/>
        </matcher>
        <matcher type="expression" value="instanceof java.lang.Enum" accumulationType="NOT"/>
        <matcher type="expression" value="isAbstract" accumulationType="NOT"/>
    </trigger>
    <trigger id="constants_security_permissions" type="xml" templateFolder="constants/security_permissions">
        <matcher type="nodename" value="access-control-schema">
            <variableAssignment type="constant" key="rootPackage" value="io.oasp.gastronomy.restaurant"/>
        </matcher>
    </trigger>
    <trigger id="constants_named_queries" type="xml" templateFolder="constants/named_queries">
        <matcher type="nodename" value="entity-mappings">
            <variableAssignment type="constant" key="rootPackage" value="io.oasp.gastronomy.restaurant"/>
        </matcher>
    </trigger>
    <trigger id="crud_angular_client_app" type="java" templateFolder="crud_angular_client_app">
      <matcher type="fqn" value="((.+\.)?([^\.]+))\.([^\.]+)\.logic\.api\.to\.([^\.]+)Eto">
          <variableAssignment type="regex" key="rootPackage" value="1"/>
          <variableAssignment type="regex" key="domain" value="3"/>
          <variableAssignment type="regex" key="component" value="4"/>
          <variableAssignment type="regex" key="etoName" value="5"/>
      </matcher>
    </trigger>
    <trigger id="crud_openapi_java_server_app" type="openapi" templateFolder="crud_openapi_java_server_app">
      <containerMatcher type="element" value="openAPIFile"/>
      <matcher type="element" value="EntityDef">
        <variableAssignment type="extension" key="rootPackage" value="x-rootpackage"/>
        <variableAssignment type="property" key="component" value="componentName"/>
        <variableAssignment type="property" key="entityName" value="name"/>
      </matcher>
    </trigger>
    <trigger id="crud_openapi_angular_client_app" type="openapi" templateFolder="crud_openapi_angular_client_app">
      <containerMatcher type="element" value="openAPIFile"/>
      <matcher type="element" value="EntityDef">
        <variableAssignment type="constant" key="domain" value="demo"/>
        <variableAssignment type="property" key="component" value="componentName"/>
        <variableAssignment type="property" key="etoName" value="name"/>
      </matcher>
    </trigger>
	<trigger id="crud_ionic_client_app" type="java" templateFolder="crud_ionic_client_app">
      <matcher type="fqn" value="((.+\.)?([^\.]+))\.([^\.]+)\.logic\.api\.to\.([^\.]+)Eto">
          <variableAssignment type="regex" key="rootPackage" value="1"/>
          <variableAssignment type="regex" key="domain" value="3"/>
          <variableAssignment type="regex" key="component" value="4"/>
          <variableAssignment type="regex" key="etoName" value="5"/>
      </matcher>
    </trigger>
    <trigger id="REST_Docs" type="java" templateFolder="crud_java_server_docs">
      <containerMatcher type="package" value="((.+\.)?([^\.]+))\.([^\.]+)\.service\.api\.rest" retrieveObjectsRecursively="false"/>
      <matcher type="fqn" value="((.+\.)?([^\.]+))\.([^\.]+)\.service\.api\.rest\.([^\.]+)RestService">
        <variableAssignment type="regex" key="rootPackage" value="1"/>
        <variableAssignment type="regex" key="domain" value="3"/>
        <variableAssignment type="regex" key="component" value="4"/>
        <variableAssignment type="regex" key="entityName" value="5"/>
      </matcher>
    </trigger>
</contextConfiguration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy