com.sun.identity.sm
Class AttributeSchema.Type

java.lang.Object
  |
  +--com.sun.identity.sm.AttributeSchema.Type
Enclosing class:
AttributeSchema

public static class AttributeSchema.Type
extends java.lang.Object

The class Type defines the types of schema attributes and provides static constants for these types. This could also be viewed as a higher level structured data types like Set, List, etc. The primitive data types are defined by Syntax. Currently defined schema attribute types are SINGLE, LIST, SINGLE_CHOICE, MULTIPLE_CHOICE, SIGNATURE and VALIDATOR.


Field Summary
static AttributeSchema.Type LIST
          The LIST attribute type specifies that the attribute can have multiple values, i.e., multi-valued attribute.
static AttributeSchema.Type MULTIPLE_CHOICE
          The MULTIPLE_CHOICE attribute type specifies that the attribute can have multiple values defined by the getChoiceValues method of AttributeSchema.
static AttributeSchema.Type SIGNATURE
          The SIGNATURE attribute type specifies that the attribute is a signing attribute.
static AttributeSchema.Type SINGLE
          The SINGLE attribute type specifies that the attribute can have only a single value.
static AttributeSchema.Type SINGLE_CHOICE
          The SINGLE_CHOICE attribute type specifies that the attribute can have value defined by the getChoiceValues method of AttributeSchema.
static AttributeSchema.Type VALIDATOR
          The VALIDATOR attribute type specifies that the attribute defines a attribute validator plugin.
 
Method Summary
 boolean equals(java.lang.Object schemaAttrType)
          Method to check if two schema attribute types are equal.
 int hashCode()
          Returns a hash code value for the object.
 java.lang.String toString()
          The method returns the string representation of the schema attribute type.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SINGLE

public static final AttributeSchema.Type SINGLE
The SINGLE attribute type specifies that the attribute can have only a single value.

LIST

public static final AttributeSchema.Type LIST
The LIST attribute type specifies that the attribute can have multiple values, i.e., multi-valued attribute.

SINGLE_CHOICE

public static final AttributeSchema.Type SINGLE_CHOICE
The SINGLE_CHOICE attribute type specifies that the attribute can have value defined by the getChoiceValues method of AttributeSchema.

MULTIPLE_CHOICE

public static final AttributeSchema.Type MULTIPLE_CHOICE
The MULTIPLE_CHOICE attribute type specifies that the attribute can have multiple values defined by the getChoiceValues method of AttributeSchema.

SIGNATURE

public static final AttributeSchema.Type SIGNATURE
The SIGNATURE attribute type specifies that the attribute is a signing attribute.

VALIDATOR

public static final AttributeSchema.Type VALIDATOR
The VALIDATOR attribute type specifies that the attribute defines a attribute validator plugin.
Method Detail

toString

public java.lang.String toString()
The method returns the string representation of the schema attribute type.
Overrides:
toString in class java.lang.Object
Returns:
String string representation of schema attribute type

equals

public boolean equals(java.lang.Object schemaAttrType)
Method to check if two schema attribute types are equal.
Overrides:
equals in class java.lang.Object
Parameters:
schemaAttrType - the reference object with which to compare
Returns:
true if the objects are same; false otherwise

hashCode

public int hashCode()
Returns a hash code value for the object.
Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for the object


Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.