1 19 package org.netbeans.modules.xml.schema.completion.util; 20 21 import org.netbeans.modules.xml.schema.completion.spi.CompletionModelProvider.CompletionModel; 22 import org.netbeans.modules.xml.schema.model.SchemaModel; 23 24 28 public class CompletionModelEx extends CompletionModel { 29 private String prefix; 30 private SchemaModel model; 31 private CompletionContextImpl context; 32 33 public CompletionModelEx(CompletionContextImpl context, 34 String prefix, SchemaModel model) { 35 this.prefix = prefix; 36 this.model = model; 37 this.context = context; 38 } 39 40 public String getSuggestedPrefix() { 41 return prefix; 45 } 46 47 public SchemaModel getSchemaModel() { 48 return model; 49 } 50 51 public String getTargetNamespace() { 52 return model.getSchema().getTargetNamespace(); 53 } 54 } 55 | Popular Tags |