Package com.denodo.configuration
Class Configuration
java.lang.Object
com.denodo.configuration.Configuration
- All Implemented Interfaces:
Serializable
Encapsulates the configuration of a specific Custom Element.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConfiguration(int id, String type, String subType, boolean draft, boolean disabled, ParameterStructure parameters) Configuration(int id, String type, String subType, boolean draft, ParameterStructure parameters) Configuration(int id, String type, String subType, ParameterStructure parameters) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetId()getName()Fast method to retrieve the value of the parameternameof this element.Fast method to retrieve the value of the parameternameof this element.Obtains the of parameters.getType()Retrieves the value of the parameternameof this element appending its identifier: 'name_identifier'.inthashCode()booleanbooleanisDraft()voidsetDisabled(boolean disabled) voidsetDraft(boolean draft) voidsetParameters(ParameterStructure parameters) Sets the parameters.voidsetSubType(String subType) voidtoString()
-
Constructor Details
-
Configuration
public Configuration() -
Configuration
-
Configuration
public Configuration(int id, String type, String subType, boolean draft, ParameterStructure parameters) -
Configuration
public Configuration(int id, String type, String subType, boolean draft, boolean disabled, ParameterStructure parameters)
-
-
Method Details
-
getId
public int getId()- Returns:
- the id
-
getType
- Returns:
- the type
-
setType
- Parameters:
type- the type to set
-
getSubType
- Returns:
- the subType
-
setSubType
- Parameters:
subType- the subType to set
-
isDraft
public boolean isDraft()- Returns:
- the draft
-
setDraft
public void setDraft(boolean draft) - Parameters:
draft- the draft to set
-
isDisabled
public boolean isDisabled()- Returns:
- the disabled
-
setDisabled
public void setDisabled(boolean disabled) - Parameters:
disabled- the disabled to set
-
getName
Fast method to retrieve the value of the parameternameof this element. If the configuration parameters do not contain the parameternamethis method returns a name of the form 'type_identifier'.- Returns:
- the value of the parameter
nameif exists; 'type_identifier', otherwise.
-
getNameFromConfiguration
Fast method to retrieve the value of the parameternameof this element. If the configuration parameters do not contain the parameternamethis method returns null.- Returns:
- the value of the parameter
nameif exists; null, otherwise.
-
getUniqueName
Retrieves the value of the parameternameof this element appending its identifier: 'name_identifier'. If the configuration parameters do not contain the parameternamethis method returns a name of the form 'type_identifier'.- Returns:
- 'name_identifier' if the value of the parameter
nameexists; 'type_identifier', otherwise.
-
getParameters
Obtains the of parameters.- Returns:
- the
ParameterStructure.
-
setParameters
Sets the parameters.- Parameters:
parameters- theParameterStructure.
-
toString
-
hashCode
public int hashCode() -
equals
-