1 19 20 package org.netbeans.modules.xml.text.completion; 21 22 import java.util.Enumeration ; 23 24 import org.w3c.dom.*; 25 26 import org.netbeans.modules.xml.api.model.*; 27 28 33 public class EmptyQuery implements GrammarQuery { 34 35 38 public static final GrammarQuery INSTANCE = new EmptyQuery(); 39 40 42 public Enumeration queryEntities(String prefix) { 43 return org.openide.util.Enumerations.empty(); 44 } 45 46 public Enumeration queryAttributes(HintContext ctx) { 47 return org.openide.util.Enumerations.empty(); 48 } 49 50 public Enumeration queryElements(HintContext ctx) { 51 return org.openide.util.Enumerations.empty(); 52 } 53 54 public Enumeration queryNotations(String prefix) { 55 return org.openide.util.Enumerations.empty(); 56 } 57 58 public Enumeration queryValues(HintContext ctx) { 59 return org.openide.util.Enumerations.empty(); 60 } 61 62 public boolean isAllowed(Enumeration en) { 63 return false; 64 } 65 66 public GrammarResult queryDefault(HintContext virtualNodeCtx) { 67 return null; 68 } 69 70 public java.awt.Component getCustomizer(HintContext ctx) { 71 return null; 72 } 73 74 public boolean hasCustomizer(HintContext ctx) { 75 return false; 76 } 77 78 public org.openide.nodes.Node.Property[] getProperties(HintContext ctx) { 79 return null; 80 } 81 82 83 } 84 | Popular Tags |