public abstract class BasePreferencesImpl
extends Object
implements Serializable
Constructor and Description |
---|
BasePreferencesImpl(long ownerId,
int ownerType,
String xml,
Map<String,Preference> preferences) |
Modifier and Type | Method and Description |
---|---|
protected String |
getActualValue(String value) |
protected String[] |
getActualValues(String[] values) |
Map<String,String[]> |
getMap() |
protected Map<String,Preference> |
getModifiedPreferences() |
Enumeration<String> |
getNames() |
protected Map<String,Preference> |
getOriginalPreferences() |
protected String |
getOriginalXML() |
long |
getOwnerId() |
int |
getOwnerType() |
protected Map<String,Preference> |
getPreferences() |
String |
getValue(String key,
String def) |
String[] |
getValues(String key,
String[] def) |
protected String |
getXMLSafeValue(String value) |
protected String[] |
getXMLSafeValues(String[] values) |
protected boolean |
isNull(String[] values) |
boolean |
isReadOnly(String key) |
void |
reset() |
abstract void |
reset(String key) |
protected void |
setOriginalPreferences(Map<String,Preference> originalPreferences) |
protected void |
setOriginalXML(String originalXML) |
void |
setValue(String key,
String value) |
void |
setValues(String key,
String[] values) |
int |
size() |
abstract void |
store() |
protected String |
toXML() |
public BasePreferencesImpl(long ownerId, int ownerType, String xml, Map<String,Preference> preferences)
public Map<String,String[]> getMap()
public Enumeration<String> getNames()
public long getOwnerId()
public int getOwnerType()
public String getValue(String key, String def)
public String[] getValues(String key, String[] def)
public boolean isReadOnly(String key)
public void reset()
public abstract void reset(String key) throws ReadOnlyException
ReadOnlyException
public void setValue(String key, String value) throws ReadOnlyException
ReadOnlyException
public void setValues(String key, String[] values) throws ReadOnlyException
ReadOnlyException
public int size()
public abstract void store() throws IOException, ValidatorException
IOException
ValidatorException
protected String getActualValue(String value)
protected String[] getActualValues(String[] values)
protected Map<String,Preference> getModifiedPreferences()
protected Map<String,Preference> getOriginalPreferences()
protected String getOriginalXML()
protected Map<String,Preference> getPreferences()
protected String getXMLSafeValue(String value)
protected String[] getXMLSafeValues(String[] values)
protected boolean isNull(String[] values)
protected void setOriginalPreferences(Map<String,Preference> originalPreferences)
protected void setOriginalXML(String originalXML)
protected String toXML()