ResStringValue::encodeAsXmlValue() : enumerate non-positional substitutions.

This commit is contained in:
Ryszard Wiśniewski 2011-05-14 03:49:24 +02:00
parent 5363b7f470
commit 316353f83f

View File

@ -42,7 +42,8 @@ public class ResStringValue extends ResScalarValue {
@Override
public String encodeAsResXmlValue() {
return ResXmlEncoders.encodeAsXmlValue(mRawValue);
return ResXmlEncoders.enumerateNonPositionalSubstitutions(
ResXmlEncoders.encodeAsXmlValue(mRawValue));
}
@Override
@ -50,6 +51,12 @@ public class ResStringValue extends ResScalarValue {
throw new UnsupportedOperationException();
}
@Override
protected String serializeXmlBody(XmlSerializer serializer, ResResource res)
throws IOException, AndrolibException {
return ResXmlEncoders.encodeAsXmlValue(mRawValue);
}
@Override
protected void serializeExtraXmlAttrs(XmlSerializer serializer,
ResResource res) throws IOException {