コード例 #1
0
 public static Translator createExcludesListTranslator14() {
   GenericTranslator result =
       new GenericTranslator(EXCLUDE_LIST, EJB_PKG.getAssemblyDescriptor_ExcludeList());
   result.setChildren(
       new Translator[] {
         IDTranslator.INSTANCE,
         CommonTranslators.createDescriptionTranslator(EJB_PKG.getExcludeList_Descriptions()),
         createMethodElementTranslators14(EJB_PKG.getExcludeList_MethodElements())
       });
   return result;
 }
コード例 #2
0
 private static Translator createRelationshipRoleSourceTranslator14() {
   GenericTranslator result =
       new GenericTranslator(RELATIONSHIP_ROLE_SOURCE, EJB_PKG.getEJBRelationshipRole_Source());
   result.setChildren(
       new Translator[] {
         IDTranslator.INSTANCE,
         CommonTranslators.createDescriptionTranslator(EJB_PKG.getRoleSource_Descriptions()),
         ROLE_SOURCE_EJB_NAME_SOURCELINK_TRANSLATOR
       });
   return result;
 }
コード例 #3
0
 public static Translator createMethodElementTranslators14(EStructuralFeature eFeature) {
   GenericTranslator result = new GenericTranslator(METHOD, eFeature);
   result.setChildren(
       new Translator[] {
         IDTranslator.INSTANCE,
         CommonTranslators.createDescriptionTranslator(EJB_PKG.getMethodElement_Descriptions()),
         METHOD_ELEMENT_EJB_NAME_SOURCELINK_TRANSLATOR,
         METHOD_ELEMENT_KIND_TRANSLATOR,
         METHOD_NAME_TRANSLATOR,
         METHOD_PARAM_TRANSLATOR
       });
   return result;
 }
コード例 #4
0
  // TODO: NEED TO FIGURE OUT SECURITY PATH
  public static Translator createSecurityRoleTranslator14() {
    GenericTranslator result =
        new GenericTranslator(SECURITY_ROLE, EJB_PKG.getAssemblyDescriptor_SecurityRoles());
    result.setChildren(
        new Translator[] {
          IDTranslator.INSTANCE,
          CommonTranslators.createDescriptionTranslator(
              CommonPackage.eINSTANCE.getSecurityRole_Descriptions()),
          SEC_ROLE_NAME_TRANSLATOR
        });

    return result;
  }
コード例 #5
0
 /** J2EE 1.4 Relationship */
 public static Translator createRelationshipsTranslator14() {
   GenericTranslator result =
       new GenericTranslator(RELATIONSHIPS, EJB_PKG.getEJBJar_RelationshipList());
   result.setChildren(
       new Translator[] {
         IDTranslator.INSTANCE,
         CommonTranslators.createDescriptionTranslator(EJB_PKG.getRelationships_Descriptions()),
         createEJBRelationsTranslator14(),
         //
         //	CommonTranslators.createDeploymentExtensionTranslator(EJB_PKG.getRelationships_Extensions())
       });
   return result;
 }
コード例 #6
0
  public static Translator createMethodPermissionTranslator14() {
    GenericTranslator result =
        new GenericTranslator(METHOD_PERMISSION, EJB_PKG.getAssemblyDescriptor_MethodPermissions());
    result.setChildren(
        new Translator[] {
          IDTranslator.INSTANCE,
          CommonTranslators.createDescriptionTranslator(EJB_PKG.getMethodPermission_Descriptions()),
          UNCHECKED_TRANSLATOR,
          METHOD_PERMISSION_ROLE_NAME_SOURCELINK_TRANSLATOR,
          createMethodElementTranslators14(EJB_PKG.getMethodPermission_MethodElements())
        });

    return result;
  }
コード例 #7
0
 private static Translator createCMRFieldTranslator14() {
   GenericTranslator result =
       new GenericTranslator(CMR_FIELD, EJB_PKG.getEJBRelationshipRole_CmrField());
   result.setChildren(
       new Translator[] {
         IDTranslator.INSTANCE,
         CommonTranslators.createDescriptionTranslator(EJB_PKG.getCMPAttribute_Descriptions()),
         CMR_FIELD_NAME_TRANSLATOR,
         CMR_FIELD_TYPE_TRANSLATOR,
         //
         //	CommonTranslators.createDeploymentExtensionTranslator(EJB_PKG.getCMPAttribute_Extensions())
       });
   return result;
 }
コード例 #8
0
 private static Translator createEJBRelationsTranslator14() {
   GenericTranslator result =
       new GenericTranslator(EJB_RELATION, EJB_PKG.getRelationships_EjbRelations());
   result.setChildren(
       new Translator[] {
         IDTranslator.INSTANCE,
         CommonTranslators.createDescriptionTranslator(EJB_PKG.getEJBRelation_Descriptions()),
         EJB_RELATION_NAME_TRANSLATOR,
         createEJBRelationshipRoleTranslator14(),
         //
         //	CommonTranslators.createDeploymentExtensionTranslator(EJB_PKG.getEJBRelation_Extensions())
       });
   return result;
 }
コード例 #9
0
  public static Translator createMethodTransactionTranslator14() {
    GenericTranslator result =
        new GenericTranslator(
            CONTAINER_TRANSACTION, EJB_PKG.getAssemblyDescriptor_MethodTransactions());
    result.setChildren(
        new Translator[] {
          IDTranslator.INSTANCE,
          CommonTranslators.createDescriptionTranslator(
              EJB_PKG.getMethodTransaction_Descriptions()),
          createMethodElementTranslators14(EJB_PKG.getMethodTransaction_MethodElements()),
          TRANS_ATTRIBUTE_TRANSLATOR
        });

    return result;
  }
コード例 #10
0
 /*
  * J2EE 1.4 Assembly Descriptor
  */
 public static Translator createAssemblyDescriptorTranslator14() {
   GenericTranslator result =
       new GenericTranslator(ASSEMBLY_DESCRIPTOR, EJB_PKG.getEJBJar_AssemblyDescriptor());
   result.setChildren(
       new Translator[] {
         IDTranslator.INSTANCE,
         createSecurityRoleTranslator14(),
         createMethodPermissionTranslator14(),
         createMethodTransactionTranslator14(),
         CommonTranslators.createMessageDestinationTranslator(
             EJB_PKG.getAssemblyDescriptor_MessageDestinations()),
         createExcludesListTranslator14(),
         //
         //	CommonTranslators.createDeploymentExtensionTranslator(EJB_PKG.getAssemblyDescriptor_Extensions())
       });
   return result;
 }
コード例 #11
0
 private static Translator createEJBRelationshipRoleTranslator14() {
   GenericTranslator result =
       new GenericTranslator(EJB_RELATIONSHIP_ROLE, EJB_PKG.getEJBRelation_RelationshipRoles());
   result.setChildren(
       new Translator[] {
         IDTranslator.INSTANCE,
         CommonTranslators.createDescriptionTranslator(
             EJB_PKG.getEJBRelationshipRole_Descriptions()),
         EJB_RELATIONSHIP_ROLE_NAME_TRANSLATOR,
         MULTIPLICITY_TRANSLATOR,
         CASCADE_DELETE_TRANSLATOR,
         createRelationshipRoleSourceTranslator14(),
         createCMRFieldTranslator14(),
         //
         //	CommonTranslators.createDeploymentExtensionTranslator(EJB_PKG.getEJBRelationshipRole_Extensions())
       });
   return result;
 }