Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gui4j.core.impl
Class Gui4jValidatorImpl  view Gui4jValidatorImpl download Gui4jValidatorImpl.java

java.lang.Object
  extended byorg.gui4j.core.impl.Gui4jValidatorImpl
All Implemented Interfaces:
org.gui4j.Gui4jValidator

final class Gui4jValidatorImpl
extends java.lang.Object
implements org.gui4j.Gui4jValidator


Field Summary
private  org.gui4j.core.Gui4jInternal mGui4j
           
private  org.apache.commons.logging.Log mLogger
           
 
Constructor Summary
(package private) Gui4jValidatorImpl(org.gui4j.core.Gui4jInternal gui4j)
           
 
Method Summary
 int validateExistenceOfGuiIDs(java.lang.Class controllerClass, java.lang.String resourceName, java.util.List ids)
           
 boolean validateResourceFile(java.lang.Class controllerClass, java.lang.String resourceName)
          Reads the given resource file and checks if the syntax and all reflection calls are still valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mLogger

private org.apache.commons.logging.Log mLogger

mGui4j

private final org.gui4j.core.Gui4jInternal mGui4j
Constructor Detail

Gui4jValidatorImpl

Gui4jValidatorImpl(org.gui4j.core.Gui4jInternal gui4j)
Method Detail

validateResourceFile

public boolean validateResourceFile(java.lang.Class controllerClass,
                                    java.lang.String resourceName)
Reads the given resource file and checks if the syntax and all reflection calls are still valid. This method can be used in JUnit test to ensure that XML resource files are valid.

Specified by:
validateResourceFile in interface org.gui4j.Gui4jValidator

validateExistenceOfGuiIDs

public int validateExistenceOfGuiIDs(java.lang.Class controllerClass,
                                     java.lang.String resourceName,
                                     java.util.List ids)
Specified by:
validateExistenceOfGuiIDs in interface org.gui4j.Gui4jValidator