de.schwarzrot.jar.support
Class JarApplicationValidator
java.lang.Object
de.schwarzrot.jar.support.JarValidator
de.schwarzrot.jar.support.JarApplicationValidator
public class JarApplicationValidator
- extends JarValidator
class to validate, that a jar is a valid application extension. A valid
application must provide an application context (specified via
Manifest-entry) and may provide several help trees.
Helpfiles are organized with a root-directory called 'help', optionally
suffixed by a language id, so an english help-root may be called 'help.en'. A
help directory without suffix may serve as fallback to the default language.
The path of a helpfile may be localized via MessageResource
. A
property definition for a helpfile may look like
ResourceNode.help.SRAppJobEditor.overview.new: create a new job
With that definition, a helpfile 'help/overview/new.html' of the JobEditor
will be displayed as 'create a new job' in the help browser.
- Author:
- Reinhard Mantey
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JarApplicationValidator
public JarApplicationValidator()
getType
public Object getType()
- Overrides:
getType
in class JarValidator
validateExtension
public JarExtension validateExtension(JarFile jarFile,
Attributes ma)
- Overrides:
validateExtension
in class JarValidator
checkContext
protected void checkContext(JarFile jarFile,
String ctxPath)
checkHelpFiles
protected void checkHelpFiles(JarExtension ext,
JarFile file)
checkXXHelpFiles
protected void checkXXHelpFiles(JarExtension ext,
JarFile file)
validateHelpFiles
protected void validateHelpFiles(JarExtension ext)
validateHelpNode
protected void validateHelpNode(ResourceNode node)
Submit
a bug or request a feature
SRJRCFrames is published according to the
GNU General Public License
Copyright 2005-2012
Reinhard Mantey - some rights reserved.