aigames.soccer.application
Class Validator

java.lang.Object
  extended byaigames.soccer.application.Validator

public class Validator
extends java.lang.Object

Version:
$Id: Validator.java,v 1.3 2004/05/08 21:55:27 mwerla Exp $

Constructor Summary
Validator(java.lang.String schemaFileName)
          Validator constructor.
 
Method Summary
 java.lang.String getStatus()
          Get validation status.
 boolean validate(org.dom4j.Document message)
          Message validation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validator

public Validator(java.lang.String schemaFileName)
          throws org.iso_relax.verifier.VerifierConfigurationException,
                 org.xml.sax.SAXException,
                 java.io.IOException
Validator constructor.

Parameters:
schemaFileName - path to the schema file
Throws:
org.iso_relax.verifier.VerifierConfigurationException - Thrown on verifier configuration error.
org.xml.sax.SAXException - Thrown if schema is invalid.
java.io.IOException - Thrown if schema is not found.
Method Detail

validate

public boolean validate(org.dom4j.Document message)
                 throws java.lang.Exception
Message validation.

Parameters:
message -
Returns:
true if message is valid
Throws:
java.lang.Exception - Thrown when validation fails.

getStatus

public java.lang.String getStatus()
Get validation status.

Returns:
status


Copyright © 2001-2004 MoMaT & MWe Team. All Rights Reserved.