Package com.sun.identity.sm
Enum AttributeSchema.Syntax
- java.lang.Object
-
- java.lang.Enum<AttributeSchema.Syntax>
-
- com.sun.identity.sm.AttributeSchema.Syntax
-
- All Implemented Interfaces:
Serializable
,Comparable<AttributeSchema.Syntax>
- Enclosing class:
- AttributeSchema
public static enum AttributeSchema.Syntax extends Enum<AttributeSchema.Syntax>
The classSyntax
defines the syntax of the schema attributes and provides static constants for these types. In other words, this class defines the primitive data types for the schema attributes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN
TheBOOLEAN
attribute syntax specifies that the attribute is of boolean type, i.e., can have a value of eithertrue
orfalse
DATE
TheDATE
attribute syntax specifies that the attribute is of date type.DATE_TIME
TheDATE_TIME
attribute syntax specifies that the attribute is a date time field.DECIMAL
TheDECIMAL
attribute syntax specifies that the attribute is a decimal value.DECIMAL_NUMBER
TheDECIMAL_NUMBER
attribute syntax specifies that the attribute is a floating point number, e.g., 1.5, 3.56, etc.DECIMAL_RANGE
TheDECIMAL_RANGE
attribute syntax specifies that the attribute is a decimal number within a range.DN
TheDN
attribute syntax specifies that the attribute should be an LDAP distinguished name (DN).EMAIL
TheEMAIL
attribute syntax specifies that the attribute is a email address.ENCRYPTED_PASSWORD
TheENCRYPTED PASSWORD
attribute syntax specifies that the attribute is of password type, will be used by UI to mask the password typed.JSON
TheJSON
attribute syntax specifies that the attribute is of JSON type, i.e., in json formatted string.NUMBER
TheNUMBER
attribute syntax specifies that the attribute is a number.NUMBER_RANGE
TheNUMBER_RANGE
attribute syntax specifies that the attribute is a number within a range.NUMERIC
TheNUMERIC
attribute syntax specifies that the attribute is numeric, i.e., can have numbers only.PARAGRAPH
ThePARAGRAPH
attribute syntax specifies that the attribute is of multi-lined text type.PASSWORD
ThePASSWORD
attribute syntax specifies that the attribute is of password type, will be used by UI to mask the password typed.PERCENT
ThePERCENT
attribute syntax specifies that the attribute is a percentage.SCRIPT
TheSCRIPT
attribute syntax specifies that the attribute is of multi-lined text type and more specifically a script.STRING
TheSTRING
attribute syntax specifies that the attribute is of text type, i.e., can have any unicode characters.URL
TheURL
attribute syntax specifies that the attribute is a URL.XML
TheXML
attribute syntax specifies that the attribute is of XML type, i.e., can have any unicode characters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
The method returns the string representation of the schema attribute syntax.static AttributeSchema.Syntax
valueOf(String name)
Returns the enum constant of this type with the specified name.static AttributeSchema.Syntax[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final AttributeSchema.Syntax BOOLEAN
TheBOOLEAN
attribute syntax specifies that the attribute is of boolean type, i.e., can have a value of eithertrue
orfalse
-
EMAIL
public static final AttributeSchema.Syntax EMAIL
TheEMAIL
attribute syntax specifies that the attribute is a email address.
-
URL
public static final AttributeSchema.Syntax URL
TheURL
attribute syntax specifies that the attribute is a URL.
-
STRING
public static final AttributeSchema.Syntax STRING
TheSTRING
attribute syntax specifies that the attribute is of text type, i.e., can have any unicode characters.
-
PARAGRAPH
public static final AttributeSchema.Syntax PARAGRAPH
ThePARAGRAPH
attribute syntax specifies that the attribute is of multi-lined text type.
-
XML
public static final AttributeSchema.Syntax XML
TheXML
attribute syntax specifies that the attribute is of XML type, i.e., can have any unicode characters.
-
JSON
public static final AttributeSchema.Syntax JSON
TheJSON
attribute syntax specifies that the attribute is of JSON type, i.e., in json formatted string.
-
SCRIPT
public static final AttributeSchema.Syntax SCRIPT
TheSCRIPT
attribute syntax specifies that the attribute is of multi-lined text type and more specifically a script.
-
PASSWORD
public static final AttributeSchema.Syntax PASSWORD
ThePASSWORD
attribute syntax specifies that the attribute is of password type, will be used by UI to mask the password typed.
-
ENCRYPTED_PASSWORD
public static final AttributeSchema.Syntax ENCRYPTED_PASSWORD
TheENCRYPTED PASSWORD
attribute syntax specifies that the attribute is of password type, will be used by UI to mask the password typed.
-
DATE
public static final AttributeSchema.Syntax DATE
TheDATE
attribute syntax specifies that the attribute is of date type.
-
NUMERIC
public static final AttributeSchema.Syntax NUMERIC
TheNUMERIC
attribute syntax specifies that the attribute is numeric, i.e., can have numbers only.
-
NUMBER
public static final AttributeSchema.Syntax NUMBER
TheNUMBER
attribute syntax specifies that the attribute is a number.
-
DECIMAL
public static final AttributeSchema.Syntax DECIMAL
TheDECIMAL
attribute syntax specifies that the attribute is a decimal value.
-
PERCENT
public static final AttributeSchema.Syntax PERCENT
ThePERCENT
attribute syntax specifies that the attribute is a percentage.
-
NUMBER_RANGE
public static final AttributeSchema.Syntax NUMBER_RANGE
TheNUMBER_RANGE
attribute syntax specifies that the attribute is a number within a range.
-
DECIMAL_RANGE
public static final AttributeSchema.Syntax DECIMAL_RANGE
TheDECIMAL_RANGE
attribute syntax specifies that the attribute is a decimal number within a range.
-
DECIMAL_NUMBER
public static final AttributeSchema.Syntax DECIMAL_NUMBER
TheDECIMAL_NUMBER
attribute syntax specifies that the attribute is a floating point number, e.g., 1.5, 3.56, etc.
-
DN
public static final AttributeSchema.Syntax DN
TheDN
attribute syntax specifies that the attribute should be an LDAP distinguished name (DN).
-
DATE_TIME
public static final AttributeSchema.Syntax DATE_TIME
TheDATE_TIME
attribute syntax specifies that the attribute is a date time field.
-
-
Method Detail
-
values
public static AttributeSchema.Syntax[] 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 (AttributeSchema.Syntax c : AttributeSchema.Syntax.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttributeSchema.Syntax 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 nameNullPointerException
- if the argument is null
-
toString
public String toString()
The method returns the string representation of the schema attribute syntax.- Overrides:
toString
in classEnum<AttributeSchema.Syntax>
- Returns:
- String string representation of schema attribute syntax
-
-