public final class ParameterDefinition extends Object
Constructor and Description |
---|
ParameterDefinition(String name,
com.orchestranetworks.schema.SchemaTypeName type,
com.onwbp.base.text.UserMessage label,
com.onwbp.base.text.UserMessage description,
ListConstraint listConstraint) |
ParameterDefinition(String name,
com.orchestranetworks.schema.SchemaTypeName type,
com.onwbp.base.text.UserMessage label,
com.onwbp.base.text.UserMessage description,
String defaultValue) |
ParameterDefinition(String name,
com.onwbp.base.text.UserMessage label,
com.onwbp.base.text.UserMessage description,
String customSelection) |
ParameterDefinition(String name,
com.onwbp.base.text.UserMessage label,
com.onwbp.base.text.UserMessage description,
String htmlComponent,
ListConstraint listConstraint,
String defaultValue) |
Modifier and Type | Method and Description |
---|---|
String |
getCustomSelection()
Returns the custom selection type of this parameter definition.
|
String |
getDefaultValue()
Returns the predefined value of a parameter if
isList() is false. |
List<String> |
getDefaultValues()
Returns an empty list if
isList() is false. |
com.onwbp.base.text.UserMessage |
getDescription()
Returns parameter's description.
|
String |
getHTMLComponent()
Returns HTMLComponent type of this parameter definition.
|
com.onwbp.base.text.UserMessage |
getLabel()
Returns a parameter's label.
|
int |
getMaxOccurs()
Returns
1 if isList() is false. |
int |
getMinOccurs()
Returns
1 if isList() is false. |
String |
getName()
Returns name of parameter.
|
com.orchestranetworks.schema.SchemaTypeName |
getType()
Returns a parameter's
SchemaTypeName . |
boolean |
hasHTMLComponent()
Returns
true if current parameter definition has an HTML component. |
boolean |
isCustomSelection()
Returns
true if current parameter definition is a custom selection. |
boolean |
isList()
Returns
true if its definition is a multiple occurrence. |
public ParameterDefinition(String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, String customSelection)
public ParameterDefinition(String name, com.orchestranetworks.schema.SchemaTypeName type, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, String defaultValue)
public ParameterDefinition(String name, com.orchestranetworks.schema.SchemaTypeName type, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, ListConstraint listConstraint)
public ParameterDefinition(String name, com.onwbp.base.text.UserMessage label, com.onwbp.base.text.UserMessage description, String htmlComponent, ListConstraint listConstraint, String defaultValue)
public String getName()
public com.orchestranetworks.schema.SchemaTypeName getType()
SchemaTypeName
.public String getHTMLComponent()
public com.onwbp.base.text.UserMessage getLabel()
public com.onwbp.base.text.UserMessage getDescription()
public String getDefaultValue()
isList()
is false.public List<String> getDefaultValues()
isList()
is false.ListConstraint.getDefaultValues()
public boolean isList()
true
if its definition is a multiple occurrence.public boolean hasHTMLComponent()
true
if current parameter definition has an HTML component.public int getMinOccurs()
1
if isList()
is false.ListConstraint.getMinOccurs()
public int getMaxOccurs()
1
if isList()
is false.ListConstraint.getMaxOccurs()
public String getCustomSelection()
public boolean isCustomSelection()
true
if current parameter definition is a custom selection.