com.sun.identity.policy
Class Syntax

java.lang.Object
  |
  +--com.sun.identity.policy.Syntax

public final class Syntax
extends java.lang.Object

Provides an enum like support for the syntax of values such as ANY, NONE, CONSTANT, SINGLE_CHOICE, MULTIPLE_CHOICE In other words, provides access to a set of finite values and enforces new values can not be created by users


Field Summary
static Syntax ANY
          value is a free form text, would be typically shown in as editable text field
static Syntax ANY_SEARCHABLE
          value is a free form text, could also search from a large set of values
static Syntax CONSTANT
          value is a constant string, would be typically shown as non editable text
static Syntax MULTIPLE_CHOICE
          value is multiple choice from list
static Syntax NONE
          no value is allowed
static Syntax SINGLE_CHOICE
          value is a single choice from a list
 
Method Summary
 boolean equals(java.lang.Object arg)
          Checks whether the argument object is equal to this Syntax
 java.lang.String toString()
          Gets the string representation of this object.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ANY

public static final Syntax ANY
value is a free form text, would be typically shown in as editable text field

ANY_SEARCHABLE

public static final Syntax ANY_SEARCHABLE
value is a free form text, could also search from a large set of values

NONE

public static final Syntax NONE
no value is allowed

CONSTANT

public static final Syntax CONSTANT
value is a constant string, would be typically shown as non editable text

SINGLE_CHOICE

public static final Syntax SINGLE_CHOICE
value is a single choice from a list

MULTIPLE_CHOICE

public static final Syntax MULTIPLE_CHOICE
value is multiple choice from list
Method Detail

toString

public java.lang.String toString()
Gets the string representation of this object.
Overrides:
toString in class java.lang.Object
Returns:
string representation of this Syntax

equals

public boolean equals(java.lang.Object arg)
Checks whether the argument object is equal to this Syntax
Overrides:
equals in class java.lang.Object
Parameters:
arg - Syntax object for comparison.
Returns:
true if the argument object is equal to this Syntax, else false