1 package com.icl.saxon.number; 2 3 10 11 public class Numberer_de extends Numberer_en { 12 13 23 24 public String format(int number, String picture, 25 int groupSize, String groupSeparator, 26 String letterValue) { 27 if (letterValue.equals("traditional") && picture.equals("eins")) { 28 switch(number) { 29 case 1: return "eins"; 30 case 2: return "zwei"; 31 case 3: return "drei"; 32 case 4: return "vier"; 33 case 5: return "funf"; 34 case 6: return "sechs"; 35 case 7: return "sieben"; 36 case 8: return "acht"; 37 case 9: return "neun"; 38 case 10: return "zehn"; 39 default: return "" + number; 40 } 41 } else { 42 return super.format(number, picture, groupSize, groupSeparator, letterValue); 43 } 44 } 45 } 46 47 | Popular Tags |