|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjautil.install.JAHomeStatus
public final class JAHomeStatus
Records the value of the system-wide JA_HOME URL preferences setting, together with some status information about the local or remote folder at that URL.
Field Summary | |
---|---|
boolean |
JA_HOME_IS_LOCAL
Flag: whether or not the JA_HOME is defined and is local, not remote. |
boolean |
JA_HOME_KEY_IS_DEFINED
Flag: whether or not JA_HOME is defined. |
java.lang.String |
JA_HOME_VALUE
The value of the JA_HOME preferences setting, or null
if the preferences key is undefined. |
boolean |
LOCAL_JA_HOME_HAS_CONFIG_FOLDER
Flag: whether or not the JA_HOME folder, if defined and local, contains an avatars configuration data folder. |
boolean |
LOCAL_JA_HOME_HAS_FILES
Flag: whether or not the JA_HOME folder, if defined and local, contains non-hidden files. |
Constructor Summary | |
---|---|
JAHomeStatus()
Constructs a new JA_HOME status record from the system wide preferences. |
Method Summary | |
---|---|
static boolean |
configInLocalJAHome(java.io.File JAH_DIR)
Returns true if and only if
the given (JA_HOME) directory contains a valid avatar configuration
data directory. |
static boolean |
filesInLocalJAHome(java.io.File JAH_DIR)
Returns true iff
the given (JA_HOME) directory contains one or more files. |
boolean |
hasAvatarsLocalJAHome()
Returns true if and only if
a local JA_HOME directory is defined for the host system and
there is an avatar configuration data directory at that location. |
boolean |
hasRemoteJAHome()
Returns true if and only if
a JA_HOME location is defined for the host system and
that location is remote. |
boolean |
hasValidLocalJAHome()
Returns true if and only if
a valid local JA_HOME directory is defined for the host system,
that is, JA_HOME is defined, is defined to be a local directory,
and that directory both contains files and
contains an avatar configuration data directory. |
static boolean |
isValidAvatarsFolder(java.io.File AVCONFIG)
Returns true if and only if
the given file object is a valid avatar configuration data directory,
that is it is a directory, it is correctly named, and it contains
one or more subdirectories. |
boolean |
lacksAvatarsJAHome()
Returns true if and only if
no JA_HOME location is defined for the host system,
or a local JA_HOME directory is defined and that directory
contains an avatar configuration data directory. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.lang.String JA_HOME_VALUE
null
if the preferences key is undefined.
public final boolean JA_HOME_KEY_IS_DEFINED
public final boolean JA_HOME_IS_LOCAL
public final boolean LOCAL_JA_HOME_HAS_FILES
public final boolean LOCAL_JA_HOME_HAS_CONFIG_FOLDER
Constructor Detail |
---|
public JAHomeStatus()
Method Detail |
---|
public boolean hasRemoteJAHome()
true
if and only if
a JA_HOME location is defined for the host system and
that location is remote.
public boolean hasAvatarsLocalJAHome()
true
if and only if
a local JA_HOME directory is defined for the host system and
there is an avatar configuration data directory at that location.
public boolean lacksAvatarsJAHome()
true
if and only if
no JA_HOME location is defined for the host system,
or a local JA_HOME directory is defined and that directory
contains an avatar configuration data directory.
public boolean hasValidLocalJAHome()
true
if and only if
a valid local JA_HOME directory is defined for the host system,
that is, JA_HOME is defined, is defined to be a local directory,
and that directory both contains files and
contains an avatar configuration data directory.
public static boolean filesInLocalJAHome(java.io.File JAH_DIR)
true
iff
the given (JA_HOME) directory contains one or more files.
public static boolean configInLocalJAHome(java.io.File JAH_DIR)
true
if and only if
the given (JA_HOME) directory contains a valid avatar configuration
data directory.
public static boolean isValidAvatarsFolder(java.io.File AVCONFIG)
true
if and only if
the given file object is a valid avatar configuration data directory,
that is it is a directory, it is correctly named, and it contains
one or more subdirectories.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |