/** * Creates a new instance of ValidatingUnmarshaller. */ public ValidatingUnmarshaller( Schema schema, XmlVisitor next ) { this.validator = schema.newValidatorHandler(); this.next = next; this.predictor = next.getPredictor(); // if the user bothers to use a validator, make validation errors fatal // so that it will abort unmarshalling. validator.setErrorHandler(new FatalAdapter(getContext())); }
validator.setErrorHandler(new FatalAdapter(serializer));
/** * Creates a new instance of ValidatingUnmarshaller. */ public ValidatingUnmarshaller( Schema schema, XmlVisitor next ) { this.validator = schema.newValidatorHandler(); this.next = next; this.predictor = next.getPredictor(); // if the user bothers to use a validator, make validation errors fatal // so that it will abort unmarshalling. validator.setErrorHandler(new FatalAdapter(getContext())); }
validator.setErrorHandler(new FatalAdapter(serializer));
/** * Creates a new instance of ValidatingUnmarshaller. */ public ValidatingUnmarshaller( Schema schema, XmlVisitor next ) { this.validator = schema.newValidatorHandler(); this.next = next; this.predictor = next.getPredictor(); // if the user bothers to use a validator, make validation errors fatal // so that it will abort unmarshalling. validator.setErrorHandler(new FatalAdapter(getContext())); }
/** * Creates a new instance of ValidatingUnmarshaller. */ public ValidatingUnmarshaller( Schema schema, XmlVisitor next ) { this.validator = schema.newValidatorHandler(); this.next = next; this.predictor = next.getPredictor(); // if the user bothers to use a validator, make validation errors fatal // so that it will abort unmarshalling. validator.setErrorHandler(new FatalAdapter(getContext())); }
validator.setErrorHandler(new FatalAdapter(serializer));
validator.setErrorHandler(new FatalAdapter(serializer));