1 19 20 package org.netbeans.modules.xml.axi.datatype; 21 22 import java.util.List ; 23 import org.netbeans.modules.xml.axi.AXIModel; 24 import org.netbeans.modules.xml.axi.impl.DatatypeFactoryImpl; 25 import org.netbeans.modules.xml.schema.model.SchemaComponent; 26 import org.netbeans.modules.xml.schema.model.SimpleType; 27 28 32 public abstract class DatatypeFactory { 33 34 private static DatatypeFactory instance; 35 36 37 public static DatatypeFactory getDefault() { 38 if(instance == null) 39 instance = new DatatypeFactoryImpl(); 40 return instance; 41 } 42 43 47 public abstract Datatype getDatatype(AXIModel axiModel, SchemaComponent component); 48 49 52 public abstract List <Class <? extends SchemaComponent>> getApplicableSchemaFacets(SimpleType st); 53 54 58 public abstract Datatype createPrimitive(String typeName); 59 } 60 | Popular Tags |