|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.ide.common.res2.FileResourceNameValidator
public final class FileResourceNameValidator
Method Summary | |
---|---|
static java.lang.String |
getErrorTextForFileResource(java.lang.String fileNameWithExt,
com.android.resources.ResourceType resourceType)
Validate a single-file resource name. |
static java.lang.String |
getErrorTextForNameWithoutExtension(java.lang.String fileNameWithoutExt)
Validate a single-file resource name. |
static java.lang.String |
getErrorTextForPartialName(java.lang.String partialFileNameWithExt,
com.android.resources.ResourceType resourceType)
Validate a file-based resource name as it is being typed in a text field. |
static void |
validate(java.io.File file,
com.android.resources.ResourceType resourceType)
Validate a single-file resource name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void validate(@NonNull java.io.File file, @NonNull com.android.resources.ResourceType resourceType) throws MergingException
file
- the file resource to validate.resourceType
- the resource type.
MergingException
- is the resource name is not valid.@Nullable public static java.lang.String getErrorTextForFileResource(@NonNull java.lang.String fileNameWithExt, @NonNull com.android.resources.ResourceType resourceType)
fileNameWithExt
- the resource file name to validate.resourceType
- the resource type.
@Nullable public static java.lang.String getErrorTextForPartialName(@NonNull java.lang.String partialFileNameWithExt, @NonNull com.android.resources.ResourceType resourceType)
partialFileNameWithExt
- the resource file name or prefix of file name to validate.resourceType
- the resource type.
@Nullable public static java.lang.String getErrorTextForNameWithoutExtension(@NonNull java.lang.String fileNameWithoutExt)
fileNameWithoutExt
- The resource file name to validate, without an extension.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |