|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--java.applet.Applet | +--weblogic.apache.xalan.xslt.client.XSLTProcessorApplet
Provides applet host for the XSLT processor. To perform transformations on an HTML client:
setDocumentURL(java.lang.String)
and
setStyleURL(java.lang.String)
methods to specify the XML source document and XSL stylesheet.#transformToHTML
method to perform the transformation and return
the result as a String.This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Inner classes inherited from class java.applet.Applet |
java.applet.Applet.AccessibleApplet |
Inner classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
XSLTProcessorApplet()
The XSLTProcessorApplet constructor takes no arguments. |
Method Summary | |
void |
destroy()
Cleanup; called when applet is terminated and unloaded. |
java.lang.String |
escapeString(java.lang.String s)
Given a String containing markup, escape the markup so it can be displayed in the browser. |
void |
freeCache()
The processor keeps a cache of the source and style trees, so call this method if they have changed or you want to do garbage collection. |
java.lang.String |
getAppletInfo()
Get basic information about the applet |
java.lang.String |
getHtmlText()
Assuming the stylesheet URL and the input XML URL have been set, perform the transformation and return the result as a String. |
java.lang.String[][] |
getParameterInfo()
Get descriptions of the applet parameters. |
java.lang.String |
getResultTreeAsText()
Get the HTML result Tree as a text string suitable for display in a browser. |
java.lang.String |
getSourceTreeAsText()
Get the XML source Tree as a text string suitable for display in a browser. |
java.lang.String |
getStyleTreeAsText()
Get the XSL style Tree as a text string suitable for display in a browser. |
java.lang.String |
getTreeAsText(java.lang.String treeURL)
Get a DOM tree as escaped text, suitable for display in the browser. |
void |
init()
Standard applet initialization. |
protected void |
initLiaison()
Try to init the XML liaison object: currently not implemented. |
void |
paint(java.awt.Graphics g)
Do not call; this applet contains no UI or visual components. |
void |
setDocumentURL(java.lang.String urlString)
Set the URL to the XML document that will be transformed with the XSL stylesheet. |
void |
setStyleSheetAttribute(java.lang.String nameOfIDAttrOfElemToModify,
java.lang.String elemId,
java.lang.String attrName,
java.lang.String value)
Set an attribute in the stylesheet, which gives the ability to have some dynamic selection control. |
void |
setStylesheetParam(java.lang.String key,
java.lang.String expr)
Submit a stylesheet parameter. |
void |
setStyleURL(java.lang.String urlString)
Set the URL to the XSL stylesheet that will be used to transform the input XML. |
void |
start()
Automatically called when the HTML client containing the applet loads. |
void |
stop()
Automatically called when the HTML page containing the applet is no longer on the screen. |
java.lang.String |
transformToHtml(java.lang.String doc)
Process a document and a stylesheet and return the transformation result. |
java.lang.String |
transformToHtml(java.lang.String doc,
java.lang.String style)
Process a document and a stylesheet and return the transformation result. |
Methods inherited from class java.applet.Applet |
getAccessibleContext,
getAppletContext,
getAudioClip,
getAudioClip,
getCodeBase,
getDocumentBase,
getImage,
getImage,
getLocale,
getParameter,
isActive,
newAudioClip,
play,
play,
resize,
resize,
setStub,
showStatus |
Methods inherited from class java.awt.Panel |
addNotify |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getListeners,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
paramString,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
setLayout,
update,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addHierarchyBoundsListener,
addHierarchyListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getGraphicsConfiguration,
getHeight,
getInputContext,
getInputMethodRequests,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processFocusEvent,
processHierarchyBoundsEvent,
processHierarchyEvent,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeHierarchyBoundsListener,
removeHierarchyListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public XSLTProcessorApplet()
Method Detail |
public java.lang.String getAppletInfo()
public java.lang.String[][] getParameterInfo()
public void init()
protected void initLiaison()
public void destroy()
public void paint(java.awt.Graphics g)
public void start()
public void stop()
public void setStyleURL(java.lang.String urlString)
valid
- URL string.public void setDocumentURL(java.lang.String urlString)
valid
- URL string.public void freeCache()
public void setStyleSheetAttribute(java.lang.String nameOfIDAttrOfElemToModify, java.lang.String elemId, java.lang.String attrName, java.lang.String value)
nameOfIDAttrOfElemToModify
- The name of an attribute to search for a unique id.elemId
- The unique ID to look for.attrName
- Once the element is found, the name of the attribute to set.value
- The value to set the attribute to.public void setStylesheetParam(java.lang.String key, java.lang.String expr)
expr
- The parameter expression to be submitted.XSLTProcessor.setStylesheetParam(String, String)
public java.lang.String escapeString(java.lang.String s)
public java.lang.String getHtmlText()
public java.lang.String getTreeAsText(java.lang.String treeURL) throws java.io.IOException
public java.lang.String getSourceTreeAsText() throws java.lang.Exception
public java.lang.String getStyleTreeAsText() throws java.lang.Exception
public java.lang.String getResultTreeAsText() throws java.lang.Exception
public java.lang.String transformToHtml(java.lang.String doc, java.lang.String style)
public java.lang.String transformToHtml(java.lang.String doc)
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |