public class PropertyEntry extends AbstractEntry
| Modifier and Type | Field and Description |
|---|---|
static char |
DEFAULT_SEPARATOR
Field DEFAULT_SEPARATOR (=)
|
static int |
TYPE
Field TYPE (3)
|
| Constructor and Description |
|---|
PropertyEntry(String key,
String value)
Constructor for PropertyEntry
|
PropertyEntry(String key,
String value,
char separator,
boolean encodeUnicode)
Constructor for PropertiesEntry
|
PropertyEntry(String key,
String value,
char separator,
boolean encodeUnicode,
boolean useKeySeparatorSpacing,
String keySeparatorSpacing,
boolean useSeparatorValueSpacing,
String separatorValueSpacing)
Constructor for PropertiesEntry
|
| Modifier and Type | Method and Description |
|---|---|
PropertyEntry |
clone() |
boolean |
equals(Object obj)
Determines if another Object is equal to this one
|
boolean |
equalsIgnoreSeparatorSpacing(Object obj)
Determines if another Object is equal to this one
|
boolean |
getEncodeUnicode()
Gets whether to encode Unicode or not
|
String |
getKey()
Gets the property key
|
String |
getKeySeparatorSpacing()
Gets the spacing between key and separator
|
char |
getSeparator()
Gets the separator
|
String |
getSeparatorValueSpacing()
Gets the spacing between separator and value
|
int |
getType()
Gets the entry type
|
boolean |
getUseKeySeparatorSpacing()
Gets whether to use key separator spacing or not
|
boolean |
getUseSeparatorValueSpacing()
Gets whether to use separator value spacing or not
|
String |
getValue()
Gets the property value
|
int |
hashCode()
Gets the hash code for this Object
|
void |
setEncodeUnicode(boolean encodeUnicode)
Sets whether to encode Unicode or not
|
void |
setKeySeparatorSpacing(String keySeparatorSpacing)
Sets the spacing between key and separator
|
void |
setSeparator(char separator)
Sets the separator
|
void |
setSeparatorValueSpacing(String separatorValueSpacing)
Sets the spacing between separator and value
|
void |
setUseKeySeparatorSpacing(boolean useKeySeparatorSpacing)
Sets whether to use key separator spacing or not
|
void |
setUseSeparatorValueSpacing(boolean useSeparatorValueSpacing)
Sets whether to use separator value spacing or not
|
void |
setValue(String value)
Sets the property value
|
String |
toString()
Gets a String representation of this Object
|
public static final char DEFAULT_SEPARATOR
public static final int TYPE
public PropertyEntry(String key, String value)
key - property keyvalue - property valuepublic PropertyEntry(String key, String value, char separator, boolean encodeUnicode)
key - property keyvalue - property valueseparator - separatorencodeUnicode - whether to encode Unicode or notpublic PropertyEntry(String key, String value, char separator, boolean encodeUnicode, boolean useKeySeparatorSpacing, String keySeparatorSpacing, boolean useSeparatorValueSpacing, String separatorValueSpacing)
key - property keyvalue - property valueseparator - separatorencodeUnicode - whether to encode Unicode or notuseKeySeparatorSpacing - whether to use key separator spacing
or notkeySeparatorSpacing - spacing between key and separatoruseSeparatorValueSpacing - whether to use separator value spacing
or notseparatorValueSpacing - spacing between separator and valuepublic int getType()
getType in class AbstractEntrypublic String getKey()
public String getValue()
public void setValue(String value)
value - property valuepublic char getSeparator()
public void setSeparator(char separator)
separator - separatorpublic boolean getEncodeUnicode()
public void setEncodeUnicode(boolean encodeUnicode)
encodeUnicode - whether to encode Unicode or notpublic boolean getUseKeySeparatorSpacing()
public void setUseKeySeparatorSpacing(boolean useKeySeparatorSpacing)
useKeySeparatorSpacing - whether to use key separator spacing or notpublic String getKeySeparatorSpacing()
public void setKeySeparatorSpacing(String keySeparatorSpacing)
keySeparatorSpacing - spacing between key and separatorpublic boolean getUseSeparatorValueSpacing()
public void setUseSeparatorValueSpacing(boolean useSeparatorValueSpacing)
useSeparatorValueSpacing - whether to use separator value spacing
or notpublic String getSeparatorValueSpacing()
public void setSeparatorValueSpacing(String separatorValueSpacing)
separatorValueSpacing - spacing between separator and valuepublic boolean equals(Object obj)
public boolean equalsIgnoreSeparatorSpacing(Object obj)
obj - Object to test for equalitypublic int hashCode()
public String toString()
public PropertyEntry clone()
? Copyright 2013 BMC Software, Inc.