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
Constructors -
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) booleanstatic QuestionfieldifyQuestion(Question originalQuestion, Class<?> clazz, String fieldName) Returns a newQuestionthat is modified for representing a sub-question for a given fieldstatic QuestionfieldifyQuestion(Question originalQuestion, Field field) Returns a newQuestionthat is modified for representing a sub-question for a given fieldstatic Stringstatic StringPulls 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, wrapLookupNullOnMissingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
Questionthat is modified for representing a sub-question for a given field -
fieldifyQuestion
Returns a new
Questionthat is modified for representing a sub-question for a given field- Parameters:
originalQuestion- the question with aCompositeannotated type to modifyfield- aCompositeFieldannotated field that the new question will be for
-
canBind
-
bindValue
-