public class AttributeSchemaImpl extends Object
AttributeSchemaImpl
provides methods to access the
schema of a configuration parameter.Modifier | Constructor and Description |
---|---|
protected |
AttributeSchemaImpl(Node node)
Constructor used by ServiceSchema to instantiate AttributeSchema objects.
|
Modifier and Type | Method and Description |
---|---|
String |
getAny()
Method to get service specific attributes.
|
Node |
getAttributeSchemaNode() |
String |
getChoiceValueI18NKey(String cValue)
Returns the I18N key for the given choice value.
|
String[] |
getChoiceValues()
Returns the possible choice values for the attribute if the attribute
type is either
SINGLE_CHOICE or
MULTIPLE_CHOICE . |
String[] |
getChoiceValues(Map envParams)
Returns the possible choice values for the attribute if the attribute
type is either
SINGLE_CHOICE or
MULTIPLE_CHOICE . |
protected Map |
getChoiceValuesMap()
Returns the choice values as a Map.
|
protected Map |
getChoiceValuesMap(Map envParams)
Returns the choice values as a Map.
|
protected Set |
getChoiceValuesSet()
Returns the choice values as a set.
|
protected Set |
getChoiceValuesSet(Map envParams)
Returns the choice values as a set.
|
String |
getCosQualifier()
Returns the value of the cosQualifier for this attribute.
|
Set<String> |
getDefaultValues()
Returns the default values of the attribute.
|
Set |
getDefaultValues(Map envParams)
Returns the default values of the attribute.
|
String |
getEndRange()
Returns the end range if the attribute syntax is either
NUMBER_RANGE or DECIMAL_RANGE . |
Set |
getExampleValues()
Returns the example values of the attribute.
|
String |
getFalseValue()
Returns the string value for BooleanFalseValue.
|
String |
getFalseValueI18NKey()
Returns the I18N Key for BooleanFalseValue.
|
String |
getI18NKey()
Returns the I18N key to describe the configuration attribute.
|
AttributeSchema.ListOrder |
getListOrder()
Returns the list order of the attribute, or
null if the list order is not defined. |
int |
getMaxValue()
Returns the maximum number of values for the attribute if the attribute
is of type
MULTIPLE_CHOICE . |
int |
getMinValue()
Returns the minimum number of values for the attribute if the attribute
is of type
MULTIPLE_CHOICE . |
String |
getName()
Retunrs the name of the attribute.
|
Integer |
getOrder()
Returns the order of this attribute.
|
String |
getPropertiesViewBeanURL()
Returns URL of the view bean for the attribute.
|
String |
getResourceName()
Returns the name of the attribute for CREST representation.
|
String |
getStartRange()
Returns the start range if the attribute syntax is either
NUMBER_RANGE or DECIMAL_RANGE . |
AttributeSchema.Syntax |
getSyntax()
Returns the syntax of the attribute.
|
String |
getTrueValue()
Returns the string value for BooleanTrueValue.
|
String |
getTrueValueI18NKey()
Retruns the I18N Key for BooleanTrueValue.
|
AttributeSchema.Type |
getType()
Returns the type of the attribute.
|
AttributeSchema.UIType |
getUIType()
Returns the UI type of the attribute; or null if UI type is not defined.
|
String |
getValidator()
Method to get the validator name for using to validate this service
attribute
|
protected static Set |
getValues(Node node) |
boolean |
isOptional()
Checks if the attribute is an optional attribute.
|
boolean |
isResourceNameAllowed()
Checks if the attribute allows to have resource name.
|
boolean |
isSearchable()
Returns
true if the attribute is searchable;
false otherwise |
boolean |
isServiceIdentifier()
Chekcs if the attribute is a service identifier (i.e., in the case of
LDAP it would be the COS Specifier attribute).
|
boolean |
isStatusAttribute()
Checkds if the attribute is a service's status attribute.
|
String |
toString()
String represenation of the AttributeSchema
|
protected AttributeSchemaImpl(Node node)
public String getName()
public String getResourceName()
public AttributeSchema.Type getType()
public AttributeSchema.UIType getUIType()
public AttributeSchema.ListOrder getListOrder()
null
if the list order is not defined.public AttributeSchema.Syntax getSyntax()
public String getI18NKey()
public Integer getOrder()
public String getCosQualifier()
public Set getDefaultValues(Map envParams)
envParams
- Map of environment parameter to a set of valuespublic Set getExampleValues()
public String[] getChoiceValues()
SINGLE_CHOICE
or
MULTIPLE_CHOICE
.public String[] getChoiceValues(Map envParams)
SINGLE_CHOICE
or
MULTIPLE_CHOICE
.envParams
- Map of environment parameter to a set of valuesprotected Map getChoiceValuesMap()
protected Set getChoiceValuesSet()
protected Map getChoiceValuesMap(Map envParams)
envParams
- Map of environment parameter to a set of valuesprotected Set getChoiceValuesSet(Map envParams)
envParams
- Map of environment parameter to a set of valuespublic String getChoiceValueI18NKey(String cValue)
public String getStartRange()
NUMBER_RANGE
or DECIMAL_RANGE
.public String getEndRange()
NUMBER_RANGE
or DECIMAL_RANGE
.public String getValidator()
public int getMinValue()
MULTIPLE_CHOICE
.public int getMaxValue()
MULTIPLE_CHOICE
.public String getTrueValue()
public String getTrueValueI18NKey()
public String getFalseValue()
public String getFalseValueI18NKey()
public boolean isOptional()
public boolean isServiceIdentifier()
public boolean isResourceNameAllowed()
public boolean isStatusAttribute()
public String getAny()
public String getPropertiesViewBeanURL()
public String toString()
public Node getAttributeSchemaNode()
public boolean isSearchable()
true
if the attribute is searchable;
false
otherwisetrue
if the attribute is an optional attribute;
false
otherwiseCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.