Package com.im.df.api
Interface DFSchemaProvider.State
-
- Enclosing interface:
- DFSchemaProvider
public static interface DFSchemaProvider.State
The schema init step interface. All schema init steps implement this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.String
getName()
Gets the name of this step.java.lang.String
getNextPhaseCommand()
Gets the command text for the next step.java.lang.String
getNextPhaseProgressName()
Gets the progress bar text for the next step.java.lang.Object
getOptions()
Gets the options bean for this step.DFSchemaProvider.StepInfo
getResult()
Gets the result of this step.DFSchema
getSchema()
Gets the IJC schema, if available.boolean
isInitial()
Determines whether this step is the initial step.default boolean
isMandatory()
Tells if this step is mandatory.default boolean
requiresConfirmation()
Tells if this step requires user confirmation.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Gets the name of this step. For example "disconnected", "logged in" etc.- Returns:
- The name of this schema init step.
-
getNextPhaseCommand
java.lang.String getNextPhaseCommand()
Gets the command text for the next step. This text is usually used as a button text, for example "Login", "Connect", etc.- Returns:
- The next step command name.
-
getNextPhaseProgressName
java.lang.String getNextPhaseProgressName()
Gets the progress bar text for the next step. For example "Logging", "Connecting", etc.- Returns:
- The next step progress bar text.
-
getOptions
java.lang.Object getOptions()
Gets the options bean for this step. The object returned from this method is treated as a javabean and should have a bean info and a customizer available.- Returns:
- The options javabean or
null
.
-
getSchema
DFSchema getSchema()
Gets the IJC schema, if available. The final step in the schema init process should return theDFSchema
that was created during the process. All other steps should returnnull
. If the schema instance can't be created for any reason even the final schema init step can returnnull
.- Returns:
- The active IJC schema instance.
-
getResult
DFSchemaProvider.StepInfo getResult()
Gets the result of this step.- Returns:
- The result.
-
isInitial
boolean isInitial()
Determines whether this step is the initial step. The initial step is the first step in the schema init process.- Returns:
true
if this step is the initial schema init step,false
otherwise
-
isMandatory
default boolean isMandatory()
Tells if this step is mandatory. If the step is mandatory and not performed, next schema step cannot be done.- Returns:
true
if this step is mandatory,false
otherwise- Since:
- 21.15.0
-
requiresConfirmation
default boolean requiresConfirmation()
Tells if this step requires user confirmation. This is useful for steps that are not reversible.- Returns:
true
if this step needs to be confirmed by a user (admin),false
otherwise- Since:
- 21.15.0
-
-