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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final longFor interoperability with possible future changes. -
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 parameter name of this element.Fast method to retrieve the value of the parameter name of this element.Obtains the of parameters.getType()Retrieves the value of the parameter name of 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()
-
Field Details
-
serialVersionUID
protected static final long serialVersionUIDFor interoperability with possible future changes.- See Also:
-
-
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 parameter name of this element. If the configuration parameters do not contain the parameter name this method returns a name of the form 'type_identifier'.- Returns:
- the value of the parameter name if exists; 'type_identifier', otherwise.
-
getNameFromConfiguration
Fast method to retrieve the value of the parameter name of this element. If the configuration parameters do not contain the parameter name this method returns null.- Returns:
- the value of the parameter name if exists; null, otherwise.
-
getUniqueName
Retrieves the value of the parameter name of this element appending its identifier: 'name_identifier'. If the configuration parameters do not contain the parameter name this method returns a name of the form 'type_identifier'.- Returns:
- 'name_identifier' if the value of the parameter name exists; 'type_identifier', otherwise.
-
getParameters
Obtains the of parameters.- Returns:
- the
ParameterStructure.
-
setParameters
Sets the parameters.- Parameters:
parameters- theParameterStructure.
-
toString
-
hashCode
public int hashCode() -
equals
-