Package org.projectforge.xml.stream.converter

Examples of org.projectforge.xml.stream.converter.LocaleConverter


    writeReadAndAssert(new Locale("DE_de"), "de_de");
  }

  private void writeReadAndAssert(final Locale locale, final String id)
  {
    final LocaleConverter converter = new LocaleConverter();
    final String str = converter.toString(locale);
    assertEquals(id, str);
    final Locale l = converter.fromString(str);
    if (id == null) {
      assertNull(l);
    } else {
      assertEquals(id, l.toString());
    }
View Full Code Here


    internalRegisterConverter(BigDecimal.class, new BigDecimalConverter());
    internalRegisterConverter(Class.class, new ClassConverter());
    internalRegisterConverter(Date.class, new DateConverter());
    internalRegisterConverter(String.class, new StringConverter());
    internalRegisterConverter(TimeZone.class, new TimeZoneConverter());
    internalRegisterConverter(Locale.class, new LocaleConverter());
    internalRegisterConverter(Version.class, new VersionConverter());
  }
View Full Code Here

TOP

Related Classes of org.projectforge.xml.stream.converter.LocaleConverter

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.