@Test public void testAcceptsXml() throws Exception { assertFalse( jobFileListener.acceptsXml( null ) ); assertFalse( jobFileListener.acceptsXml( "" ) ); assertFalse( jobFileListener.acceptsXml( "Job" ) ); assertTrue( jobFileListener.acceptsXml( "job" ) ); }
public boolean acceptsXml( String nodeName ) { return "job".equals( nodeName ); }
JobFileListener implements FileListener { public boolean acceptsXml( String nodeName ) { return "job".equals( nodeName ); } }
JobFileListener implements FileListener { public boolean acceptsXml( String nodeName ) { return "job".equals( nodeName ); }  }
JobFileListener implements FileListener { public boolean acceptsXml( String nodeName ) { return "job".equals( nodeName ); }  boolean open( Node jobNode, String fname, boolean importfile ); boolean save( EngineMetaInterface meta, String fname, boolean export ); void syncMetaName( EngineMetaInterface meta, String name ); boolean accepts( String fileName ); boolean acceptsXml( String nodeName ); String[] getFileTypeDisplayNames( Locale locale ); String[] getSupportedExtensions(); String getRootNodeName(); }
JobFileListener implements FileListener { public boolean acceptsXml( String nodeName ) { return "job".equals( nodeName ); }  boolean open( Node jobNode, String fname, boolean importfile ); boolean save( EngineMetaInterface meta, String fname, boolean export ); void syncMetaName( EngineMetaInterface meta, String name ); boolean accepts( String fileName ); boolean acceptsXml( String nodeName ); String[] getFileTypeDisplayNames( Locale locale ); String[] getSupportedExtensions(); String getRootNodeName();  }