Class ArrayResolver
- java.lang.Object
-
- org.forgerock.openig.resolver.ArrayResolver
-
-
Field Summary
-
Fields inherited from interface org.forgerock.openig.resolver.Resolver
UNRESOLVED
-
-
Constructor Summary
Constructors Constructor Description ArrayResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget(Object object, Object element)Attempts to resolve an element of an object.Class<?>getKey()Returnsnull, as arrays are not resolved through type discovery.Objectput(Object object, Object element, Object value)Attempts to set the value of an element of an object.
-
-
-
Method Detail
-
getKey
public Class<?> getKey()
Returnsnull, as arrays are not resolved through type discovery.
-
get
public Object get(Object object, Object element)
Description copied from interface:ResolverAttempts to resolve an element of an object. Theobjectargument references an object for which a named or indexed element is being requested. Theelementargument specifies the element that is being requested from the referenced object.The
elementargument can be either aStringor anIntegerobject. A string represents a named element of an associative array; an integer represents the index of an ordered array.If the resolver cannot resolve the requested element, then
Resolver.UNRESOLVEDshould be returned. This allows other resovlers of more generic classes or interfaces to potentially resolve the requested element.- Specified by:
getin interfaceResolver- Parameters:
object- the object in which to resolve the specified element.element- the element to resolve within the specified object.- Returns:
- the value of the resolved element, or
Resolver.UNRESOLVEDif it cannot be resolved.
-
put
public Object put(Object object, Object element, Object value)
Description copied from interface:ResolverAttempts to set the value of an element of an object. Theobjectargument references an object for which a named or indexed element is to be set. Theelementargument specifies which element value is to be set. Thevalueargument specifies the value to be set.The
elementargument can be either aStringor anIntegerobject. A string represents a named element of an associative array; an integer represents the index of an ordered array.If the resolver cannot resolve the requested element or set its value, then
Resolver.UNRESOLVEDshould be returned. This allows other resovlers of more generic classes or interfaces to potentially resolve the requested element.- Specified by:
putin interfaceResolver- Parameters:
object- the object in which to resolve the specified element.element- the element within the specified object whose value is to be set.value- the value to set the element to.- Returns:
- the previous value of the element,
nullif no previous value, orResolver.UNRESOLVEDif it cannot be resolved.
-
-