Package nz.org.riskscape.wizard.bind
Class CompositeBinder
java.lang.Object
nz.org.riskscape.engine.bind.BaseBinder
nz.org.riskscape.wizard.bind.CompositeBinder
- All Implemented Interfaces:
nz.org.riskscape.engine.bind.ParameterBinder
,nz.org.riskscape.engine.Identified
public class CompositeBinder
extends nz.org.riskscape.engine.bind.BaseBinder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> nz.org.riskscape.problem.ResultOrProblems<T>
bindValue
(nz.org.riskscape.engine.bind.BindingContext context, Object value, Class<T> destinationType) boolean
static Question
fieldifyQuestion
(Question originalQuestion, Class<?> clazz, String fieldName) Returns a newQuestion
that is modified for representing a sub-question for a given fieldstatic Question
fieldifyQuestion
(Question originalQuestion, Field field) Returns a newQuestion
that is modified for representing a sub-question for a given fieldstatic String
static String
Pulls the field name back out of a sub-question we've already createdMethods inherited from class nz.org.riskscape.engine.bind.BaseBinder
bind, getId, wrapLookup, wrapLookupNullOnMissing
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.Identified
getIdentifiedClass
-
Constructor Details
-
CompositeBinder
public CompositeBinder()
-
-
Method Details
-
fieldName
- Returns:
- the name that would be appended to the sub-question for this field
-
fieldName
Pulls the field name back out of a sub-question we've already created
-
fieldifyQuestion
public static Question fieldifyQuestion(Question originalQuestion, Class<?> clazz, String fieldName) Returns a new
Question
that is modified for representing a sub-question for a given field -
fieldifyQuestion
Returns a new
Question
that is modified for representing a sub-question for a given field- Parameters:
originalQuestion
- the question with aComposite
annotated type to modifyfield
- aCompositeField
annotated field that the new question will be for
-
canBind
-
bindValue
-