package com.c2kernel.persistency.outcome; import java.io.IOException; /************************************************************************** * * $Revision: 1.2 $ * $Date: 2005/04/26 06:48:13 $ * * Copyright (C) 2003 CERN - European Organization for Nuclear Research * All rights reserved. **************************************************************************/ public class SchemaValidator extends OutcomeValidator { public SchemaValidator() { } @Override public synchronized String validate(String outcome) { errors = new StringBuffer(); Schema schema = new Schema(outcome); try { schema.parse(this); } catch (IOException e) { errors.append(e.getMessage()); } return errors.toString(); } }