com.sun.identity.policy
Class Syntax

java.lang.Object
  extended by com.sun.identity.policy.Syntax

public final class Syntax
extends Object

Provides an enum like support for the syntax of values such as ANY, NONE, LIST, 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 LIST
          value is a free form multi list text field
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(Object arg)
          Checks whether the argument object is equal to this Syntax
 String toString()
          Returns the string representation of this object.
 

Field Detail

ANY

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


LIST

public static final Syntax LIST
value is a free form multi list 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 String toString()
Returns the string representation of this object.

Overrides:
toString in class Object
Returns:
string representation of this Syntax

equals

public boolean equals(Object arg)
Checks whether the argument object is equal to this Syntax

Overrides:
equals in class Object
Parameters:
arg - Syntax object for comparison.
Returns:
true if the argument object is equal to this Syntax, else false