public class IniPropertyImpl extends AbstractElement implements IniProperty
property1=value1 | Constructor and Description |
|---|
IniPropertyImpl(IniSection section,
String key,
String value,
int lineNumber)
IniProperty constructor
|
IniPropertyImpl(IniSection section,
String key,
String value,
String originalValue,
int lineNumber)
IniProperty constructor
|
IniPropertyImpl(String key,
String value,
int lineNumber) |
IniPropertyImpl(String key,
String value,
String originalValue,
int lineNumber) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeKey(String newKey)
change key value.
|
IniComment |
getComment()
default ini property's comment is null.
|
String |
getKey()
get key
|
IniSection |
getSection()
section getter.
|
String |
key()
get key value
|
protected String |
keyChanged(String newKey)
when key changed, get the new originalValue.
|
String |
setKey(String newKey)
set a new Key.
|
void |
setSection(IniSection section)
section setter.
|
protected String |
valueChanged(String newValue)
when value changed, update originalValue.
|
changeValue, charAt, clearComment, getOriginalValue, length, line, setOriginalValue, setValue, subSequence, toCompleteString, toNoCommentString, toString, trim, valueclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetValuecomparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCode, setValueclearComment, getCommentOptional, getOriginalValue, isComment, isProperty, isSection, line, setValue, setValue, toCompleteString, toNoCommentString, toString, valuecharAt, chars, codePoints, length, subSequencepublic IniPropertyImpl(IniSection section, String key, String value, String originalValue, int lineNumber)
section - property sectionkey - the property's key, not nullvalue - the property's value, null ableoriginalValue - the original value of this property linelineNumber - line numberpublic IniPropertyImpl(String key, String value, String originalValue, int lineNumber)
key - the property's key, not nullvalue - the property's value, null ableoriginalValue - the property's original valuelineNumber - line numberpublic IniPropertyImpl(IniSection section, String key, String value, int lineNumber)
section - property sectionkey - the property's key, not nullvalue - the property's value, null ablelineNumber - line numberpublic IniSection getSection()
IniPropertygetSection in interface IniPropertypublic void setSection(IniSection section)
IniPropertysetSection in interface IniPropertysection - from sectionpublic String key()
IniPropertykey in interface IniPropertypublic void changeKey(String newKey)
IniPropertychangeKey in interface IniPropertynewKey - new key.public String setKey(String newKey)
IniPropertysetKey in interface IniPropertynewKey - new Keyprotected String keyChanged(String newKey)
newKey - new key.protected String valueChanged(String newValue)
valueChanged in class AbstractElementnewValue - when value changes, like AbstractElement.setValue(String) or IniElement.setValue(Function)public IniComment getComment()
IniElement.getCommentOptional().getComment in interface IniElementgetComment in class AbstractElementIniElement.getCommentOptional()public String getKey()
IniPropertyCopyright © 2020. All rights reserved.