Package com.codiform.moo.session

Examples of com.codiform.moo.session.TranslationSession


  public Update update( Object source ) {
    return new Update( translatorFactory, source );
  }

  protected TranslationSource newSession() {
    return new TranslationSession( translatorFactory );
  }
View Full Code Here


   * @param source
   *            the object from which values should be retried
   * @return the translated instance of the destination class
   */
  public T from( Object source ) {
    return new TranslationSession( translatorFactory, variables ).getTranslation( source, destinationClass );
  }
View Full Code Here

   * @param source
   *            the collection of objects from which values should be retried
   * @return the translated instances of the destination class
   */
  public Collection<T> fromEach( Collection<?> source ) {
    return new TranslationSession( translatorFactory, variables ).getEachTranslation( source, destinationClass );
  }
View Full Code Here

   * @param source
   *            the set of objects from which values should be retried
   * @return the translated instances of the destination class
   */
  public Set<T> fromEach( Set<?> source ) {
    return new TranslationSession( translatorFactory, variables ).getEachTranslation( source, destinationClass );
  }
View Full Code Here

   * @param source
   *            the list of objects from which values should be retried
   * @return the translated instances of the destination class
   */
  public List<T> fromEach( List<?> source ) {
    return new TranslationSession( translatorFactory, variables ).getEachTranslation( source, destinationClass );
  }
View Full Code Here

   *
   * @param destination
   *            the object to which updates should be applied.
   */
  public void to(Object destination) {
    new TranslationSession(translatorFactory,variables).update(source, destination);
  }
View Full Code Here

  public <T> Set<T> translateEach( Set<?> sources, Class<T> destinationClass ) {
    return newSession().getEachTranslation( sources, destinationClass );
  }

  protected TranslationSession newSession() {
    return new TranslationSession(configuration);
  }
View Full Code Here

   *
   * @param source the object from which values should be retried
   * @return the translated instance of the destination class
   */
  public T from(Object source) {
    return new TranslationSession(configuration).getTranslation( source, destinationClass);
  }
View Full Code Here

   *
   * @param source the collection of objects from which values should be retried
   * @return the translated instances of the destination class
   */
  public Collection<T> fromEach(Collection<?> source) {
    return new TranslationSession(configuration).getEachTranslation( source, destinationClass);
  }
View Full Code Here

   *
   * @param source the set of objects from which values should be retried
   * @return the translated instances of the destination class
   */
  public Set<T> fromEach(Set<?> source) {
    return new TranslationSession(configuration).getEachTranslation( source, destinationClass);
  }
View Full Code Here

TOP

Related Classes of com.codiform.moo.session.TranslationSession

Copyright © 2018 www.massapicom. 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.