KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > eclipse > mapper > registry > AdapterFactoryProviderForHBMXML


1 package org.hibernate.eclipse.mapper.registry;
2
3 import org.eclipse.wst.sse.core.internal.ltk.modelhandler.IDocumentTypeHandler;
4 import org.hibernate.eclipse.mapper.modelhandler.ModelHandlerForHBMXML;
5
6
7 public class AdapterFactoryProviderForHBMXML extends AdapterFactoryProviderForXML {
8     
9     /*
10      * @see AdapterFactoryProvider#isFor(ContentTypeDescription)
11      */

12     public boolean isFor(IDocumentTypeHandler contentTypeDescription) {
13         return (contentTypeDescription instanceof ModelHandlerForHBMXML);
14     }
15
16 }
17
Popular Tags