@Override public void validate(PipelineOptions options){
  checkNotNull(classToBind,"Missing a class to bind to a JAXB context.");
  checkNotNull(rootElementName,"Missing a root element name.");
  checkNotNull(baseOutputFilename,"Missing a filename to write to.");
  try {
    JAXBContext.newInstance(classToBind);
  }
 catch (  JAXBException e) {
    throw new RuntimeException("Error binding classes to a JAXB Context.",e);
  }
}

@ Override public void validate ( PipelineOptions options ) { checkNotNull ( classToBind , "Missing a class to bind to a JAXB context." ) ; checkNotNull ( rootElementName , "Missing a root element name." ) ; checkNotNull ( baseOutputFilename , "Missing a filename to write to." ) ; try { JAXBContext . newInstance ( classToBind ) ; } catch ( JAXBException e ) { throw new RuntimeException ( "Error binding classes to a JAXB Context." , e ) ; } }
validates that the root element , class to bind to a jaxb context , and filenameprefix have been set and that the class can be bound in a jaxb context .
