Code example for JarEntry

Methods: getName

0
 
	private SAXParser parser;
 
	private IArchiveEntryFilter hibernateMappingFilter = new IArchiveEntryFilter() {
		public boolean accept(JarFile file, JarEntry entry) { 
			return entry.getName().endsWith(".hbm.xml"); 
		} 
	}; 
 
	public String getName() {
		return "Hibernate Mapping"; 
	} 
 
	public void contributeToModel(IModelManager modelManager, IInputCrawler inputCrawler,
			IContributionReporter contributionReporter) throws ContributorException {
		SAXParserFactory parserFactory = SAXParserFactory.newInstance();
		parserFactory.setValidating(false);
		parserFactory.setNamespaceAware(false);
		parserFactory.setXIncludeAware(false);
		try { 
			parserFactory.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);