List of usage examples for java.util Locale GERMAN
Locale GERMAN
To view the source code for java.util Locale GERMAN.
Click Source Link
From source file:Main.java
public static String getAssessmentKey(String classCode, String courseId, long date) { return String.format(Locale.GERMAN, "%s-%s-%d", classCode, courseId, date); }
From source file:com.sport.server.pdf.FopXmlGeneratorTest.java
@Test public void testCreateXml() throws RemoteException, Exception { TournamentHolder tournamentHolder = new TurReader().read(TUR_FILE); LicenceBO license = createLicense(); String fopXml = fopXmlGenerator.createXml(license, tournamentHolder, null, Locale.GERMAN); String expectedFopXml = FileUtils.readFileToString(FOP_XML_FILE, "UTF-8"); assertEquals("XML is wrongly generated", normalizeXml(expectedFopXml), normalizeXml(fopXml)); }
From source file:gui.statistics.PieChartTest.java
/** * Creates new form PieChartTest// www. j a v a 2s. c om */ public PieChartTest(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); Date a = new Date(2014 - 1900, 11, 1); Date b = new Date(2014 - 1900, 11, 31); DefaultPieDataset data = new DefaultPieDataset(); HashMap<String, BigDecimal> map = Database.getInstance().getTotalExpensesByCategory(a, b); for (String key : map.keySet()) { data.setValue(key, map.get(key).doubleValue()); } JFreeChart pieChart = ChartFactory.createPieChart("PIE CHART", data, true, false, Locale.GERMAN); PiePlot plot = (PiePlot) pieChart.getPlot(); plot.setLabelGenerator(null); BufferedImage pie = pieChart.createBufferedImage(500, 400); setSize(600, 500); jLabel1.setIcon(new ImageIcon(pie)); }
From source file:de.unidue.inf.is.ezdl.dlcore.analysis.stopwords.DefaultStopwordFilter.java
public DefaultStopwordFilter() { stopwords = HashMultimap.create();/*from w w w . j a va 2 s.co m*/ try { readStopwordList(Locale.ENGLISH, "/stopwords/english"); readStopwordList(Locale.GERMAN, "/stopwords/german"); } catch (IOException e) { logger.error(e.getMessage(), e); } }
From source file:me.vertretungsplan.parser.ParserUtils.java
@TestOnly static void init() { int i = 0;/*from www .java 2s.c om*/ dateFormatters.clear(); dateTimeFormatters.clear(); for (String date : dateFormats) { dateFormatters.add(DateTimeFormat.forPattern(date).withLocale(Locale.GERMAN) .withDefaultYear(DateTime.now().getYear())); for (String time : timeFormats) { for (String separator : separators) { dateTimeFormats[i] = date + separator + time; dateTimeFormatters.add(DateTimeFormat.forPattern(dateTimeFormats[i]).withLocale(Locale.GERMAN) .withDefaultYear(DateTime.now().getYear())); i++; } } } }
From source file:org.polymap.wbv.model.fulltext.WaldbesitzerFulltextTransformer.java
public WaldbesitzerFulltextTransformer() { super(); locale.set(Locale.GERMAN); honorQueryableAnnotation.set(true); }
From source file:org.voidsink.anewjkuapp.mensa.MensaDay.java
public MensaDay(JSONObject jsonDay) { try {/*ww w . j ava 2 s. c om*/ final SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd", Locale.GERMAN); this.date = df.parse(jsonDay.getString("date")); } catch (ParseException | JSONException e) { this.date = null; } this.menus = new ArrayList<>(); }
From source file:com.salesmanager.core.module.impl.application.currencies.EURCurrencyModule.java
public String getMeasure(BigDecimal measure, String currencycode) throws Exception { NumberFormat nf = null;//from w w w . j av a 2s . com nf = NumberFormat.getInstance(Locale.GERMAN); nf.setMaximumFractionDigits(1); nf.setMinimumFractionDigits(1); measure.setScale(1, BigDecimal.ROUND_HALF_UP); return nf.format(measure); }
From source file:de.awtools.lang.TranslatorTest.java
@Test public void testDefaultLocale() { Locale germany = new Locale("de", "DE"); assertThat(germany).isEqualTo(Locale.GERMANY); Locale german = new Locale("de"); assertThat(german).isEqualTo(Locale.GERMAN); }
From source file:de.drv.dsrv.spoc.web.webservice.spring.DefaultEndpoint.java
@Override public Source invoke(final Source source) { throw new InvalidExtraRequestException( this.messages.getMessage(Messages.ERROR_REQUEST_NO_EXTRA, null, Locale.GERMAN)); }