jautil.install
Class JAHomeStatus

java.lang.Object
  extended by jautil.install.JAHomeStatus

public final class JAHomeStatus
extends java.lang.Object

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

JA_HOME_VALUE

public final java.lang.String JA_HOME_VALUE
The value of the JA_HOME preferences setting, or null if the preferences key is undefined.


JA_HOME_KEY_IS_DEFINED

public final boolean JA_HOME_KEY_IS_DEFINED
Flag: whether or not JA_HOME is defined.


JA_HOME_IS_LOCAL

public final boolean JA_HOME_IS_LOCAL
Flag: whether or not the JA_HOME is defined and is local, not remote.


LOCAL_JA_HOME_HAS_FILES

public final boolean LOCAL_JA_HOME_HAS_FILES
Flag: whether or not the JA_HOME folder, if defined and local, contains non-hidden files.


LOCAL_JA_HOME_HAS_CONFIG_FOLDER

public final 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.

Constructor Detail

JAHomeStatus

public JAHomeStatus()
Constructs a new JA_HOME status record from the system wide preferences.

Method Detail

hasRemoteJAHome

public boolean hasRemoteJAHome()
Returns true if and only if a JA_HOME location is defined for the host system and that location is remote.


hasAvatarsLocalJAHome

public 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.


lacksAvatarsJAHome

public 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.


hasValidLocalJAHome

public 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.


filesInLocalJAHome

public static boolean filesInLocalJAHome(java.io.File JAH_DIR)
Returns true iff the given (JA_HOME) directory contains one or more files.


configInLocalJAHome

public 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.


isValidAvatarsFolder

public 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.