org.jtheque.core.managers.core.application
Class XMLApplication

java.lang.Object
  extended by org.jtheque.core.managers.core.application.XMLApplication
All Implemented Interfaces:
Application

public class XMLApplication
extends java.lang.Object
implements Application

An XML Application. It seems a JTheque Core Application who's read from an XML file.

Author:
Baptiste Wicht

Constructor Summary
XMLApplication(java.lang.String filepath)
          Construct a new XMLApplication from an XML file.
 
Method Summary
 org.jtheque.utils.bean.InternationalString getAuthor()
          Return the author of the application.
 org.jtheque.utils.bean.InternationalString getCopyright()
          Return the copyright of the application.
 org.jtheque.utils.bean.InternationalString getEmail()
          Return the email of the author of the application.
 java.lang.String getFolderPath()
          The path to the folder of the installation.
 java.lang.String getLicenceFilePath()
          Return the path to the licence.
 java.lang.String getLogo()
          Return the path to the logo.
 ImageType getLogoType()
          Return the image type of the logo.
 java.lang.String getMessageFileURL()
          Return the messages file url for the application.
 org.jtheque.utils.bean.InternationalString getName()
          Return the name of the application.
 java.lang.String getProperty(java.lang.String key)
          Return the application property.
 java.lang.String getRepository()
          Return the url of the application repository.
 org.jtheque.utils.bean.InternationalString getSite()
          Return the site of the application.
 java.lang.String[] getSupportedLanguages()
          Return all the supported languages of the application.
 org.jtheque.utils.bean.Version getVersion()
          Return the application version.
 java.lang.String getWindowIcon()
          Return the path to the window icon.
 ImageType getWindowIconType()
          Return the image type of the window icon.
 boolean isDisplayLicence()
          Indicate if we must display the licence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLApplication

public XMLApplication(java.lang.String filepath)
Construct a new XMLApplication from an XML file.

Parameters:
filepath - The path to the XML file.
Method Detail

getVersion

public org.jtheque.utils.bean.Version getVersion()
Description copied from interface: Application
Return the application version.

Specified by:
getVersion in interface Application
Returns:
The version of the application.

getAuthor

public org.jtheque.utils.bean.InternationalString getAuthor()
Description copied from interface: Application
Return the author of the application.

Specified by:
getAuthor in interface Application
Returns:
The author of the application.

getName

public org.jtheque.utils.bean.InternationalString getName()
Description copied from interface: Application
Return the name of the application.

Specified by:
getName in interface Application
Returns:
The name of the application.

getSite

public org.jtheque.utils.bean.InternationalString getSite()
Description copied from interface: Application
Return the site of the application.

Specified by:
getSite in interface Application
Returns:
The site of the application.

getEmail

public org.jtheque.utils.bean.InternationalString getEmail()
Description copied from interface: Application
Return the email of the author of the application.

Specified by:
getEmail in interface Application
Returns:
The email of the author of the application.

getCopyright

public org.jtheque.utils.bean.InternationalString getCopyright()
Description copied from interface: Application
Return the copyright of the application.

Specified by:
getCopyright in interface Application
Returns:
The copyright of the application.

getLogo

public java.lang.String getLogo()
Description copied from interface: Application
Return the path to the logo.

Specified by:
getLogo in interface Application
Returns:
The path to the logo.

getLogoType

public ImageType getLogoType()
Description copied from interface: Application
Return the image type of the logo.

Specified by:
getLogoType in interface Application
Returns:
The image type of the logo.

getWindowIcon

public java.lang.String getWindowIcon()
Description copied from interface: Application
Return the path to the window icon.

Specified by:
getWindowIcon in interface Application
Returns:
The path to the window icon.

getWindowIconType

public ImageType getWindowIconType()
Description copied from interface: Application
Return the image type of the window icon.

Specified by:
getWindowIconType in interface Application
Returns:
The image type of the window icon.

isDisplayLicence

public final boolean isDisplayLicence()
Description copied from interface: Application
Indicate if we must display the licence.

Specified by:
isDisplayLicence in interface Application
Returns:
true if we must display the licence else false.

getRepository

public final java.lang.String getRepository()
Description copied from interface: Application
Return the url of the application repository.

Specified by:
getRepository in interface Application
Returns:
The URL to the application repository.

getMessageFileURL

public final java.lang.String getMessageFileURL()
Description copied from interface: Application
Return the messages file url for the application.

Specified by:
getMessageFileURL in interface Application
Returns:
The URL to the messages files of the application.

getSupportedLanguages

public java.lang.String[] getSupportedLanguages()
Description copied from interface: Application
Return all the supported languages of the application.

Specified by:
getSupportedLanguages in interface Application
Returns:
An array containing the languages than the application support.

getProperty

public java.lang.String getProperty(java.lang.String key)
Description copied from interface: Application
Return the application property.

Specified by:
getProperty in interface Application
Parameters:
key - The key of the property.
Returns:
The value of the property or empty string if there is no property with this key.

getLicenceFilePath

public java.lang.String getLicenceFilePath()
Description copied from interface: Application
Return the path to the licence.

Specified by:
getLicenceFilePath in interface Application
Returns:
The path to the licence of the application.

getFolderPath

public java.lang.String getFolderPath()
Description copied from interface: Application
The path to the folder of the installation.

Specified by:
getFolderPath in interface Application
Returns:
The path to the application folder.


Copyright © 2009 JTheque. All Rights Reserved.