public interface Accessible
| Modifier and Type | Method and Description |
|---|---|
default java.lang.Object |
get(java.lang.String attributeName)
Returns a value of an attribute named
attributeName |
default java.lang.String |
get(java.lang.String attributeName,
java.util.Locale locale)
Returns a formatted String value of an attribute named
attributeName, using Locale locale.Default behaviour is : - if a get(attributeName) is null, return null.- if a get(attributeName) is Localizable, return get(attributeName).toString(Locale locale).- otherwise, ignore locale parameter, simply return get(attributeName).toString() value. |
default java.lang.Object get(java.lang.String attributeName)
throws EcmException
attributeNameattributeName - The name of an attribute whose value should be returnedattributeNameEcmException - If something goes wrongdefault java.lang.String get(java.lang.String attributeName,
java.util.Locale locale)
throws EcmException
attributeName, using Locale locale.get(attributeName) is null, return null.get(attributeName) is Localizable, return get(attributeName).toString(Locale locale).locale parameter, simply return get(attributeName).toString() value.attributeName - The name of an attribute whose value should be returnedlocale - Locale that (can) influence the format of a returned StringattributeName, using Locale locale.EcmException - If something goes wrong