public class MetaParameter extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static long |
serialVersionUID
For interoperability with possible future changes.
|
| Constructor and Description |
|---|
MetaParameter()
Creates an empty MetaParameter.
|
MetaParameter(String name,
boolean multivalued,
boolean mandatory,
Class<?> javaType,
boolean hidden,
String reference,
Collection<MetaParameter> components)
Creates a MetaParameter.
|
MetaParameter(String name,
boolean multivalued,
boolean mandatory,
Class<?> javaType,
boolean hidden,
String reference,
Set<String> allowedReferences,
Collection<MetaParameter> components)
Creates a MetaParameter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(MetaParameter metaParam)
Adds a meta-parameter to the compound meta-parameter.
|
Set<String> |
getAllowedReferences()
Returns the set of allowed sub-types of the element type that this meta-parameter can reference.
|
Collection<MetaParameter> |
getComponents()
Obtains the Collection of meta-parameters that compounds this
meta-parameter.
|
String |
getDisplayName() |
String |
getHelpText() |
Class<?> |
getJavaType()
Returns the java type for the values that holds the parameter
represented by this meta-parameter.
|
String |
getLabel() |
String |
getName()
Obtains the name of the parameter represented by this meta-parameter.
|
String |
getReference()
Returns the java type for the values that holds the parameter
represented by this meta-parameter.
|
boolean |
isEnvironmentDependent()
Obtains whether the parameter represented by this meta-parameter is environment-dependent or not.
|
boolean |
isHidden()
Obtains whether the parameter represented by this meta-parameter
is hidden or not.
|
boolean |
isMandatory()
Obtains whether the parameter represented by this meta-parameter
is mandatory or not.
|
boolean |
isMultivalued()
Obtains whether the parameter represented by this meta-parameter
is multivalued or not.
|
void |
setAllowedReferences(Set<String> allowedReferences)
Sets the allowed sub-types of the element type that holds
the parameter represented by this meta-parameter.
|
void |
setDisplayName(String displayName) |
void |
setEnvironmentDependent(boolean environmentDependent)
Sets the environmentDependent attribute for the parameter represented
by this meta-parameter.
|
void |
setHelpText(String helpText) |
void |
setHidden(boolean hidden)
Sets the hidden attribute for the parameter represented
by this meta-parameter.
|
void |
setJavaType(Class<?> javaType)
Sets the java type for the values that holds the parameter
represented by this meta-parameter.
|
void |
setMandatory(boolean mandatory)
Sets the mandatory attribute for the parameter represented
by this meta-parameter.
|
void |
setMultivalued(boolean multivalued)
Sets the multivalued attribute for the parameter represented
by this meta-parameter.
|
void |
setName(String name)
Sets the name for the parameter represented by this meta-parameter.
|
void |
setReference(String reference)
Sets the type that holds the meta-configuration for the values of the
parameter represented by this meta-parameter.
|
String |
toString() |
protected static final long serialVersionUID
public MetaParameter()
public MetaParameter(String name, boolean multivalued, boolean mandatory, Class<?> javaType, boolean hidden, String reference, Collection<MetaParameter> components)
name - the name.multivalued - the multivalued attribute. true
specifies a parameter which can hold multiple values.mandatory - javaType - the java type for the values that hold the parameter
represented by this meta-parameter.hidden - specifies sensitive information that should be protected.reference - components - public MetaParameter(String name, boolean multivalued, boolean mandatory, Class<?> javaType, boolean hidden, String reference, Set<String> allowedReferences, Collection<MetaParameter> components)
name - the name.multivalued - the multivalued attribute. true
specifies a parameter which can hold multiple values.mandatory - javaType - the java type for the values that hold the parameter
represented by this meta-parameter.hidden - specifies sensitive information that should be protected.reference - components - public String getLabel()
public String getDisplayName()
public void setDisplayName(String displayName)
displayName - public String getHelpText()
public void setHelpText(String helpText)
helpText - public String getName()
public void setName(String name)
name - the name for the parameter represented by this
meta-parameter.public boolean isMultivalued()
public void setMultivalued(boolean multivalued)
multivalued - the multivalued attribute. true
specifies a parameter which can hold multiple values.public boolean isMandatory()
public void setMandatory(boolean mandatory)
mandatory - the mandatory attribute. true
specifies a parameter that is required.public Class<?> getJavaType()
public void setJavaType(Class<?> javaType)
javaType - the java type for the values that holds the
parameters represented by this meta-parameter.public boolean isHidden()
public void setHidden(boolean hidden)
hidden - the hidden attribute. true
specifies a parameter that holds sensitive information so it
should be protected.public String getReference()
public void setReference(String reference)
reference - the type that holds the meta-configuration for the
values of the parameter represented by this meta-parameter.public Set<String> getAllowedReferences()
public void setAllowedReferences(Set<String> allowedReferences)
allowedReferences - the allowed sub-types this meta-parameter can reference.public Collection<MetaParameter> getComponents()
MetaParameter that compounds
this meta-parameter.public void addComponent(MetaParameter metaParam)
metaParam - the MetaParameter to be added.public boolean isEnvironmentDependent()
public void setEnvironmentDependent(boolean environmentDependent)
environmentDependent - the environmentDependent attribute. true specifies a parameter that holds sensitive
information than can change between different environments (e.g. development, testing, production).Copyright © 2024 Denodo Technologies. All rights reserved.