public final class JAHomeStatus
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
JAHomeStatus()
Constructs a new JA_HOME status record from the system wide preferences.
|
Modifier and Type | Method and Description |
---|---|
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. |
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
public JAHomeStatus()
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.