|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.prefs.AbstractPrefEntry
Supported API: true
Extendable: true
Field Summary | |
private static String |
CLASSNAME
|
private String |
context
|
static long |
EXTERNALIZATION_VERSION_UID
|
private String |
name
|
private String |
node
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private String |
parent
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private String |
value
|
Fields inherited from interface wt.prefs.PrefEntry |
CONTEXT, NAME, NODE, PARENT, VALUE |
Constructor Summary | |
AbstractPrefEntry()
Supported API: false |
|
AbstractPrefEntry(String parent,
String node,
String context,
String name,
String value)
Supported API: false |
Method Summary | |
abstract String[] |
children(String[] search_context)
Will return all the children of the given node Supported API: false |
private void |
contextValidate(String a_Context)
|
abstract void |
delete()
Supported API: false |
String |
getContext()
Gets the value of the attribute: context. |
String |
getName()
Gets the value of the attribute: name. |
String |
getNode()
Gets the value of the attribute: node. |
String |
getParent()
Gets the value of the attribute: parent. |
String |
getValue()
Gets the value of the attribute: value. |
private void |
nameValidate(String a_Name)
|
private void |
nodeValidate(String a_Node)
|
private void |
parentValidate(String a_Parent)
|
abstract void |
persist()
Supported API: false |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(AbstractPrefEntry thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
abstract PrefEntry |
retrieve()
Supported API: false |
abstract PrefEntry[] |
retrieveAll()
Supported API: false |
abstract ArrayList |
search(String search,
String[] contexts,
boolean isLike)
This will search the Preference Entry for the search string. |
void |
setContext(String a_Context)
Sets the value of the attribute: context. |
void |
setName(String a_Name)
Sets the value of the attribute: name. |
void |
setNode(String a_Node)
Sets the value of the attribute: node. |
void |
setParent(String a_Parent)
Sets the value of the attribute: parent. |
void |
setValue(String a_Value)
Sets the value of the attribute: value. |
abstract void |
update()
Supported API: false |
private void |
valueValidate(String a_Value)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private String parent
private String name
private String value
private String node
private String context
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public AbstractPrefEntry(String parent, String node, String context, String name, String value) throws WTException
parent
- node
- context
- name
- value
-
WTException
public AbstractPrefEntry() throws WTException
WTException
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(AbstractPrefEntry thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public abstract void delete()
delete
in interface PrefEntry
public abstract PrefEntry retrieve()
retrieve
in interface PrefEntry
public abstract void update()
update
in interface PrefEntry
public abstract void persist()
persist
in interface PrefEntry
public abstract PrefEntry[] retrieveAll()
retrieveAll
in interface PrefEntry
public abstract String[] children(String[] search_context)
children
in interface PrefEntry
search_context
-
public abstract ArrayList search(String search, String[] contexts, boolean isLike) throws WTException
search
in interface PrefEntry
search
- The string to search forcontexts
- The list of search contexts to use for the search.isLike
- Whether the search is a LIKE search or exact match
WTException
public String getParent()
getParent
in interface PrefEntry
public void setParent(String a_Parent) throws WTPropertyVetoException
setParent
in interface PrefEntry
a_Parent
-
WTPropertyVetoException
private void parentValidate(String a_Parent) throws WTPropertyVetoException
a_Parent
-
WTPropertyVetoException
public String getName()
getName
in interface PrefEntry
public void setName(String a_Name) throws WTPropertyVetoException
setName
in interface PrefEntry
a_Name
-
WTPropertyVetoException
private void nameValidate(String a_Name) throws WTPropertyVetoException
a_Name
-
WTPropertyVetoException
public String getValue()
getValue
in interface PrefEntry
public void setValue(String a_Value) throws WTPropertyVetoException
setValue
in interface PrefEntry
a_Value
-
WTPropertyVetoException
private void valueValidate(String a_Value) throws WTPropertyVetoException
a_Value
-
WTPropertyVetoException
public String getNode()
getNode
in interface PrefEntry
public void setNode(String a_Node) throws WTPropertyVetoException
setNode
in interface PrefEntry
a_Node
-
WTPropertyVetoException
private void nodeValidate(String a_Node) throws WTPropertyVetoException
a_Node
-
WTPropertyVetoException
public String getContext()
getContext
in interface PrefEntry
public void setContext(String a_Context) throws WTPropertyVetoException
setContext
in interface PrefEntry
a_Context
-
WTPropertyVetoException
private void contextValidate(String a_Context) throws WTPropertyVetoException
a_Context
-
WTPropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |