issrg.utils.xml
Interface PolicyValidator


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

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


validateDocument

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

Throws:
ValidationException

getValidDocument

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