1 19 20 21 package org.netbeans.spi.jsp.lexer; 22 23 import java.util.Collections ; 24 import java.util.Map ; 25 26 27 31 public final class JspParseData { 32 33 private Map <String , String > prefixMap; 34 private boolean isELIgnored, isXMLSyntax; 35 36 public JspParseData() { 37 prefixMap = Collections.emptyMap(); 38 isELIgnored = false; 39 isXMLSyntax = false; 40 } 41 42 43 public void updateParseData(Map <String ,String > prefixMap, boolean isELIgnored, boolean isXMLSyntax) { 44 this.prefixMap = prefixMap; 45 this.isELIgnored = isELIgnored; 46 this.isXMLSyntax = isXMLSyntax; 47 } 48 49 51 public boolean isTagLibRegistered(String prefix) { 52 if (prefixMap == null) { 53 return false; 54 } 55 return prefixMap.containsKey(prefix); 56 } 57 58 60 public boolean isELIgnored() { 61 return isELIgnored; 62 } 63 64 67 public boolean isXMLSyntax(){ 68 return isXMLSyntax; 69 } 70 71 } 72 | Popular Tags |