issrg.utils.gui.xml
Interface PolicyValidator

All Known Implementing Classes:
AbstractConfigComponent, ACMConfigurationComponent, ConfigDocHolder, ConfigurationComponent, PERMISPolicyValidator, PTValidator

public interface PolicyValidator

This inferface describes the set of methods that an XML Validator should have. A validator is needed to check that the XML that is produced is valid according to a set of rules. This could be done in various ways, and hence the need for an interface.

Author:
Christian Azzopardi

Method Summary
 org.w3c.dom.Document getValidDocument()
          In case a new valid document is needed, create and make the document a valid one.
 void setDocument(org.w3c.dom.Document d)
          Sets the document that is needed for us to operate on.
 void validateDocument()
          Actual validation of the document goes here.
 

Method Detail

setDocument

void setDocument(org.w3c.dom.Document d)
Sets the document that is needed for us to operate on.


validateDocument

void validateDocument()
                      throws ValidationException
Actual validation of the document goes here.

Throws:
ValidationException

getValidDocument

org.w3c.dom.Document getValidDocument()
In case a new valid document is needed, create and make the document a valid one.