public interface QualifiedContent
QualifiedContent.ContentType
and one or more QualifiedContent.Scope
.Modifier and Type | Interface and Description |
---|---|
static interface |
QualifiedContent.ContentType
A content type that is requested through the transform API.
|
static class |
QualifiedContent.DefaultContentType
The type of of the content.
|
static class |
QualifiedContent.Scope
The scope of the content.
|
static interface |
QualifiedContent.ScopeType
Definition of a scope.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<QualifiedContent.ContentType> |
getContentTypes()
Returns the type of content that the stream represents.
|
java.io.File |
getFile()
Returns he location of the content.
|
java.lang.String |
getName()
Returns the name of the content.
|
java.util.Set<? super QualifiedContent.Scope> |
getScopes()
Returns the scope of the content.
|
@NonNull java.lang.String getName()
@NonNull java.io.File getFile()
@NonNull java.util.Set<QualifiedContent.ContentType> getContentTypes()
Even though this may return only QualifiedContent.DefaultContentType.RESOURCES
or
QualifiedContent.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.
@NonNull java.util.Set<? super QualifiedContent.Scope> getScopes()