Java源码示例:com.sun.xml.internal.bind.v2.util.FatalAdapter
示例1
/**
* 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()));
}
示例2
/**
* 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()));
}
示例3
/**
* 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()));
}
示例4
/**
* 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()));
}
示例5
/**
* 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()));
}
示例6
/**
* 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()));
}
示例7
/**
* 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()));
}
示例8
/**
* 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()));
}