Package org.pentaho.di.imp.rule
Interface ImportRuleInterface
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
BaseImportRule
,DatabaseConfigurationImportRule
,JobHasANoteImportRule
,JobHasDescriptionImportRule
,JobHasJobLogConfiguredImportRule
,JobHasNoDisabledHopsImportRule
,TransformationHasANoteImportRule
,TransformationHasDescriptionImportRule
,TransformationHasNoDisabledHopsImportRule
,TransformationHasTransLogConfiguredImportRule
-
Method Summary
Modifier and TypeMethodDescriptionclone()
getId()
getXML()
boolean
boolean
isUnique()
void
void
setEnabled
(boolean enabled) void
verifyRule
(Object subject) Validate the rule against a subject (transformation, job, database, ...)
-
Method Details
-
getId
String getId()- Returns:
- The import rule plugin ID
-
setId
- Parameters:
string
- Sets the plugin ID of this import rule
-
verifyRule
Validate the rule against a subject (transformation, job, database, ...)- Parameters:
subject
- The subject to validate against- Returns:
- The feedback list consists of a series of approvals and/or warnings and/or errors.
-
isEnabled
boolean isEnabled()- Returns:
- True if this rule is enabled. When not enabled this rule will not be looked at. Neither an approval nor an error will be given during validation.
-
setEnabled
void setEnabled(boolean enabled) - Parameters:
enabled
- Enables or disables this rule. When a rule is not enabled it will not be looked at. Neither an approval nor an error will be given during validation.
-
isUnique
boolean isUnique()- Returns:
- true if only one rule is needed in a whole set of rules. Adding another would not help. Returns false in case you can add this rule multiple times with different settings.
-
loadXML
- Throws:
org.pentaho.di.core.exception.KettleException
-
getXML
String getXML() -
getCompositeClassName
String getCompositeClassName() -
clone
ImportRuleInterface clone()
-