ResScalarValue +serializeExtraXmlAttrs() .

This commit is contained in:
Ryszard Wiśniewski 2011-05-10 17:12:27 +02:00
parent 0f251a0fd9
commit 99882396b9

View File

@ -62,6 +62,8 @@ public abstract class ResScalarValue extends ResValue
}
serializer.attribute(null, "name", res.getResSpec().getName());
serializeExtraXmlAttrs(serializer, res);
String body = encodeAsResXmlValue();
if (! body.isEmpty()) {
serializer.ignorableWhitespace(body);
@ -74,5 +76,9 @@ public abstract class ResScalarValue extends ResValue
return mType;
}
protected void serializeExtraXmlAttrs(XmlSerializer serializer,
ResResource res) throws IOException {
}
protected abstract String encodeAsResXml() throws AndrolibException;
}