NameValidator Class

  • java.lang.Object
    • com.microsoft.azure.storage.NameValidator

public class NameValidator

Provides helpers to validate resource names across the Microsoft Azure Storage Services.

Method Summary

Modifier and Type Method and Description
void validateBlobName(String blobName)

Checks if a blob name is valid.

void validateContainerName(String containerName)

Checks if a container name is valid.

void validateDirectoryName(String directoryName)

Checks if a directory name is valid.

void validateFileName(String fileName)

Checks if a file name is valid.

void validateQueueName(String queueName)

Checks if a queue name is valid.

void validateShareName(String shareName)

Checks if a share name is valid.

void validateTableName(String tableName)

Checks if a table name is valid.

Method Details

validateBlobName

public static void validateBlobName(String blobName)

Checks if a blob name is valid.

Parameters:

blobName - A String representing the blob name to validate.

validateContainerName

public static void validateContainerName(String containerName)

Checks if a container name is valid.

Parameters:

containerName - A String representing the container name to validate.

validateDirectoryName

public static void validateDirectoryName(String directoryName)

Checks if a directory name is valid.

Parameters:

directoryName - A String representing the directory name to validate.

validateFileName

public static void validateFileName(String fileName)

Checks if a file name is valid.

Parameters:

fileName - A String representing the file name to validate.

validateQueueName

public static void validateQueueName(String queueName)

Checks if a queue name is valid.

Parameters:

queueName - A String representing the queue name to validate.

validateShareName

public static void validateShareName(String shareName)

Checks if a share name is valid.

Parameters:

shareName - A String representing the share name to validate.

validateTableName

public static void validateTableName(String tableName)

Checks if a table name is valid.

Parameters:

tableName - A String representing the table name to validate.

Applies to