Examples of transform()


Examples of org.drools.persistence.info.WorkItemInfo.transform()

       
        PersistenceContext context = ((PersistenceContextManager) env.get( EnvironmentName.PERSISTENCE_CONTEXT_MANAGER )).getCommandScopedPersistenceContext();
        workItemInfo = context.persist( workItemInfo );
       
        ((WorkItemImpl) workItem).setId(workItemInfo.getId());
        workItemInfo.transform();
       
        if (this.workItems == null) {
            this.workItems = new HashMap<Long, WorkItemInfo>();
        }
        workItems.put(workItem.getId(), workItemInfo);

Examples of org.dspace.identifier.ezid.Transform.transform()

                    String mappedValue;
                    Transform xfrm = transforms.get(key);
                    if (null != xfrm)
                    {
                        try {
                            mappedValue = xfrm.transform(value.value);
                        } catch (Exception ex) {
                            log.error("Unable to transform '{}' from {} to {}:  {}",
                                    new String[] {
                                        value.value,
                                        value.toString(),

Examples of org.eclipse.jst.pagedesigner.dtmanager.converter.ITransformOperation.transform()

    Element retElement = curElement;
    if (childOperations != null && childOperations.size() > 0) {
      Iterator itChildOperations = childOperations.iterator();
      while (itChildOperations.hasNext()) {
        ITransformOperation childOperation = (ITransformOperation)itChildOperations.next();
        retElement = childOperation.transform(srcElement, retElement);
      }
    }
    return retElement;
  }

Examples of org.eclipse.jst.pagedesigner.dtmanager.converter.ITransformer.transform()

    Element srcElement = newTagConverterContext.getHostElement();
    Element resultElement = null;
    if (srcElement != null) {
      ITransformer transformer = createTransformerFromDTInfo(srcElement);
      if (transformer != null) {
        resultElement = transformer.transform(srcElement);
      }
    }
    return resultElement;
  }

Examples of org.eclipse.persistence.platform.xml.XMLTransformer.transform()

              }
          } else {
            XMLUnmarshallerHandler handler = this.xmlUnmarshaller.getUnmarshallerHandler();
            XMLTransformer transformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer();
            SAXResult result = new SAXResult(handler);
            transformer.transform(source, result);
            return handler.getResult();         
          }
      }finally {
          xmlUnmarshaller.getStringBuffer().reset();
        }

Examples of org.eclipse.persistence.tools.weaving.jpa.StaticWeaveClassTransformer.transform()

                    continue;
                }
               
                // If everything is OK so far, we perform the weaving. we need three parameters in order to
                // class to perform weaving for that class, the class name,the class object and class bytes.
                transferredClassBytes = classTransformer.transform(className.replace('.', '/'), thisClass, originalClassBytes);
               
                // If transferredClassBytes is null means the class dose not get woven.
                if (transferredClassBytes!=null){
                    swoh.addEntry(newEntry, transferredClassBytes);
                } else {

Examples of org.eclipse.sapphire.modeling.localization.LocalizationService.transform()

                label = text;
            }
            else if( ! label.equals( text ) )
            {
                final LocalizationService localizationService = part().definition().adapt( LocalizationService.class );
                label = localizationService.transform( label, CapitalizationType.FIRST_WORD_ONLY, false );
            }
           
            if( label == null )
            {
                if( this.columnHandler.isEmptyTextLabelDesired( element ) )

Examples of org.eclipse.swt.graphics.Transform.transform()

    float[] point = new float[2];
    text = GraphicsExample.getResourceString("None"); //$NON-NLS-1$
    size = gc.stringExtent(text);
    point[0] = (scaleX * bounds.width + 5 - size.x) / (2 * scaleX);
    point[1] = bounds.height;
    transform.transform(point);
    gc.drawString(text, (int) point[0], (int) point[1], true);

    text = GraphicsExample.getResourceString("Low"); //$NON-NLS-1$
    size = gc.stringExtent(text);
    point[0] = (scaleX * bounds.width + 5 - size.x) / (2 * scaleX) + bounds.width;

Examples of org.eurekastreams.server.action.request.transformer.RequestTransformer.transform()

    public void testTransform()
    {
        RequestTransformer sut = new SetCurrentUserNotificationPreferencesTransformer(notifierTypes, categories);
        ActionContext ctx = TestContextCreator.createPrincipalActionContext(
                (Serializable) Arrays.asList(dto1, dto2, dto3), null, PERSON_ID);
        SetUserNotificationFilterPreferencesRequest result = (SetUserNotificationFilterPreferencesRequest) sut
                .transform(ctx);

        assertEquals(PERSON_ID, result.getPersonId());
        Collection<NotificationFilterPreferenceDTO> list = result.getPrefList();
        assertEquals(1, list.size());

Examples of org.eurekastreams.web.client.model.requests.PersonPagePropertiesDTOToPersonTransformer.transform()

            public void onSuccess(final PersonPagePropertiesDTO response)
            {
                PersonPagePropertiesDTOToPersonTransformer transformer = //
                new PersonPagePropertiesDTOToPersonTransformer();
                Session.getInstance().getEventBus().notifyObservers(
                        new GotStartPageTabsResponseEvent(transformer.transform(response)));
            }
        }, useClientCacheIfAvailable);
    }

    /**
 
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.