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 classSyntaxdefines 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 BOOLEANTheBOOLEANattribute syntax specifies that the attribute is of boolean type, i.e., can have a value of eithertrueorfalseDATETheDATEattribute syntax specifies that the attribute is of date type.DATE_TIMETheDATE_TIMEattribute syntax specifies that the attribute is a date time field.DECIMALTheDECIMALattribute syntax specifies that the attribute is a decimal value.DECIMAL_NUMBERTheDECIMAL_NUMBERattribute syntax specifies that the attribute is a floating point number, e.g., 1.5, 3.56, etc.DECIMAL_RANGETheDECIMAL_RANGEattribute syntax specifies that the attribute is a decimal number within a range.DNTheDNattribute syntax specifies that the attribute should be an LDAP distinguished name (DN).EMAILTheEMAILattribute syntax specifies that the attribute is a email address.ENCRYPTED_PASSWORDTheENCRYPTED PASSWORDattribute syntax specifies that the attribute is of password type, will be used by UI to mask the password typed.JSONTheJSONattribute syntax specifies that the attribute is of JSON type, i.e., in json formatted string.NUMBERTheNUMBERattribute syntax specifies that the attribute is a number.NUMBER_RANGETheNUMBER_RANGEattribute syntax specifies that the attribute is a number within a range.NUMERICTheNUMERICattribute syntax specifies that the attribute is numeric, i.e., can have numbers only.PARAGRAPHThePARAGRAPHattribute syntax specifies that the attribute is of multi-lined text type.PASSWORDThePASSWORDattribute syntax specifies that the attribute is of password type, will be used by UI to mask the password typed.PERCENTThePERCENTattribute syntax specifies that the attribute is a percentage.SCRIPTTheSCRIPTattribute syntax specifies that the attribute is of multi-lined text type and more specifically a script.STRINGTheSTRINGattribute syntax specifies that the attribute is of text type, i.e., can have any unicode characters.URLTheURLattribute syntax specifies that the attribute is a URL.XMLTheXMLattribute 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 StringtoString()The method returns the string representation of the schema attribute syntax.static AttributeSchema.SyntaxvalueOf(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
TheBOOLEANattribute syntax specifies that the attribute is of boolean type, i.e., can have a value of eithertrueorfalse
-
EMAIL
public static final AttributeSchema.Syntax EMAIL
TheEMAILattribute syntax specifies that the attribute is a email address.
-
URL
public static final AttributeSchema.Syntax URL
TheURLattribute syntax specifies that the attribute is a URL.
-
STRING
public static final AttributeSchema.Syntax STRING
TheSTRINGattribute syntax specifies that the attribute is of text type, i.e., can have any unicode characters.
-
PARAGRAPH
public static final AttributeSchema.Syntax PARAGRAPH
ThePARAGRAPHattribute syntax specifies that the attribute is of multi-lined text type.
-
XML
public static final AttributeSchema.Syntax XML
TheXMLattribute syntax specifies that the attribute is of XML type, i.e., can have any unicode characters.
-
JSON
public static final AttributeSchema.Syntax JSON
TheJSONattribute syntax specifies that the attribute is of JSON type, i.e., in json formatted string.
-
SCRIPT
public static final AttributeSchema.Syntax SCRIPT
TheSCRIPTattribute syntax specifies that the attribute is of multi-lined text type and more specifically a script.
-
PASSWORD
public static final AttributeSchema.Syntax PASSWORD
ThePASSWORDattribute 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 PASSWORDattribute 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
TheDATEattribute syntax specifies that the attribute is of date type.
-
NUMERIC
public static final AttributeSchema.Syntax NUMERIC
TheNUMERICattribute syntax specifies that the attribute is numeric, i.e., can have numbers only.
-
NUMBER
public static final AttributeSchema.Syntax NUMBER
TheNUMBERattribute syntax specifies that the attribute is a number.
-
DECIMAL
public static final AttributeSchema.Syntax DECIMAL
TheDECIMALattribute syntax specifies that the attribute is a decimal value.
-
PERCENT
public static final AttributeSchema.Syntax PERCENT
ThePERCENTattribute syntax specifies that the attribute is a percentage.
-
NUMBER_RANGE
public static final AttributeSchema.Syntax NUMBER_RANGE
TheNUMBER_RANGEattribute syntax specifies that the attribute is a number within a range.
-
DECIMAL_RANGE
public static final AttributeSchema.Syntax DECIMAL_RANGE
TheDECIMAL_RANGEattribute syntax specifies that the attribute is a decimal number within a range.
-
DECIMAL_NUMBER
public static final AttributeSchema.Syntax DECIMAL_NUMBER
TheDECIMAL_NUMBERattribute syntax specifies that the attribute is a floating point number, e.g., 1.5, 3.56, etc.
-
DN
public static final AttributeSchema.Syntax DN
TheDNattribute syntax specifies that the attribute should be an LDAP distinguished name (DN).
-
DATE_TIME
public static final AttributeSchema.Syntax DATE_TIME
TheDATE_TIMEattribute 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:
toStringin classEnum<AttributeSchema.Syntax>- Returns:
- String string representation of schema attribute syntax
-
-