public class MergedResourceMergerItem extends SourcelessResourceMergerItem
mResourceValueATTR_EXAMPLE, BY_KEY, XLIFF_G_TAG, XLIFF_NAMESPACE_PREFIX| Constructor and Description |
|---|
MergedResourceMergerItem(java.lang.String name,
com.android.ide.common.rendering.api.ResourceNamespace namespace,
com.android.resources.ResourceType type,
java.lang.String qualifiers,
org.w3c.dom.Node value,
java.lang.String libraryName)
Constructs the object with a name, type and optional value.
|
| 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.
|
DataFile.FileType |
getSourceType() |
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, getType, getValue, getValueText, getXmlString, hashCode, isFileBased, setIgnoredFromDiskMerge, toString, wasTouchedclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetNamepublic MergedResourceMergerItem(@NonNull
java.lang.String name,
@NonNull
com.android.ide.common.rendering.api.ResourceNamespace namespace,
@NonNull
com.android.resources.ResourceType type,
@NonNull
java.lang.String qualifiers,
@Nullable
org.w3c.dom.Node value,
@Nullable
java.lang.String libraryName)
Note that the object is not fully usable as-is. It must be added to a ResourceFile first.
name - the name of the resourcetype - the type of the resourcequalifiers - the qualifiers of the resourcevalue - an optional Node that represents the resource value.libraryName - name of library where resource came from if any@NonNull public java.lang.String getQualifiers()
ResourceMergerItemgetQualifiers in class ResourceMergerItem@NonNull public DataFile.FileType getSourceType()
getSourceType in class ResourceMergerItem@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()
@Nullable public 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.