org.apache.xmlbeans.impl.xpath.saxon
public class: XBeansStandaloneContext [javadoc |
source]
java.lang.Object
net.sf.saxon.xpath.StandaloneContext
org.apache.xmlbeans.impl.xpath.saxon.XBeansStandaloneContext
Date: Jan 10, 2005
Time: 10:46:59 AM
This class is used to circumvent a Saxon limitation,
namely, the lack of a method to set the default element NS
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.xmlbeans.impl.xpath.saxon.XBeansStandaloneContext Detail: |
public short getDefaultElementNamespace() {
short result = super.getDefaultElementNamespace();
if (result == NamespaceConstant.NULL_CODE
&& defaultUri)
return (short) defaultNSCode;
else
return result;
}
|
public void setDefaultElementNamespace(String uri) {
defaultUri = true;
defaultNSCode = this.getNamePool().allocateCodeForURI(uri);
}
|