Package com.android.build.api.transform
Interface QualifiedContent
- All Known Subinterfaces:
DirectoryInput,JarInput
Deprecated.
Represent content qualified with one or more
QualifiedContent.ContentType and one or more QualifiedContent.Scope.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDeprecated.A content type that is requested through the transform API.static enumDeprecated.The type of of the content.static enumDeprecated.The scope of the content.static interfaceDeprecated.Definition of a scope. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the type of content that the stream represents.getFile()Deprecated.Returns he location of the content.getName()Deprecated.Returns the name of the content.Set<? super QualifiedContent.Scope>Deprecated.Returns the scope of the content.
-
Method Details
-
getName
Deprecated.Returns the name of the content. Can be used to differentiate different content using the same scope. This is not reliably usable at every stage of the transformations, but can be used for logging for instance.- Returns:
- the name
-
getFile
Deprecated.Returns he location of the content.- Returns:
- the content location.
-
getContentTypes
Deprecated.Returns the type of content that the stream represents.Even though this may return only
QualifiedContent.DefaultContentType.RESOURCESorQualifiedContent.DefaultContentType.CLASSES, the actual content (the folder or the jar) may contain files representing other content types. This is because the transform mechanism avoids duplicating files around to remove unwanted types for performance.For each input, transforms should always take care to read and process only the files associated with the types returned by this method.
- Returns:
- a set of one or more types, never null nor empty.
-
getScopes
Deprecated.Returns the scope of the content.- Returns:
- a set of one or more scopes, never null nor empty.
-