com.amazonaws.auth.policy.conditions
Enum StringCondition.StringComparisonType

java.lang.Object
  extended by java.lang.Enum<StringCondition.StringComparisonType>
      extended by com.amazonaws.auth.policy.conditions.StringCondition.StringComparisonType
All Implemented Interfaces:
Serializable, Comparable<StringCondition.StringComparisonType>
Enclosing class:
StringCondition

public static enum StringCondition.StringComparisonType
extends Enum<StringCondition.StringComparisonType>

Enumeration of the supported ways a string comparison can be evaluated.


Enum Constant Summary
StringEquals
          Case-sensitive exact string matching
StringEqualsIgnoreCase
          Case-insensitive string matching
StringLike
          Loose case-insensitive matching.
StringNotEquals
          Negated form of StringConditionType#StringEquals
StringNotEqualsIgnoreCase
          Negated form of StringConditionType#StringEqualsIgnoreCase
StringNotLike
          Negated form of StringConditionType#StringLike
 
Method Summary
static StringCondition.StringComparisonType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StringCondition.StringComparisonType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

StringEquals

public static final StringCondition.StringComparisonType StringEquals
Case-sensitive exact string matching


StringEqualsIgnoreCase

public static final StringCondition.StringComparisonType StringEqualsIgnoreCase
Case-insensitive string matching


StringLike

public static final StringCondition.StringComparisonType StringLike
Loose case-insensitive matching. The values can include a multi-character match wildcard (*) or a single-character match wildcard (?) anywhere in the string.


StringNotEquals

public static final StringCondition.StringComparisonType StringNotEquals
Negated form of StringConditionType#StringEquals


StringNotEqualsIgnoreCase

public static final StringCondition.StringComparisonType StringNotEqualsIgnoreCase
Negated form of StringConditionType#StringEqualsIgnoreCase


StringNotLike

public static final StringCondition.StringComparisonType StringNotLike
Negated form of StringConditionType#StringLike

Method Detail

values

public static StringCondition.StringComparisonType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (StringCondition.StringComparisonType c : StringCondition.StringComparisonType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static StringCondition.StringComparisonType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.