org.jclouds.azureblob.predicates.validators
Class ContainerNameValidator

java.lang.Object
  extended by org.jclouds.predicates.Validator<String>
      extended by org.jclouds.predicates.validators.DnsNameValidator
          extended by org.jclouds.azureblob.predicates.validators.ContainerNameValidator
All Implemented Interfaces:
com.google.common.base.Predicate<String>

public class ContainerNameValidator
extends DnsNameValidator

Validates name for Azure container. The complete requirements are listed at: http://weblogs.asp.net /vblasberg/archive/2009/02/17/azure-details-and-limitations-blobs-tables-and-queues.aspx

Author:
Oleksiy Yarmula
See Also:
InputParamValidator, Validator

Method Summary
protected  IllegalArgumentException exception(String containerName, String reason)
           
 void validate(String containerName)
          Validates the parameter
 
Methods inherited from class org.jclouds.predicates.validators.DnsNameValidator
getAcceptableRange
 
Methods inherited from class org.jclouds.predicates.Validator
apply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Predicate
equals
 

Method Detail

validate

public void validate(String containerName)
Description copied from class: Validator
Validates the parameter

Overrides:
validate in class DnsNameValidator
Parameters:
containerName - parameter to be validated

exception

protected IllegalArgumentException exception(String containerName,
                                             String reason)
Overrides:
exception in class DnsNameValidator


Copyright © 2009-2011 jclouds. All Rights Reserved.