1 17 package com.sun.org.apache.xml.internal.security.transforms.implementations; 18 19 20 21 import com.sun.org.apache.xml.internal.dtm.DTMManager; 22 import com.sun.org.apache.xml.internal.security.utils.I18n; 23 import com.sun.org.apache.xpath.internal.CachedXPathAPI; 24 import com.sun.org.apache.xpath.internal.XPathContext; 25 import org.w3c.dom.Node ; 26 27 28 66 public class FuncHereContext extends XPathContext { 67 68 72 private FuncHereContext() {} 73 74 79 public FuncHereContext(Node owner) { 80 super(owner); 81 } 82 83 89 public FuncHereContext(Node owner, XPathContext xpathContext) { 90 91 super(owner); 92 93 try { 94 super.m_dtmManager = xpathContext.getDTMManager(); 95 } catch (IllegalAccessError iae) { 96 throw new IllegalAccessError (I18n.translate("endorsed.jdk1.4.0") 97 + " Original message was \"" 98 + iae.getMessage() + "\""); 99 } 100 } 101 102 108 public FuncHereContext(Node owner, CachedXPathAPI previouslyUsed) { 109 110 super(owner); 111 112 try { 113 super.m_dtmManager = previouslyUsed.getXPathContext().getDTMManager(); 114 } catch (IllegalAccessError iae) { 115 throw new IllegalAccessError (I18n.translate("endorsed.jdk1.4.0") 116 + " Original message was \"" 117 + iae.getMessage() + "\""); 118 } 119 } 120 121 127 public FuncHereContext(Node owner, DTMManager dtmManager) { 128 129 super(owner); 130 131 try { 132 super.m_dtmManager = dtmManager; 133 } catch (IllegalAccessError iae) { 134 throw new IllegalAccessError (I18n.translate("endorsed.jdk1.4.0") 135 + " Original message was \"" 136 + iae.getMessage() + "\""); 137 } 138 } 139 } 140 | Popular Tags |