public class DataNormalizationRule extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
class |
DataNormalizationRule.Component
One transformation (either INSERTION or DELETION)
|
static class |
DataNormalizationRule.EnumRuleComponentType
The type of the modification to be done by one component of the rule
|
Constructor and Description |
---|
DataNormalizationRule(Integer id,
Integer groupId,
String label,
String description,
String... components)
constructs new rule with the specified components
|
Modifier and Type | Method and Description |
---|---|
void |
addComponent(Integer id,
DataNormalizationRule.EnumRuleComponentType type,
String modification,
String description)
adds new component to a rule
|
void |
addComponent(Integer id,
String type,
String modification,
String description)
adds new component to a rule
|
DataNormalizationRule.Component[] |
getComponents() |
String[] |
getComponents(String graph)
constructs SPARULs for all the components restricted to a concrete graph
|
String |
getDescription() |
Integer |
getGroupId() |
Integer |
getId() |
String |
getLabel() |
void |
setComponents(ArrayList<DataNormalizationRule.Component> components) |
void |
setDescription(String description) |
void |
setGroupId(Integer groupId) |
void |
setId(Integer id) |
void |
setLabel(String label) |
public DataNormalizationRule(Integer id, Integer groupId, String label, String description, String... components) throws DataNormalizationException
id
- the rule IDgroupId
- the group ID the rule should belong todescription
- the description of what the rule is supposed to docomponents
- the list of triples (component type, component code, component description)DataNormalizationException
public void setId(Integer id)
public void setGroupId(Integer groupId)
public void setLabel(String label)
public void setDescription(String description)
public void setComponents(ArrayList<DataNormalizationRule.Component> components)
public Integer getId()
public Integer getGroupId()
public String getLabel()
public String getDescription()
public DataNormalizationRule.Component[] getComponents()
public String[] getComponents(String graph)
graph
- the graph name to restrict the SPARULs topublic void addComponent(Integer id, String type, String modification, String description) throws DataNormalizationException
type
- the type of the component (either "INSERT" or "DELETE")modification
- the code of the componentdescription
- the description explaining what the component should doDataNormalizationException
public void addComponent(Integer id, DataNormalizationRule.EnumRuleComponentType type, String modification, String description)
id
- the id of the componenttype
- the type of the componentmodification
- the code of the componentdescription
- the description explaining what the component should doDataNormalizationException
Copyright © 2013. All Rights Reserved.