|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.util.BasePropertiesFile.Property
protected static class BasePropertiesFile.Property
A property from a properties file. If provided the actual read line from the file is also saved and updated in case of change to property key or value.
Constructor Summary | |
---|---|
BasePropertiesFile.Property(String rawKey,
String rawValue,
StringBuilder line,
Crypto crypto)
Construct a property. |
Method Summary | |
---|---|
String |
getKey()
|
StringBuilder |
getLine()
|
String |
getValue()
|
boolean |
isEncrypted()
|
boolean |
isModified()
|
boolean |
isOwnProperty()
|
boolean |
isProtected()
|
void |
setEncrypted(boolean encrypt)
Encrypt/decrypt the property's value. |
void |
setLine(StringBuilder line)
Associate a new line object to this property. |
void |
setProtected(boolean protect)
Mark the property as protected/non-protected. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasePropertiesFile.Property(String rawKey, String rawValue, StringBuilder line, Crypto crypto)
rawKey
- the raw key of the propertyrawValue
- the raw value of the property.line
- the corresponding line of the propertycrypto
- cryptographic object for encryption/decryption of the
property's valueMethod Detail |
---|
public String getKey()
public String getValue() throws Exception
Exception
- error during decryptionpublic boolean isEncrypted()
public boolean isProtected()
public boolean isModified()
public void setEncrypted(boolean encrypt) throws Exception
encrypt
- whether the property's value will be encrypted
Exception
- encryption/decryption errorpublic void setProtected(boolean protect) throws Exception
protect
- whether the property will be marked as protected
Exception
- decryption errorpublic boolean isOwnProperty()
public StringBuilder getLine()
public void setLine(StringBuilder line)
line
- a line from the main properties file
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |