|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjd.xml.xslt.extension.JavaXsltContext
A wrapper around a jd.xml.xslt.XsltContext to provide an org.w3c.xsl.XSLTContext to a Java extension function. Since DOM is not used to implement the XPath tree model, the DOM-related methods are not supported and will throw an exception when called. However one can still cast the XSLTContext to a JavaXsltContext and access the current node and context node as genuine XPathNode objects.
| Constructor Summary | |
JavaXsltContext(XsltContext context)
|
|
| Method Summary | |
Node |
getContextNode()
Throws an expection since the XPath model used by jd.xslt is not a DOM model. |
int |
getContextPosition()
Returns the context position from the XPath expression context. |
int |
getContextSize()
Returns the context size from the XPath expression context. |
Node |
getCurrentNode()
Throws an expection since the XPath model used by jd.xslt is not a DOM model Use getXpCurrentNode instead. |
Document |
getOwnerDocument()
Throws an expection since the XPath model used by jd.xslt is not a DOM model |
XPathNode |
getXpContextNode()
Return the context node. |
XPathNode |
getXpCurrentNode()
Return the current node. |
String |
stringValue(Node node)
Throws an expection since the XPath model used by jd.xslt is not a DOM model Use XPathNode.getXpValue() instead. |
Object |
systemProperty(String namespaceURI,
String localName)
Returns an Object representing the value of the system property whose expanded-name has the specified namespace URI and local part. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JavaXsltContext(XsltContext context)
| Method Detail |
public Object systemProperty(String namespaceURI,
String localName)
XSLTContext
systemProperty in interface XSLTContextpublic int getContextPosition()
XSLTContext
getContextPosition in interface XSLTContextpublic int getContextSize()
XSLTContext
getContextSize in interface XSLTContext
public Node getContextNode()
throws IllegalStateException
getContextNode in interface XSLTContextIllegalStateExceptiongetXpContextNode()public XPathNode getXpContextNode()
public Node getCurrentNode()
throws IllegalStateException
getCurrentNode in interface XSLTContextIllegalStateExceptiongetXpCurrentNode()public XPathNode getXpCurrentNode()
public Document getOwnerDocument()
throws IllegalStateException
getOwnerDocument in interface XSLTContextIllegalStateException
public String stringValue(Node node)
throws IllegalStateException
stringValue in interface XSLTContextIllegalStateExceptionjd.xml.xpath.model.XPathNode#getXpValue
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||