SRJRCFrames
v0.1.296

de.schwarzrot.jar.support
Class JarApplicationValidator

java.lang.Object
  extended by de.schwarzrot.jar.support.JarValidator
      extended by 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

Field Summary
 
Fields inherited from class de.schwarzrot.jar.support.JarValidator
CLASS_PATH, CONTEXT_PATH, IMPLEMENTATION_NAME, IMPLEMENTATION_TYPE, IMPLEMENTATION_VERSION
 
Constructor Summary
JarApplicationValidator()
           
 
Method Summary
protected  void checkContext(JarFile jarFile, String ctxPath)
           
protected  void checkHelpFiles(JarExtension ext, JarFile file)
           
protected  void checkXXHelpFiles(JarExtension ext, JarFile file)
           
 Object getType()
           
 JarExtension validateExtension(JarFile jarFile, Attributes ma)
           
protected  void validateHelpFiles(JarExtension ext)
           
protected  void validateHelpNode(ResourceNode node)
           
 
Methods inherited from class de.schwarzrot.jar.support.JarValidator
determineEntry, getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarApplicationValidator

public JarApplicationValidator()
Method Detail

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)

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
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.