1 package net.sf.saxon.expr; 2 import net.sf.saxon.Configuration; 3 import net.sf.saxon.type.AtomicType; 4 import net.sf.saxon.functions.FunctionLibrary; 5 import net.sf.saxon.instruct.LocationMap; 6 import net.sf.saxon.om.NamePool; 7 import net.sf.saxon.om.NamespaceResolver; 8 import net.sf.saxon.trans.StaticError; 9 import net.sf.saxon.trans.XPathException; 10 11 import javax.xml.transform.SourceLocator ; 12 import java.util.Comparator ; 13 14 18 19 public interface StaticContext { 20 21 24 25 public Configuration getConfiguration(); 26 27 31 32 public LocationMap getLocationMap(); 33 34 37 38 public void issueWarning(String s, SourceLocator locator); 39 40 45 46 public String getSystemId(); 47 48 52 53 public int getLineNumber(); 54 55 61 62 public String getBaseURI(); 63 64 70 71 public String getURIForPrefix(String prefix) throws XPathException; 72 73 76 77 public NamePool getNamePool(); 78 79 82 83 public VariableDeclaration bindVariable(int fingerprint) throws StaticError; 84 85 89 90 public FunctionLibrary getFunctionLibrary(); 91 92 97 98 public Comparator getCollation(String name) throws XPathException; 99 100 105 106 public String getDefaultCollationName(); 107 108 111 112 public short getDefaultElementNamespace(); 113 114 117 118 public String getDefaultFunctionNamespace(); 119 120 123 124 public boolean isInBackwardsCompatibleMode(); 125 126 134 135 public boolean isImportedSchema(String namespace); 136 137 144 145 public boolean isAllowedBuiltInType(AtomicType type); 146 147 151 152 NamespaceResolver getNamespaceResolver(); 153 154 } 155 156 | Popular Tags |