if (prepared) {
return;
}
prepared = true;
AttributeCollection atts = getAttributeList();
for (int a=0; a<atts.getLength(); a++) {
int nc = atts.getNameCode(a);
String f = getNamePool().getClarkName(nc);
if (f.equals(StandardNames.NAME)) {
name = Whitespace.trim(atts.getValue(a));
} else if (f.equals(StandardNames.DECIMAL_SEPARATOR)) {
decimalSeparator = atts.getValue(a);
} else if (f.equals(StandardNames.GROUPING_SEPARATOR)) {
groupingSeparator = atts.getValue(a);
} else if (f.equals(StandardNames.INFINITY)) {
infinity = atts.getValue(a);
} else if (f.equals(StandardNames.MINUS_SIGN)) {
minusSign = atts.getValue(a);
} else if (f.equals(StandardNames.NAN)) {
NaN = atts.getValue(a);
} else if (f.equals(StandardNames.PERCENT)) {
percent = atts.getValue(a);
} else if (f.equals(StandardNames.PER_MILLE)) {
perMille = atts.getValue(a);
} else if (f.equals(StandardNames.ZERO_DIGIT)) {
zeroDigit = atts.getValue(a);
} else if (f.equals(StandardNames.DIGIT)) {
digit = atts.getValue(a);
} else if (f.equals(StandardNames.PATTERN_SEPARATOR)) {
patternSeparator = atts.getValue(a);
} else {
checkUnknownAttribute(nc);
}
}
}