Class MetaParameter
java.lang.Object
com.denodo.configuration.metadata.MetaParameter
- All Implemented Interfaces:
Serializable
MetaParameter encapsulates the meta-information of a parameter required by
a specific Custom Element.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final longFor interoperability with possible future changes. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty MetaParameter.MetaParameter(String name, boolean multivalued, boolean mandatory, Class<?> javaType, boolean hidden, boolean auditable, String reference, Collection<MetaParameter> components) Creates a MetaParameter.MetaParameter(String name, boolean multivalued, boolean mandatory, Class<?> javaType, boolean hidden, boolean auditable, String reference, Set<String> allowedReferences, Collection<MetaParameter> components) Creates a MetaParameter. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponent(MetaParameter metaParam) Adds a meta-parameter to the compound meta-parameter.Returns the set of allowed sub-types of the element type that this meta-parameter can reference.Obtains the Collection of meta-parameters that compounds this meta-parameter.<T> DefaultConfiguration<T>Class<?>Returns the java type for the values that holds the parameter represented by this meta-parameter.getLabel()getName()Obtains the name of the parameter represented by this meta-parameter.Returns the java type for the values that holds the parameter represented by this meta-parameter.booleanObtains whether the parameter represented by this meta-parameter is sensitive or not.booleanObtains whether the parameter represented by this meta-parameter is environment-dependent or not.booleanisHidden()Obtains whether the parameter represented by this meta-parameter is hidden or not.booleanObtains whether the parameter represented by this meta-parameter is mandatory or not.booleanObtains whether the parameter represented by this meta-parameter is multivalued or not.voidsetAllowedReferences(Set<String> allowedReferences) Sets the allowed sub-types of the element type that holds the parameter represented by this meta-parameter.voidsetAuditable(boolean auditable) Sets the sensitive attribute for the parameter represented by this meta-parameter.<T> voidsetDefaultConfiguration(DefaultConfiguration<T> defaultConfiguration) voidsetDisplayName(String displayName) voidsetEnvironmentDependent(boolean environmentDependent) Sets the environmentDependent attribute for the parameter represented by this meta-parameter.voidsetHelpText(String helpText) voidsetHidden(boolean hidden) Sets the hidden attribute for the parameter represented by this meta-parameter.voidsetJavaType(Class<?> javaType) Sets the java type for the values that holds the parameter represented by this meta-parameter.voidsetMandatory(boolean mandatory) Sets the mandatory attribute for the parameter represented by this meta-parameter.voidsetMultivalued(boolean multivalued) Sets the multivalued attribute for the parameter represented by this meta-parameter.voidSets the name for the parameter represented by this meta-parameter.voidsetReference(String reference) Sets the type that holds the meta-configuration for the values of the parameter represented by this meta-parameter.toString()
-
Field Details
-
serialVersionUID
protected static final long serialVersionUIDFor interoperability with possible future changes.- See Also:
-
-
Constructor Details
-
MetaParameter
public MetaParameter()Creates an empty MetaParameter. -
MetaParameter
public MetaParameter(String name, boolean multivalued, boolean mandatory, Class<?> javaType, boolean hidden, boolean auditable, String reference, Collection<MetaParameter> components) Creates a MetaParameter.- Parameters:
name- the name.multivalued- the multivalued attribute.truespecifies 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-
-
MetaParameter
public MetaParameter(String name, boolean multivalued, boolean mandatory, Class<?> javaType, boolean hidden, boolean auditable, String reference, Set<String> allowedReferences, Collection<MetaParameter> components) Creates a MetaParameter.- Parameters:
name- the name.multivalued- the multivalued attribute.truespecifies 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-
-
-
Method Details
-
getLabel
- Returns:
-
getDisplayName
- Returns:
-
setDisplayName
- Parameters:
displayName-
-
getHelpText
- Returns:
-
setHelpText
- Parameters:
helpText-
-
getName
Obtains the name of the parameter represented by this meta-parameter.- Returns:
- the name of the parameter represented by this meta-parameter.
-
setName
Sets the name for the parameter represented by this meta-parameter.- Parameters:
name- the name for the parameter represented by this meta-parameter.
-
isMultivalued
public boolean isMultivalued()Obtains whether the parameter represented by this meta-parameter is multivalued or not.- Returns:
- whether the parameter represented by this meta-parameter is multivalued or not.
-
setMultivalued
public void setMultivalued(boolean multivalued) Sets the multivalued attribute for the parameter represented by this meta-parameter.- Parameters:
multivalued- the multivalued attribute.truespecifies a parameter which can hold multiple values.
-
isMandatory
public boolean isMandatory()Obtains whether the parameter represented by this meta-parameter is mandatory or not.- Returns:
- whether the parameter represented by this meta-parameter is mandatory or not.
-
setMandatory
public void setMandatory(boolean mandatory) Sets the mandatory attribute for the parameter represented by this meta-parameter.- Parameters:
mandatory- the mandatory attribute.truespecifies a parameter that is required.
-
getJavaType
Returns the java type for the values that holds the parameter represented by this meta-parameter.- Returns:
- the java type for the values that holds the parameter represented by this meta-parameter.
-
setJavaType
Sets the java type for the values that holds the parameter represented by this meta-parameter.- Parameters:
javaType- the java type for the values that holds the parameters represented by this meta-parameter.
-
isHidden
public boolean isHidden()Obtains whether the parameter represented by this meta-parameter is hidden or not.- Returns:
- whether the parameter represented by this meta-parameter is hidden or not.
-
setHidden
public void setHidden(boolean hidden) Sets the hidden attribute for the parameter represented by this meta-parameter.- Parameters:
hidden- the hidden attribute.truespecifies a parameter that holds sensitive information so it should be protected.
-
isAuditable
public boolean isAuditable()Obtains whether the parameter represented by this meta-parameter is sensitive or not. In case that it is sensitive it will be masked when printing it.- Returns:
- whether the parameter represented by this meta-parameter is sensitive or not.
-
setAuditable
public void setAuditable(boolean auditable) Sets the sensitive attribute for the parameter represented by this meta-parameter.- Parameters:
auditable- the auditable attribute.truespecifies a parameter that holds sensitive information so it should be protected and will be replaced by asterisks when printing it.
-
getReference
Returns the java type for the values that holds the parameter represented by this meta-parameter.- Returns:
- the java type for the values that holds the parameter represented by this meta-parameter.
-
setReference
Sets the type that holds the meta-configuration for the values of the parameter represented by this meta-parameter.- Parameters:
reference- the type that holds the meta-configuration for the values of the parameter represented by this meta-parameter.
-
getAllowedReferences
Returns the set of allowed sub-types of the element type that this meta-parameter can reference.- Returns:
- the set of allowed sub-types of the element type that this meta-parameter can reference.
-
setAllowedReferences
Sets the allowed sub-types of the element type that holds the parameter represented by this meta-parameter.- Parameters:
allowedReferences- the allowed sub-types this meta-parameter can reference.
-
getComponents
Obtains the Collection of meta-parameters that compounds this meta-parameter.- Returns:
- the Collection of
MetaParameterthat compounds this meta-parameter.
-
addComponent
Adds a meta-parameter to the compound meta-parameter.- Parameters:
metaParam- theMetaParameterto be added.
-
isEnvironmentDependent
public boolean isEnvironmentDependent()Obtains whether the parameter represented by this meta-parameter is environment-dependent or not.- Returns:
- whether the parameter represented by this meta-parameter is environment-dependent or not.
-
setEnvironmentDependent
public void setEnvironmentDependent(boolean environmentDependent) Sets the environmentDependent attribute for the parameter represented by this meta-parameter.- Parameters:
environmentDependent- the environmentDependent attribute.truespecifies a parameter that holds sensitive information than can change between different environments (e.g. development, testing, production).
-
getDefaultConfiguration
-
setDefaultConfiguration
-
toString
-