|
|||||||||||
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(java.lang.String rawKey,
java.lang.String rawValue,
java.lang.StringBuilder line,
Crypto crypto)
Construct a property. |
Method Summary | |
---|---|
java.lang.String |
getKey()
|
java.lang.StringBuilder |
getLine()
|
java.lang.String |
getValue()
|
boolean |
isEncrypted()
|
boolean |
isModified()
|
boolean |
isOwnProperty()
|
boolean |
isProtected()
|
void |
setEncrypted(boolean encrypt)
Encrypt/decrypt the property's value. |
void |
setLine(java.lang.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(java.lang.String rawKey, java.lang.String rawValue, java.lang.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 java.lang.String getKey()
public java.lang.String getValue() throws java.lang.Exception
java.lang.Exception
- error during decryptionpublic boolean isEncrypted()
public boolean isProtected()
public boolean isModified()
public void setEncrypted(boolean encrypt) throws java.lang.Exception
encrypt
- whether the property's value will be encrypted
java.lang.Exception
- encryption/decryption errorpublic void setProtected(boolean protect) throws java.lang.Exception
protect
- whether the property will be marked as protected
java.lang.Exception
- decryption errorpublic boolean isOwnProperty()
public java.lang.StringBuilder getLine()
public void setLine(java.lang.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 |