public static class ValueOfContractor.Invoke extends Object
Constructor and Description |
---|
Invoke() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
valueOf(Class<T> clazz,
Object value)
Provides the fitting value from a contracting class based on the given value.
|
public static <T> T valueOf(Class<T> clazz, Object value) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
clazz
- The contracting class.value
- The textual value to be fetched.SecurityException
- if access to the method was denied.NoSuchMethodException
- if the contractor does not fulfill the contract by declaring the
required method.IllegalArgumentException
- if the specified method does not fit to the contract.IllegalAccessException
- if the underlying method is not accessible.InvocationTargetException
- if the method invocation causes an exception.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210