com.ibm.websphere.validation.wbi.extensions
Class CMMValidator

java.lang.Object
  extended by com.ibm.websphere.validation.wbi.extensions.EnterpriseValidator
      extended by com.ibm.websphere.validation.wbi.extensions.CMMValidator
All Implemented Interfaces:
WBIValidationConstants, org.eclipse.wst.validation.internal.provisional.core.IValidator

public class CMMValidator
extends EnterpriseValidator
implements WBIValidationConstants


Field Summary
 
Fields inherited from class com.ibm.websphere.validation.wbi.extensions.EnterpriseValidator
archive, reporter
 
Fields inherited from interface com.ibm.websphere.validation.wbi.config.WBIValidationConstants
ERROR_WBI_ATTRIBUTE_ALREADY_SPECIFIED, ERROR_WBI_ATTRIBUTE_VALUE_OUT_OF_RANGE, ERROR_WBI_AUTH_DATA_ALIAS_NOT_LOCATED, ERROR_WBI_CLUSTER_DYNAMIC_WEIGHTING_REQUIRES_PMI, ERROR_WBI_DOCUMENT_HAS_MULTIPLE_ROOTS, ERROR_WBI_DUPLICATE_CONFIG, ERROR_WBI_EMPTY_DOCUMENT, ERROR_WBI_EXT_ATTRIBUTE_VALUE_OUT_OF_RANGE, ERROR_WBI_I18N_RUNAS, ERROR_WBI_ILLEGAL_LOCALE, ERROR_WBI_ILLEGAL_TIMEZONE, ERROR_WBI_INCORRECT_CONTAINER_MANAGEMENT, ERROR_WBI_INVALID_ATTRIBUTE_TYPE, ERROR_WBI_INVALID_ATTRIBUTE_VALUE, ERROR_WBI_INVALID_ROOT_OBJECT, ERROR_WBI_READ_AHEAD_INCONSISTENT_INTENT, ERROR_WBI_RECOGNITION_FAILED, ERROR_WBI_REQUIRED_ATTRIBUTE, ERROR_WBI_REQUIRED_EXT_ATTRIBUTE, ERROR_WBI_REQUIRED_RELATIONSHIP, ERROR_WBI_UNKNOWN_ATTRIBUTE, INFO_WBI_DEFAULT_WAS_DQ, INFO_WBI_READ_AHEAD_WITH_INHERITANCE, INFO_WBI_RECURSIVE_READ_AHEAD_HINT, pgmUpdate, pgmVersion, WBI_BUNDLE_ID
 
Constructor Summary
CMMValidator(org.eclipse.wst.validation.internal.provisional.core.IReporter rep, org.eclipse.jst.j2ee.commonarchivecore.internal.Archive archive)
          This is the method which performs the validation on the MOF model.
 
Method Summary
 void cleanup()
          Perform any resource cleanup once validation is complete.
 void validate()
           
 
Methods inherited from class com.ibm.websphere.validation.wbi.extensions.EnterpriseValidator
addError, addError, addMessage, addMessage, addWarning, addWarning, cleanup, createMessage, createMessage, createMessage, createMessage, getArchive, getReporter, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMMValidator

public CMMValidator(org.eclipse.wst.validation.internal.provisional.core.IReporter rep,
                    org.eclipse.jst.j2ee.commonarchivecore.internal.Archive archive)
This is the method which performs the validation on the MOF model.

helper and reporter may not be null. changedFiles may be null, if a full build is desired.

helper loads a RefObject. The RefObject is the root of the MOF model about to be validated. When this object is traversed, you can reach every element in the MOF model which needs to be validated.

reporter is an instance of an IReporter interface, which is used for interaction with the user.

changedFiles is an array of file names which have changed since the last validation. If changedFiles is null, or if it is an empty array, then a full build is performed. Otherwise, validation on just the files listed in the Vector is performed.

Method Detail

cleanup

public void cleanup()
Perform any resource cleanup once validation is complete. If cleanup will take some time, the IValidator should report subtask information to the user through the AReporter parameter. The AReporter parameter will not be null.


validate

public void validate()