Class BasicNamingFunction<T>
- java.lang.Object
-
- net.shibboleth.idp.attribute.transcoding.BasicNamingFunction<T>
-
- Type Parameters:
T- type of object
- All Implemented Interfaces:
AttributeTranscoderRegistry.NamingFunction<T>
public class BasicNamingFunction<T> extends Object implements AttributeTranscoderRegistry.NamingFunction<T>
Basic implementation of aAttributeTranscoderRegistry.NamingFunction.- Since:
- 4.1.0
-
-
Field Summary
Fields Modifier and Type Field Description private Function<T,String>namingFunctionNaming function.private Class<T>objectTypeObject type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Function<T,String>getFunction()Gets the function that produces a name for an input object.Class<T>getType()Gets the type of object supported.
-
-
-
Constructor Detail
-
BasicNamingFunction
public BasicNamingFunction(@Nonnull @ParameterName(name="claz") Class<T> claz, @Nonnull @ParameterName(name="function") Function<T,String> function)
Constructor.- Parameters:
claz- object typefunction- naming function
-
-
Method Detail
-
getType
@Nonnull public Class<T> getType()
Gets the type of object supported.- Specified by:
getTypein interfaceAttributeTranscoderRegistry.NamingFunction<T>- Returns:
- object type
-
getFunction
@Nonnull public Function<T,String> getFunction()
Gets the function that produces a name for an input object.- Specified by:
getFunctionin interfaceAttributeTranscoderRegistry.NamingFunction<T>- Returns:
- naming function
-
-