Examples of addMapping()


Examples of org.apache.myfaces.extensions.validator.core.initializer.configuration.StaticInMemoryConfiguration.addMapping()

        ExtValContext.getContext().denyRendererInterceptor(ValidationInterceptor.class);
        ExtValContext.getContext().registerRendererInterceptor(new PropertyValidationModuleValidationInterceptor());

        StaticInMemoryConfiguration config = new StaticInMemoryConfiguration();
        //it's just required to set the target
        config.addMapping(CommonMetaDataKeys.SKIP_VALIDATION, SkipValidationSupport.class.getName());

        ExtValContext.getContext()
                .addStaticConfiguration(StaticConfigurationNames.SKIP_VALIDATION_SUPPORT_CONFIG, config);

        //config.addMapping(CommonMetaDataKeys.SKIP_VALIDATION, RequiredStrategy.class.getName());
View Full Code Here

Examples of org.apache.stanbol.entityhub.core.mapping.DefaultFieldMapperImpl.addMapping()

            for (String configuredMapping : siteConfiguration.getFieldMappings()) {
                FieldMapping mapping =
                        FieldMappingUtils.parseFieldMapping(configuredMapping, nsPrefixService);
                if (mapping != null) {
                    log.debug("   - add FieldMapping {}", mapping);
                    fieldMappings.addMapping(mapping);
                }
            }
        }
        // now init the referenced Services
        initDereferencerAndEntitySearcher();
View Full Code Here

Examples of org.apache.stanbol.entityhub.servicesapi.mapping.FieldMapper.addMapping()

        if (mappings instanceof String[] && ((String[]) mappings).length > 0) {
            configuredMappings = new DefaultFieldMapperImpl(ValueConverterFactory.getDefaultInstance());
            for (String mappingString : (String[]) mappings) {
                FieldMapping fieldMapping = FieldMappingUtils.parseFieldMapping(mappingString, nsPrefixService);
                if (fieldMapping != null) {
                    configuredMappings.addMapping(fieldMapping);
                }
            }
            //check if there are valid mappings
            if (configuredMappings.getMappings().isEmpty()) {
                configuredMappings = null; //if no mappings where found set to null
View Full Code Here

Examples of org.apache.syncope.client.to.ResourceTO.addMapping()

        SchemaMappingTO schemaMappingTO = new SchemaMappingTO();
        schemaMappingTO.setExtAttrName("uid");
        schemaMappingTO.setIntAttrName("userId");
        schemaMappingTO.setIntMappingType(IntMappingType.UserSchema);
        schemaMappingTO.setAccountid(true);
        resourceTO.addMapping(schemaMappingTO);
        // ----------------------------------------

        // ----------------------------------------
        // Check connection without saving the resource ....
        // ----------------------------------------
View Full Code Here

Examples of org.apache.syncope.core.persistence.beans.ExternalResource.addMapping()

        accountId.setAccountid(true);
        accountId.setExtAttrName("username");
        accountId.setIntAttrName("fullname");
        accountId.setIntMappingType(IntMappingType.SyncopeUserId);

        resource.addMapping(accountId);

        ConnInstance connector = resourceDAO.find("ws-target-resource-1").getConnector();

        resource.setConnector(connector);
View Full Code Here

Examples of org.apache.uima.ResourceSpecifierFactory.addMapping()

           
            //
            // For object creation
            //
            ResourceSpecifierFactory factory = UIMAFramework.getResourceSpecifierFactory();
            factory.addMapping("org.apache.uima.aae.deployment.AEDeploymentDescription",
                    "org.apache.uima.aae.deployment.impl.AEDeploymentDescription_Impl");
            factory.addMapping("org.apache.uima.aae.deployment.AEDeploymentMetaData",
                    "org.apache.uima.aae.deployment.impl.AEDeploymentMetaData_Impl");
            factory.addMapping("org.apache.uima.aae.deployment.RemoteAEDeploymentMetaData",
            "org.apache.uima.aae.deployment.impl.RemoteAEDeploymentMetaData_Impl");
View Full Code Here

Examples of org.apache.uima.util.XMLParser.addMapping()

      MetaDataObject_impl newApple2 = (MetaDataObject_impl) unknownFruit.clone();
      newApple2.buildFromXMLElement(apple2xmlDoc.getDocumentElement(), xmlp);
      MetaDataObject_impl newOrange = (MetaDataObject_impl) unknownFruit.clone();
      newOrange.buildFromXMLElement(orangeXmlDoc.getDocumentElement(), xmlp);

      xmlp.addMapping("fruit", TestFruitObject.class.getName());

      MetaDataObject_impl newFruitBag = new TestFruitBagObject();
      newFruitBag.buildFromXMLElement(fruitBagXmlDoc.getDocumentElement(), xmlp);

      // new objects should be equal to the originals
View Full Code Here

Examples of org.apache.xml.security.c14n.implementations.NameSpaceSymbTable.addMapping()

   
    @org.junit.Test
    public void testXmlnsPut() {
        NameSpaceSymbTable ns = new NameSpaceSymbTable();
        ns.push();
        ns.addMapping("xmlns", "http://a", node1);
        assertEquals(node1, ns.getMapping("xmlns"));
    }
   
    @org.junit.Test
    public void testXmlnsMap() {
View Full Code Here

Examples of org.chromium.debug.core.sourcemap.SourcePositionMapBuilder.addMapping()

                originalTextData.getEndLine(), originalTextData.getEndColumn());

        TextSectionMapping mapTable =
            new TextSectionMappingImpl(originalTextData, vmTextData);

        mappingHandle = builder.addMapping(originalResourceSection, vmResourceSection, mapTable);
      } catch (SourcePositionMapBuilder.CannotAddException e) {
        formattedResource.deleteResourceAndFile();
        throw new RuntimeException(e);
      }
      metadata.mappingHandle = mappingHandle;
View Full Code Here

Examples of org.dozer.DozerBeanMapper.addMapping()

  }

  @Test(expected = IllegalArgumentException.class)
  public void shouldFailOnDuplicateMapping() {
    DozerBeanMapper mapper = new DozerBeanMapper();
    mapper.addMapping(new BeanMappingBuilder() {
      @Override
      protected void configure() {
        mapping(String.class, NoNothing.class);
      }
    });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.