From 80665ec28f4fde484c35e2935e8d06aabe902841 Mon Sep 17 00:00:00 2001 From: Googler Date: Thu, 17 Mar 2016 22:34:52 +0000 Subject: Part 3 of 5: Merging semantics. Introduces the AndroidDataMerger, MergeConflict, and UnwrittenMergedAndroidData which is the entry point in the AndroidResourceProcessing *AndroidData lifecycle. Also, refactors the AndroidDataSet parsing of resources, making it functionally immutable. -- MOS_MIGRATED_REVID=117492690 --- .../java/com/google/devtools/build/android/DataResource.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/tools/android/java/com/google/devtools/build/android/DataResource.java') 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 96d765e110..4e64fb7ae3 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,7 +19,17 @@ import java.nio.file.Path; /** * Represents an Android Resource parsed from an xml or binary file. */ -public interface DataResource { +public interface DataResource extends Comparable { + + /** + * Provides the FullyQualifiedName of the DataResource + */ + FullyQualifiedName fullyQualifiedName(); + + /** + * Provides the Path to the file from which the DataResource was derived. + */ + Path source(); /** * Writes the resource to the given resource directory. -- cgit v1.2.3