public class MetaParameter
extends java.lang.Object
implements java.io.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(java.lang.String name,
boolean multivalued,
boolean mandatory,
java.lang.Class<?> javaType,
boolean hidden,
boolean auditable,
java.lang.String reference,
java.util.Collection<MetaParameter> components)
Creates a MetaParameter.
|
MetaParameter(java.lang.String name,
boolean multivalued,
boolean mandatory,
java.lang.Class<?> javaType,
boolean hidden,
boolean auditable,
java.lang.String reference,
java.util.Set<java.lang.String> allowedReferences,
java.util.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.
|
java.util.Set<java.lang.String> |
getAllowedReferences()
Returns the set of allowed sub-types of the element type that this meta-parameter can reference.
|
java.util.Collection<MetaParameter> |
getComponents()
Obtains the Collection of meta-parameters that compounds this
meta-parameter.
|
<T> DefaultConfiguration<T> |
getDefaultConfiguration() |
java.lang.String |
getDisplayName() |
java.lang.String |
getHelpText() |
java.lang.Class<?> |
getJavaType()
Returns the java type for the values that holds the parameter
represented by this meta-parameter.
|
java.lang.String |
getLabel() |
java.lang.String |
getName()
Obtains the name of the parameter represented by this meta-parameter.
|
java.lang.String |
getReference()
Returns the java type for the values that holds the parameter
represented by this meta-parameter.
|
boolean |
isAuditable()
Obtains whether the parameter represented by this meta-parameter
is sensitive or not.
|
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(java.util.Set<java.lang.String> allowedReferences)
Sets the allowed sub-types of the element type that holds
the parameter represented by this meta-parameter.
|
void |
setAuditable(boolean auditable)
Sets the sensitive attribute for the parameter represented
by this meta-parameter.
|
<T> void |
setDefaultConfiguration(DefaultConfiguration<T> defaultConfiguration) |
void |
setDisplayName(java.lang.String displayName) |
void |
setEnvironmentDependent(boolean environmentDependent)
Sets the environmentDependent attribute for the parameter represented
by this meta-parameter.
|
void |
setHelpText(java.lang.String helpText) |
void |
setHidden(boolean hidden)
Sets the hidden attribute for the parameter represented
by this meta-parameter.
|
void |
setJavaType(java.lang.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(java.lang.String name)
Sets the name for the parameter represented by this meta-parameter.
|
void |
setReference(java.lang.String reference)
Sets the type that holds the meta-configuration for the values of the
parameter represented by this meta-parameter.
|
java.lang.String |
toString() |
protected static final long serialVersionUID
public MetaParameter()
public MetaParameter(java.lang.String name,
boolean multivalued,
boolean mandatory,
java.lang.Class<?> javaType,
boolean hidden,
boolean auditable,
java.lang.String reference,
java.util.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.auditable - specifies if the parameter can be auditable or should be masked instead.reference - components - public MetaParameter(java.lang.String name,
boolean multivalued,
boolean mandatory,
java.lang.Class<?> javaType,
boolean hidden,
boolean auditable,
java.lang.String reference,
java.util.Set<java.lang.String> allowedReferences,
java.util.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.auditable - specifies if the parameter can be auditable or should be masked instead.reference - components - public java.lang.String getLabel()
public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
displayName - public java.lang.String getHelpText()
public void setHelpText(java.lang.String helpText)
helpText - public java.lang.String getName()
public void setName(java.lang.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 java.lang.Class<?> getJavaType()
public void setJavaType(java.lang.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 boolean isAuditable()
public void setAuditable(boolean auditable)
auditable - the auditable attribute. true
specifies a parameter that holds sensitive information so it
should be protected and will be replaced by asterisks when printing it.public java.lang.String getReference()
public void setReference(java.lang.String reference)
reference - the type that holds the meta-configuration for the
values of the parameter represented by this meta-parameter.public java.util.Set<java.lang.String> getAllowedReferences()
public void setAllowedReferences(java.util.Set<java.lang.String> allowedReferences)
allowedReferences - the allowed sub-types this meta-parameter can reference.public java.util.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).public <T> DefaultConfiguration<T> getDefaultConfiguration()
public <T> void setDefaultConfiguration(DefaultConfiguration<T> defaultConfiguration)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2024 Denodo Technologies. All rights reserved.