aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2016-05-09 15:52:27 +0000
committerGravatar Klaus Aehlig <aehlig@google.com>2016-05-10 07:55:57 +0000
commit925fd546efd612bdaab7187404f15a2771fff46d (patch)
treea58f3ba20c39b4268a027ace6f8d0b1598c29035 /src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java
parentec2657fbbc0a360ef52cef2496e25cdf967aaf92 (diff)
4.99 of 5: Fix styleable combining.
Changes non-overwriting resources (id and styleable) to combine on duplication. This change ignores the issue of multiple sources, which will be addressed in a later cl. -- MOS_MIGRATED_REVID=121840285
Diffstat (limited to 'src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java')
-rw-r--r--src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java b/src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java
index dc916db8d4..e10bf46c40 100644
--- a/src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java
+++ b/src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java
@@ -34,4 +34,13 @@ public interface XmlResourceValue {
* Serializes the resource value to the OutputStream and returns the bytes written.
*/
int serializeTo(Path source, OutputStream out) throws IOException;
+
+ /**
+ * Combines these xml values together and returns a single value.
+ *
+ * @param value Another resource to be combined with this one.
+ * @return A union of the values of these two values.
+ * @throws IllegalArgumentException if either value cannot combine with the other.
+ */
+ XmlResourceValue combineWith(XmlResourceValue value);
}