Package com.iizix.prop
Class CodeItemImpl
java.lang.Object
com.iizix.prop.CodeItemImpl
The code item implementation.
- Author:
- Christopher Mindus
- Field Summary
- Constructor SummaryConstructorsConstructorDescription- CodeItemImpl- (KString value) Constructor for an item without code.- CodeItemImpl- (String value) Constructor for an item without code.- CodeItemImpl- (String code, KString value) Constructor for an item with code and value.- CodeItemImpl- (String code, String value) Constructor for an item with code and value.
- Method SummaryModifier and TypeMethodDescription- clone()Clones the instance.- booleanChecks for equality.- getCode()Gets the code string.Gets the item text as a KString.Gets the item text as a String.- getValue()Gets the value.- boolean- hasCode()Checks if this item has a code.- booleanReturns whether the item is a KString or not.
- Constructor Details- CodeItemImplConstructor for an item without code.- Parameters:
- value- The item value, never null.
- Throws:
- NullPointerException- If item value is null.
 
- CodeItemImplConstructor for an item with code and value.- Parameters:
- code- The code, perhaps null for none.
- value- The item value, never null.
- Throws:
- NullPointerException- If item value is null.
 
- CodeItemImplConstructor for an item without code.- Parameters:
- value- The item value, never null.
- Throws:
- NullPointerException- If item value is null.
 
- CodeItemImplConstructor for an item with code and value.- Parameters:
- code- The code, perhaps null for none.
- value- The item value, never null.
- Throws:
- NullPointerException- If item value is null.
 
 
- Method Details- cloneClones the instance.
- equalsChecks for equality.
- hasCodepublic boolean hasCode()Checks if this item has a code.
- isKStringpublic boolean isKString()Returns whether the item is a KString or not.
- getCodeGets the code string.
- getStringGets the item text as a String.
- getKStringGets the item text as a KString.- Specified by:
- getKStringin interface- ICodeItem
- Returns:
- The item KString, potentially converted from String.
 
- getValueGets the value.