Package org.pentaho.di.repository
Interface RepositoryAttributeInterface
public interface RepositoryAttributeInterface
This interface allows you to pass a simple interface to an object to allow it to store or load itself from or to any
type of repository in a generic fashion.
- Author:
- matt
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetAttributeBoolean(String code) Get a boolean attribute, if the attribute is not found, return false;longgetAttributeInteger(String code) Get an integer attribute.getAttributeString(String code) Get a string attribute.voidsetAttribute(String code, boolean value) Set a boolean attributevoidsetAttribute(String code, long value) Set an integer attributevoidsetAttribute(String code, String value) Set a String attribute
-
Method Details
-
setAttribute
Set a String attribute- Parameters:
code-value-- Throws:
KettleException
-
getAttributeString
Get a string attribute. If the attribute is not found, return null- Parameters:
code-- Returns:
- Throws:
KettleException
-
setAttribute
Set a boolean attribute- Parameters:
code-value-- Throws:
KettleException
-
getAttributeBoolean
Get a boolean attribute, if the attribute is not found, return false;- Parameters:
code-- Returns:
- Throws:
KettleException
-
setAttribute
Set an integer attribute- Parameters:
code-value-- Throws:
KettleException
-
getAttributeInteger
Get an integer attribute. If the attribute is not found, return 0;- Parameters:
code-- Returns:
- Throws:
KettleException
-