Class InputDefinition
- java.lang.Object
-
- com.orchestranetworks.addon.dpra.function.InputDefinition
-
public final class InputDefinition extends java.lang.ObjectSpecifies the input definition of a function.- Since:
- 4.2.0
- See Also:
FunctionDefinition.getInputDefinitions()
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InputDefinitionforBoolean(java.lang.String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, boolean defaultValue)Creates an instance of boolean input.static InputDefinitionforDateTime(java.lang.String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, java.util.Date defaultValue)Creates an instance of date time input.static InputDefinitionforDateTimes(java.lang.String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, java.util.Date... defaultValues)Creates an instance of multi-valued date time input.static InputDefinitionforDecimal(java.lang.String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, java.math.BigDecimal defaultValue)Creates an instance of decimal input.static InputDefinitionforDecimals(java.lang.String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, java.math.BigDecimal... defaultValues)Creates an instance of multi-valued decimal input.static InputDefinitionforInteger(java.lang.String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, int defaultValue)Creates an instance of integer input.static InputDefinitionforIntegers(java.lang.String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, java.lang.Integer... defaultValues)Creates an instance of multi-valued integer input.static InputDefinitionforString(java.lang.String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, java.lang.String defaultValue)Creates an instance of string input.static InputDefinitionforStrings(java.lang.String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, java.lang.String... defaultValues)Creates an instance of multi-valued string input.com.orchestranetworks.schema.SchemaTypeNamegetDataType()Return the data type.com.onwbp.base.text.UserMessagegetDescription()Returns the description.com.onwbp.base.text.UserMessagegetLabel()Returns the input definition label.java.lang.StringgetName()Returns the unique name.booleanisMultiValued()Returnstrueif the input has multiple values.
-
-
-
Method Detail
-
forBoolean
public static InputDefinition forBoolean(java.lang.String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, boolean defaultValue)
Creates an instance of boolean input.- Parameters:
name- The unique name of the input.label- The localized label.description- The localized description.defaultValue- The default value.
-
forDateTime
public static InputDefinition forDateTime(java.lang.String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, java.util.Date defaultValue)
Creates an instance of date time input.- Parameters:
name- The unique name of the input.label- The localized label.description- The localized description.defaultValue- The default value.
-
forDateTimes
public static InputDefinition forDateTimes(java.lang.String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, java.util.Date... defaultValues)
Creates an instance of multi-valued date time input.- Parameters:
name- The unique name of the input.label- The localized label.description- The localized description.defaultValues- The default values.
-
forDecimal
public static InputDefinition forDecimal(java.lang.String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, java.math.BigDecimal defaultValue)
Creates an instance of decimal input.- Parameters:
name- The unique name of the input.label- The localized label.description- The localized description.defaultValue- The default value.
-
forDecimals
public static InputDefinition forDecimals(java.lang.String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, java.math.BigDecimal... defaultValues)
Creates an instance of multi-valued decimal input.- Parameters:
name- The unique name of the input.label- The localized label.description- The localized description.defaultValues- The default values.
-
forInteger
public static InputDefinition forInteger(java.lang.String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, int defaultValue)
Creates an instance of integer input.- Parameters:
name- The unique name of the input.label- The localized label.description- The localized description.defaultValue- The default value.
-
forIntegers
public static InputDefinition forIntegers(java.lang.String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, java.lang.Integer... defaultValues)
Creates an instance of multi-valued integer input.- Parameters:
name- The unique name of the input.label- The localized label.description- The localized description.defaultValues- The default values.
-
forString
public static InputDefinition forString(java.lang.String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, java.lang.String defaultValue)
Creates an instance of string input.- Parameters:
name- The unique name of the input.label- The localized label.description- The localized description.defaultValue- The default value.
-
forStrings
public static InputDefinition forStrings(java.lang.String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, java.lang.String... defaultValues)
Creates an instance of multi-valued string input.- Parameters:
name- The unique name of the input.label- The localized label.description- The localized description.defaultValues- The default values.
-
getName
public java.lang.String getName()
Returns the unique name.
-
getLabel
public com.onwbp.base.text.UserMessage getLabel()
Returns the input definition label.
-
getDescription
public com.onwbp.base.text.UserMessage getDescription()
Returns the description.
-
getDataType
public com.orchestranetworks.schema.SchemaTypeName getDataType()
Return the data type.
-
isMultiValued
public boolean isMultiValued()
Returnstrueif the input has multiple values.
-
-