Examples of Mapping


Examples of org.objectweb.jorm.metainfo.api.Mapping

        if (cp == null) {
            throw new SpeedoException("No classproject found for the class "
                    + clazz.getFQName() + " and  the project " + scp.projectName);
        }
        int idx =  scp.mapperName.indexOf('.');
        Mapping m = cp.getMapping(idx == -1
                ? scp.mapperName
                : scp.mapperName.substring(0, idx));
        if (m == null) {
            throw new SpeedoException("No mapping found for the class "
                    + clazz.getFQName() + ",  the project " + scp.projectName
View Full Code Here

Examples of org.raml.parser.annotation.Mapping

        pojo.getClass();
        for (Field declaredField : declaredFields)
        {
            declaredField.setAccessible(true);
            Scalar scalar = declaredField.getAnnotation(Scalar.class);
            Mapping mapping = declaredField.getAnnotation(Mapping.class);
            Sequence sequence = declaredField.getAnnotation(Sequence.class);

            if (scalar != null)
            {
                dumpScalarField(dump, depth, declaredField, pojo);
            }
            else if (mapping != null)
            {
                dumpMappingField(dump, depth, declaredField, mapping.implicit(), pojo);
            }
            else if (sequence != null)
            {
                dumpSequenceField(dump, depth, declaredField, pojo);
            }
View Full Code Here

Examples of org.springframework.binding.mapping.Mapping

  public void testGetFieldValueError() {
    Map<String, String> source = new HashMap<String, String>();
    source.put("datum2", "bogus");
    List<MappingResult> mappingResults = new ArrayList<MappingResult>();
    Mapping mapping = new Mapping() {
      public Expression getSourceExpression() {
        return expressionParser.parseExpression("datum2", null);
      }

      public Expression getTargetExpression() {
View Full Code Here

Examples of org.springframework.boot.context.embedded.MimeMappings.Mapping

   * @param extension the file extension (excluding '.')
   * @param mimeType the mime type to map
   * @return any previous mapping or {@code null}
   */
  public String add(String extension, String mimeType) {
    Mapping previous = this.map.put(extension, new Mapping(extension, mimeType));
    return (previous == null ? null : previous.getMimeType());
  }
View Full Code Here

Examples of org.springframework.data.cassandra.mapping.Mapping

      if (entityMapping != null) {
        mappings.add(entityMapping);
      }
    }

    Mapping mapping = new Mapping();
    mapping.setEntityMappings(mappings);

    builder.addPropertyValue("mapping", mapping);
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.webflow.core.internal.model.Mapping

      data1.widthHint = 40;
      mappingAddButton.setLayoutData(data1);
      mappingAddButton.addSelectionListener(new SelectionAdapter() {

        public void widgetSelected(SelectionEvent e) {
          Mapping attr = new Mapping();
          attr.createNew(state);
          if (DialogUtils.openPropertiesDialog(state, attr, true) == Dialog.OK) {
            mappings.add(attr);
            mappingViewer.refresh(true);
          }
        }
View Full Code Here

Examples of org.useware.kernel.model.mapping.Mapping

    public Dialog build()
    {
        String ns = "org.jboss.undertow.servlet";

        // entities
        Mapping global = new DMRMapping()
                .setAddress("/{selected.profile}/subsystem=undertow/servlet-container=default/setting=jsp");


        Container overview = new Container(ns, "servletContainer", "Servlet Container", TemporalOperator.Choice, StereoTypes.EditorPanel);


        Container attributes = new Container(ns, "servletContainer#attributes", "JSP Settings", Form);
        Mapping attributesMapping = new DMRMapping()
                .addAttributes(
                        "trim-spaces", "smap",
                        "development", "keep-generated",
                        "recompile-on-fail","check-interval",
                        "scratch-dir","modification-test-interval",
View Full Code Here

Examples of org.wso2.carbon.cep.core.Mapping

*/
public class MappingHelper {
    public static Mapping fromOM(OMElement mappingElement)
            throws CEPConfigurationException {

        Mapping mapping = new Mapping();

        String stream =
                mappingElement.getAttributeValue(
                        new QName(CEPConstants.CEP_CONF_ATTR_STREAM));
        mapping.setStream(stream);

        for (Iterator iterator = mappingElement.getChildrenWithName(new QName(CEPConstants.CEP_CONF_NAMESPACE,
                CEPConstants.CEP_CONF_ELE_XPATH_DEFINITON)); iterator.hasNext();) {
            OMElement xpathDefinitionElement = (OMElement) iterator.next();
            String prefix = xpathDefinitionElement.getAttributeValue(
                    new QName(CEPConstants.CEP_CONF_ATTR_PREFIX));
            String namespace = xpathDefinitionElement.getAttributeValue(
                    new QName(CEPConstants.CEP_CONF_ATTR_NAMESPACE));
            XpathDefinition xpathDefinition = new XpathDefinition();
            xpathDefinition.setPrefix(prefix);
            xpathDefinition.setNamespace(namespace);
            mapping.addXpathDefinition(xpathDefinition);
        }

        for (Iterator iterator = mappingElement.getChildrenWithName(new QName(CEPConstants.CEP_CONF_NAMESPACE,
                CEPConstants.CEP_CONF_ELE_PROPERTY)); iterator.hasNext();) {
            OMElement propertyElement = (OMElement) iterator.next();
            Property property = PropertyHelper.fromOM(propertyElement);
            property.setInputProperty(true);
            mapping.addProperty(property);
        }

        return mapping;
    }
View Full Code Here

Examples of railo.runtime.Mapping

      isNew.setValue(false);
      String classNameOriginal=component.getPageSource().getFullClassName();
      String className=getClassname(component).concat("_wrap");
      String real=className.replace('.','/');
      String realOriginal=classNameOriginal.replace('.','/');
      Mapping mapping = component.getPageSource().getMapping();
    PhysicalClassLoader cl=null;
    try {
      cl = (PhysicalClassLoader) ((PageContextImpl)pc).getRPCClassLoader(false);
    } catch (IOException e) {
      throw Caster.toPageException(e);
    }
    Resource classFile = cl.getDirectory().getRealResource(real.concat(".class"));
    Resource classFileOriginal = mapping.getClassRootDirectory().getRealResource(realOriginal.concat(".class"));
   
  // LOAD CLASS
      //print.out(className);
    // check last Mod
    if(classFile.lastModified()>=classFileOriginal.lastModified()) {
View Full Code Here

Examples of railo.runtime.rest.Mapping

    ConfigWebImpl config=(ConfigWebImpl) pc.getConfig();

    try {
      ConfigWebAdmin admin = ConfigWebAdmin.newInstance((ConfigWebImpl)pc.getConfig(),webAdminPassword);
      Mapping[] mappings = config.getRestMappings();
      Mapping mapping;
      for(int i=0;i<mappings.length;i++){
        mapping=mappings[i];
        if(RestUtil.isMatch(pc,mapping,dir)){
          admin.removeRestMapping(mapping.getVirtual());
          admin.store();
        }
      }
    }
      catch (Exception e) {
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.