|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.prefs.PrefEntrySelector
PrefEntry selector retrieves PrefEntry based on name, node and context.
Use the newPrefEntrySelector
static factory method(s), not
the PrefEntrySelector
constructor, to construct instances
of this class. Instances must be constructed using the static factory(s),
in order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private String |
context
|
static String |
CONTEXT
Label for the attribute. |
private static int |
CONTEXT_UPPER_LIMIT
|
private static boolean |
DEBUG
|
private static Class |
DEFAULT_DBPREFENTRY
|
private static Class |
DEFAULT_PREFENTRY
|
private PrefEntry |
entry
|
static String |
ENTRY
Label for the attribute; Entries retrieved by the selector. |
static long |
EXTERNALIZATION_VERSION_UID
|
private static Constructor |
instance
|
private static PreferenceMapping |
map
|
private static Vector |
MapTypes
|
private String |
name
|
static String |
NAME
Label for the attribute. |
private static int |
NAME_UPPER_LIMIT
|
private String |
node
|
static String |
NODE
Label for the attribute. |
private static int |
NODE_UPPER_LIMIT
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private ObjectReference |
user
|
static String |
USER
Label for the attribute. |
Constructor Summary | |
PrefEntrySelector()
|
Method Summary | |
protected String[] |
children(String[] contexts)
Will select the children from the current node from the list of contexts |
protected PrefEntry |
create(String value)
|
protected void |
delete()
|
static PrefEntry[] |
getAllEntries(String node,
String[] context,
String name)
|
ClassInfo |
getClassInfo()
Returns the ClassInfo object for this class. |
String |
getConceptualClassname()
Deprecated. |
String |
getContext()
Gets the value of the attribute: CONTEXT. |
PrefEntry[] |
getEntries()
Deprecated. |
PrefEntry |
getEntry()
Gets the value of the attribute: ENTRY. |
String |
getName()
Gets the value of the attribute: NAME. |
String |
getNode()
Gets the value of the attribute: NODE. |
ObjectReference |
getUser()
Gets the value of the attribute: USER. |
int |
hashCode()
Returns selector hash code based on name, node and context. |
protected void |
initialize()
Supports initialization, following construction of an instance. |
protected void |
initialize(PrefEntry entry)
Supports initialization, following construction of an instance. |
protected static void |
initializeProperties()
This is the initializeProperties method which will open the Preference Mapping file, parse the file using XPaths and create the default Pref Entry |
static PrefEntrySelector |
newPrefEntrySelector()
Supported API: false |
static PrefEntrySelector |
newPrefEntrySelector(PrefEntry entry)
Supported API: false |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
void |
readExternal(PersistentRetrieveIfc input)
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store. |
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(PrefEntrySelector thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private PrefEntry |
retrieveEntry()
This method will retrive an entry from the appropriate PrefEntry type. |
protected ArrayList |
search(String aString,
String[] aContext,
boolean isLike)
Will search the various Preference Entries and return a list of PrefSearch objects that match the search criteria. |
void |
setContext(String a_Context)
Sets the value of the attribute: CONTEXT. |
void |
setEntry(PrefEntry a_Entry)
Sets the value of the attribute: ENTRY. |
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 |
setUser(ObjectReference a_User)
Sets the value of the attribute: USER. |
String |
toString()
Returns the conceptual (modeled) name for the class. |
protected PrefEntry |
update(PrefEntry inEntry,
String value)
|
protected PrefEntry |
update(String value)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
void |
writeExternal(PersistentStoreIfc output)
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String NAME
private static int NAME_UPPER_LIMIT
private String name
public static final String NODE
private static int NODE_UPPER_LIMIT
private String node
public static final String CONTEXT
private static int CONTEXT_UPPER_LIMIT
private String context
public static final String USER
private ObjectReference user
public static final String ENTRY
private PrefEntry entry
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static Class DEFAULT_PREFENTRY
private static Class DEFAULT_DBPREFENTRY
private static PreferenceMapping map
private static Vector MapTypes
private static Constructor instance
private static boolean DEBUG
Constructor Detail |
public PrefEntrySelector()
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(PrefEntrySelector 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 void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String toString()
public ClassInfo getClassInfo() throws WTIntrospectionException
getClassInfo
in interface NetFactor
WTIntrospectionException
public String getName()
public void setName(String a_Name)
a_Name
- public String getNode()
public void setNode(String a_Node)
a_Node
- public String getContext()
public void setContext(String a_Context)
a_Context
- public ObjectReference getUser()
public void setUser(ObjectReference a_User)
a_User
- public PrefEntry getEntry() throws WTException
WTException
public void setEntry(PrefEntry a_Entry)
a_Entry
- public int hashCode()
public static PrefEntrySelector newPrefEntrySelector(PrefEntry entry) throws WTException
entry
-
WTException
protected void initialize(PrefEntry entry) throws WTException
entry
-
WTException
public static PrefEntrySelector newPrefEntrySelector() throws WTException
WTException
protected void initialize() throws WTException
WTException
private PrefEntry retrieveEntry() throws WTException
WTException
public PrefEntry[] getEntries() throws WTException
WTException
public static PrefEntry[] getAllEntries(String node, String[] context, String name) throws WTException
WTException
protected PrefEntry create(String value) throws WTException
WTException
protected void delete() throws WTException
WTException
protected PrefEntry update(String value) throws WTException
WTException
protected PrefEntry update(PrefEntry inEntry, String value) throws WTException
WTException
protected static void initializeProperties() throws Exception
Exception
- The exception thrown if there is an error initializingprotected ArrayList search(String aString, String[] aContext, boolean isLike)
aString
- The search string.aContext
- The search context.isLike
- The search is like or exact searchprotected String[] children(String[] contexts)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |