public interface ValueUtils
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(Item item,
String qualifier,
Language lang)
Returns a value of the attribute in the specified language.
|
Object |
getAttribute(Item item,
String qualifier,
String langIso)
Returns a value of the attribute in the specified language.
|
void |
setAttribute(Item item,
String qualifier,
Object value,
Language lang)
Sets the value of the attribute in the specified language.
|
void |
setAttribute(Item item,
String qualifier,
Object value,
String langIso)
Sets the value of the attribute in the specified language.
|
Object |
transformToRawValue(String value,
EnumerationValue valueType)
Parses the given String and tries to return an object of the specified value type that represents the String's content
|
String |
transformToString(Object rawValue,
EnumerationValue valueType)
Return the given object to a String, representing its value
|
String transformToString(Object rawValue, EnumerationValue valueType) throws ParseException
rawValue - An arbitrary objectvalueType - A placeholder's value type (see: enumtype 'PlaceholderValueType') that should be considered while
transforming the object to a StringParseException - If an error occurs while transforming the value to a StringObject transformToRawValue(String value, EnumerationValue valueType) throws ParseException
value - A StringvalueType - The value type (see: enumtype 'PlaceholderValueType') that the returned object should be ofParseException - If an error occurs while transforming the String to an objectObject getAttribute(Item item, String qualifier, Language lang) throws JaloSecurityException
item - the Item to get the value forqualifier - the attribute qualifier to get the value oflang - the language to get the value inJaloSecurityException - if Item.getAttribute() throws itObject getAttribute(Item item, String qualifier, String langIso) throws JaloSecurityException
item - the Item to get the value forqualifier - the attribute qualifier to get the value oflangIso - the iso code of the language to get the value inJaloSecurityException - if Item.getAttribute() throws itInvalidParameterException - if no language with iso code {code}langIso{code} existsvoid setAttribute(Item item, String qualifier, Object value, Language lang) throws JaloBusinessException
item - the Item to set the value forqualifier - the attribute qualifier to set the value ofvalue - the value to be setlang - the language to set the value inJaloBusinessException - if Item.setAttribute() throws itvoid setAttribute(Item item, String qualifier, Object value, String langIso) throws JaloBusinessException
item - the Item to set the value forqualifier - the attribute qualifier to set the value ofvalue - the value to be setlangIso - the iso code of the language to set the value inJaloBusinessException - if Item.setAttribute() throws itInvalidParameterException - if no language with iso code {code}langIso{code} existsCopyright © 2017 SAP SE. All Rights Reserved.