1 package org.hibernate.eclipse.mapper.modelhandler; 2 3 import org.eclipse.wst.sse.core.internal.document.IDocumentCharsetDetector; 4 import org.eclipse.wst.sse.core.internal.document.IDocumentLoader; 5 import org.eclipse.wst.sse.core.internal.ltk.modelhandler.AbstractModelHandler; 6 import org.eclipse.wst.sse.core.internal.ltk.modelhandler.IModelHandler; 7 import org.eclipse.wst.sse.core.internal.provisional.IModelLoader; 8 import org.eclipse.wst.xml.core.internal.encoding.XMLDocumentCharsetDetector; 9 import org.eclipse.wst.xml.core.internal.encoding.XMLDocumentLoader; 10 import org.eclipse.wst.xml.core.internal.modelhandler.XMLModelLoader; 11 12 13 14 17 public class ModelHandlerForHBMXML extends AbstractModelHandler implements IModelHandler { 18 22 static String AssociatedContentTypeID = "org.hibernate.eclipse.mapper.content-type.hbm.xml"; 27 private static String ModelHandlerID = "org.hibernate.eclipse.mapper.handler.hbm.xml"; 29 public ModelHandlerForHBMXML() { 30 super(); 31 setId(ModelHandlerID); 32 setAssociatedContentTypeId(AssociatedContentTypeID); 33 } 34 35 public IDocumentCharsetDetector getEncodingDetector() { 36 return new XMLDocumentCharsetDetector(); 37 } 38 39 public IDocumentLoader getDocumentLoader() { 40 return new XMLDocumentLoader(); 41 } 42 43 public IModelLoader getModelLoader() { 44 return new XMLModelLoader(); 45 } 46 47 } 48 | Popular Tags |