Package oracle.dbtools.plugin.api.conf
Interface Configuration
-
public interface ConfigurationRepresents a set of configuration properties. Each configuration property is identified by a unique string.- Author:
- cdivilly
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.Stringget(java.lang.String name)Get a property valuedefault java.lang.Stringget(java.lang.String name, java.lang.String defaultValue)Get a property valuejava.lang.StringgetPassword(java.lang.String name)Retrieves an encrypted configuration property (typically passwords).inthashCode()java.lang.Iterable<java.lang.String>propertyNames()Enumerates the name of each defined configuration property.
-
-
-
Method Detail
-
equals
boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
get
java.lang.String get(java.lang.String name)
Get a property value- Parameters:
name- The name of the property- Returns:
- The value or null if the property is not defined
-
get
default java.lang.String get(java.lang.String name, java.lang.String defaultValue)Get a property value- Parameters:
name- The name of the propertydefaultValue- a default value to return if the property is not defined- Returns:
- The value if it exists, or the value of the defaultValue parameter if it does not exist.
-
getPassword
java.lang.String getPassword(java.lang.String name)
Retrieves an encrypted configuration property (typically passwords).- Parameters:
name- Name of the configuration property- Returns:
- the decrypted value or null if the value is not defined.
-
hashCode
int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
propertyNames
java.lang.Iterable<java.lang.String> propertyNames()
Enumerates the name of each defined configuration property.- Returns:
- Set of property names
-
-