aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/android/java/com/google/devtools/build/android/DataResource.java
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2016-03-29 15:49:59 +0000
committerGravatar Klaus Aehlig <aehlig@google.com>2016-03-30 08:12:19 +0000
commit702e5301366ed4a7804d2510e1313e92a0476536 (patch)
treee719058a45ead2bd9ec44c7b6d9844fe2fda3b71 /src/tools/android/java/com/google/devtools/build/android/DataResource.java
parent020a08bd60a1955c746dc6cb7b12d962150d02c8 (diff)
3.73 of 5: Convert xml parsing to use the map based storage
Introduces two new interfaces: DataValue, which compliments DataKey and allows a cleaner interface MergeConflict AndroidDataSet.KeyValueConsumer, abstraction that allows a common interface for consuming parsed resources, which is a lot cleanr for DataValue as well. -- MOS_MIGRATED_REVID=118466739
Diffstat (limited to 'src/tools/android/java/com/google/devtools/build/android/DataResource.java')
-rw-r--r--src/tools/android/java/com/google/devtools/build/android/DataResource.java13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/tools/android/java/com/google/devtools/build/android/DataResource.java b/src/tools/android/java/com/google/devtools/build/android/DataResource.java
index 877a701258..e369a08bb0 100644
--- a/src/tools/android/java/com/google/devtools/build/android/DataResource.java
+++ b/src/tools/android/java/com/google/devtools/build/android/DataResource.java
@@ -19,18 +19,7 @@ import java.nio.file.Path;
/**
* Represents an Android Resource parsed from an xml or binary file.
*/
-public interface DataResource {
-
- /**
- * Provides the FullyQualifiedName of the DataResource.
- */
- DataKey dataKey();
-
- /**
- * Provides the Path to the file from which the DataResource was derived.
- */
- Path source();
-
+public interface DataResource extends DataValue {
/**
* Writes the resource to the given resource directory.
* @param newResourceDirectory The new directory for this resource.