result += "dd";
} else {
result += "d";
}
} else if (child instanceof NumberMonthElement) {
NumberMonthElement ele = (NumberMonthElement) child;
String numberstyle = ele.getNumberStyleAttribute();
if (ele.getNumberTextualAttribute().booleanValue()) {
if ((numberstyle != null) && numberstyle.equals("long")) {
result += "MMMM";
} else {
result += "MMM";
}
} else {
if ((numberstyle != null) && numberstyle.equals("long")) {
result += "MM";
} else {
result += "M";
}
}
} else if (child instanceof NumberYearElement) {
NumberYearElement ele = (NumberYearElement) child;
String numberstyle = ele.getNumberStyleAttribute();
if ((numberstyle != null) && numberstyle.equals("long")) {
result += "yyyy";
} else {
result += "yy";
}
} else if (child instanceof NumberTextElement) {
String content = child.getTextContent();
if ((content == null) || (content.equals(""))) {
result += " ";
} else {
result += content;
}
} else if (child instanceof NumberEraElement) {
NumberEraElement ele = (NumberEraElement) child;
String numberstyle = ele.getNumberStyleAttribute();
if ((numberstyle != null) && numberstyle.equals("long")) {
result += "GGGG";
} else {
result += "GG";
}
} else if (child instanceof NumberHoursElement) {
NumberHoursElement ele = (NumberHoursElement) child;
String numberstyle = ele.getNumberStyleAttribute();
if (ampmEle != null) {
if ((numberstyle != null) && numberstyle.equals("long")) {
result += "hh";
} else {
result += "h";
}
} else {
if ((numberstyle != null) && numberstyle.equals("long")) {
result += "HH";
} else {
result += "H";
}
}
} else if (child instanceof NumberMinutesElement) {
NumberMinutesElement ele = (NumberMinutesElement) child;
String numberstyle = ele.getNumberStyleAttribute();
if ((numberstyle != null) && numberstyle.equals("long")) {
result += "mm";
} else {
result += "m";
}
} else if (child instanceof NumberSecondsElement) {
NumberSecondsElement ele = (NumberSecondsElement) child;
String numberstyle = ele.getNumberStyleAttribute();
if ((numberstyle != null) && numberstyle.equals("long")) {
result += "ss";
} else {
result += "s";
}
} else if (child instanceof NumberQuarterElement) {
NumberQuarterElement ele = (NumberQuarterElement) child;
String numberstyle = ele.getNumberStyleAttribute();
if ((numberstyle != null) && numberstyle.equals("long")) {
result += "QQQ";
} else {
result += "Q";
}
} else if (child instanceof NumberDayOfWeekElement) {
NumberDayOfWeekElement ele = (NumberDayOfWeekElement) child;
String numberstyle = ele.getNumberStyleAttribute();
if ((numberstyle != null) && numberstyle.equals("long")) {
result += "EEEE";
} else {
result += "EEE";
}