Interface ScriptedIdPAttribute
-
- All Known Implementing Classes:
BasicAttribute,ScriptedIdPAttributeImpl
public interface ScriptedIdPAttributeThis is the API which is available to ECMAScripted attributes. This API is not targetted at JAVA users.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddValue(Object what)Add the provided object to the attribute values, policing for type.StringgetId()Get the encapsulated attributeId.IdPAttributegetNativeAttribute()return the underlying attribute.Collection<Object>getValues()Return all the values, but withStringAttributeValuevalues returned as strings.
-
-
-
Method Detail
-
getValues
@Nullable Collection<Object> getValues() throws ResolutionException
Return all the values, but withStringAttributeValuevalues returned as strings.- Returns:
- a modifiable collection of the string attributes
- Throws:
ResolutionException- if the script has calledgetNativeAttribute()
-
getNativeAttribute
@Nonnull IdPAttribute getNativeAttribute() throws ResolutionException
return the underlying attribute.- Returns:
- the attribute
- Throws:
ResolutionException- if the script has called getValues.
-
addValue
void addValue(@Nullable Object what) throws ResolutionExceptionAdd the provided object to the attribute values, policing for type.- Parameters:
what- aStringor aIdPAttributeValueto add.- Throws:
ResolutionException- if the provided value is of the wrong type
-
-