public class GeneratedResourceMergerItem extends SourcelessResourceMergerItem
ResourceMergerItem that is generated, it knows its generated file path, which is not
the same as as the owner ResourceFile.ATTR_DESCRIPTION, ATTR_GROUP_NAME, mResourceValueATTR_EXAMPLE, XLIFF_G_TAG, XLIFF_NAMESPACE_PREFIX| Constructor and Description |
|---|
GeneratedResourceMergerItem(java.lang.String name,
com.android.ide.common.rendering.api.ResourceNamespace namespace,
java.io.File generatedFile,
com.android.resources.ResourceType type,
java.lang.String qualifiers,
java.lang.String libraryName) |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getFile()
Returns the
File from which this DataItem was created, if known. |
java.lang.String |
getName()
Returns the name of the item.
|
java.lang.String |
getQualifiers()
Returns the resource item qualifiers.
|
F |
getSourceFile()
Returns the DataFile the item is coming from.
|
protected int |
getStatus()
Obtains the full status of the data item; should not generally be used except
for debug purposes.
|
void |
setSourceFile(F sourceFile)
Sets the DataFile.
|
getConfigurationcompareTo, compareValueWith, equals, getIgnoredFromDiskMerge, getKey, getLibraryName, getNamespace, getReferenceToSelf, getResourceValue, getSource, getSourceType, getType, getValue, getValueText, getXmlString, hashCode, isFileBased, setIgnoredFromDiskMerge, toString, wasTouchedclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetName, getOriginalSourcepublic GeneratedResourceMergerItem(@NonNull
java.lang.String name,
@NonNull
com.android.ide.common.rendering.api.ResourceNamespace namespace,
@NonNull
java.io.File generatedFile,
@NonNull
com.android.resources.ResourceType type,
@NonNull
java.lang.String qualifiers,
@Nullable
java.lang.String libraryName)
@NonNull public java.lang.String getQualifiers()
ResourceMergerItemgetQualifiers in class ResourceMergerItempublic java.io.File getFile()
File from which this DataItem was created, if known. For some
subclasses of DataItem, the file is known even if getSourceFile() returns null.@NonNull public java.lang.String getName()
@Nullable public F getSourceFile()
public void setSourceFile(@Nullable
F sourceFile)
sourceFile - the data file, if null then the item is marked as being removed from the
data fileprotected int getStatus()