public class AttributesDefinition extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
allAttributesNames |
protected Map<String,AttributeConverter<? extends Object>> |
attributesConverters |
protected List<String> |
otherAttributesNames |
protected List<String> |
principalAttributesNames |
| Constructor and Description |
|---|
AttributesDefinition() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttribute(String name,
AttributeConverter<? extends Object> converter)
Add an attribute as a primary one and its converter to this attributes definition.
|
protected void |
addAttribute(String name,
AttributeConverter<? extends Object> converter,
boolean principal)
Add an attribute, its primary aspect and its converter to this attributes definition.
|
Object |
convert(String name,
Object value)
Convert an attribute into the right type.
|
List<String> |
getAllAttributes()
Return all the attributes names.
|
List<String> |
getOtherAttributes()
Return the other attributes names.
|
List<String> |
getPrincipalAttributes()
Return the principal attributes names.
|
protected Map<String,AttributeConverter<? extends Object>> attributesConverters
public List<String> getAllAttributes()
public List<String> getPrincipalAttributes()
public List<String> getOtherAttributes()
protected void addAttribute(String name, AttributeConverter<? extends Object> converter)
name - name of the attributeconverter - converterprotected void addAttribute(String name, AttributeConverter<? extends Object> converter, boolean principal)
name - name of the attributeconverter - converterprincipal - whether the attribute is principalpublic Object convert(String name, Object value)
null,
depending on the ProfileHelper.enforceProfileDefinition setting.name - name of the attributevalue - value of the attributeCopyright © 2016. All Rights Reserved.