SnugglePackages you have
created or want to use by calling addPackage(SnugglePackage).
createSession() to create a "session" that will take one (or more) input
documents and produce a DOM.
SnuggleSession created will use a _copy_ of
the SnugglePackages registered with the engine and _copies_ of
the current defaultSessionConfiguration, defaultDOMOutputOptions,
and defaultXMLStringOutputOptions. On the other hand, it will use the shared
StylesheetManager set for this engine.
| Modifier and Type | Field and Description |
|---|---|
| private DOMOutputOptions | |
| private SessionConfiguration | |
| private XMLStringOutputOptions | |
| private final List | packages
List of all currently registered |
| private final StylesheetManager | stylesheetManager
Helper class to manage XSLT Stylesheets |
| Access | Constructor and Description |
|---|---|
| public | SnuggleEngine()
Creates a new |
| public | SnuggleEngine(StylesheetCache stylesheetCache)
Creates a new |
| public | SnuggleEngine(TransformerFactoryChooser transformerFactoryChooser, StylesheetCache stylesheetCache)
Creates a new |
| public | SnuggleEngine(StylesheetManager stylesheetManager)
Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | addPackage(SnugglePackage snugglePackage)
Registers the given |
| public SnuggleSession | createSession()
Creates a new |
| public SnuggleSession | createSession(SessionConfiguration
SessionConfiguration to use, which must not be null.Creates a new |
| public SnuggleSimpleMathRunner | |
| public SnuggleSimpleMathRunner | |
| public BuiltinCommand | getBuiltinCommandByTeXName(String texName)
Returns the |
| public BuiltinEnvironment | getBuiltinEnvironmentByTeXName(String texName)
Returns the |
| public DOMOutputOptions | |
| public DOMOutputOptions | getDefaultDOMOutputOptions()
Gets the default |
| public SessionConfiguration | getDefaultSessionConfiguration()
Gets the selected default |
| public XMLStringOutputOptions | getDefaultXMLStringOutputOptions()
Gets the default |
| public List | |
| public StylesheetManager | getStylesheetManager()
Convenience method to extract the underlying |
| public void | setDefaultDOMOptions(DOMOutputOptions defaultDOMOptions)
Deprecated
Use
setDefaultDOMOutputOptions(DOMOutputOptions)
|
| public void | setDefaultDOMOutputOptions(DOMOutputOptions
new defaultDOMOutputOptions)DOMOutputOptions, which must not be null.Sets the default |
| public void | setDefaultSessionConfiguration(SessionConfiguration
new default defaultSessionConfiguration)SessionConfiguration, which
must not be null.Sets the default |
| public void | setDefaultXMLStringOutputOptions(XMLStringOutputOptions
new defaultXMLOutputOptions)XMLStringOutputOptions, which must not be null.Sets the default |
| defaultDOMOutputOptions | back to summary |
|---|---|
| private DOMOutputOptions defaultDOMOutputOptions Default | |
| defaultSessionConfiguration | back to summary |
|---|---|
| private SessionConfiguration defaultSessionConfiguration Default | |
| defaultXMLStringOutputOptions | back to summary |
|---|---|
| private XMLStringOutputOptions defaultXMLStringOutputOptions Default | |
| packages | back to summary |
|---|---|
| private final List<SnugglePackage> packages List of all currently registered | |
| stylesheetManager | back to summary |
|---|---|
| private final StylesheetManager stylesheetManager Helper class to manage XSLT Stylesheets | |
| SnuggleEngine | back to summary |
|---|---|
| public SnuggleEngine() Creates a new This will be fine in most cases. If you want more control over this, consider the alternative constructor. | |
| SnuggleEngine | back to summary |
|---|---|
| public SnuggleEngine(StylesheetCache stylesheetCache) Creates a new | |
| SnuggleEngine | back to summary |
|---|---|
| public SnuggleEngine(TransformerFactoryChooser transformerFactoryChooser, StylesheetCache stylesheetCache) Creates a new | |
| SnuggleEngine | back to summary |
|---|---|
| public SnuggleEngine(StylesheetManager stylesheetManager) Creates a new | |
| addPackage | back to summary |
|---|---|
| public void addPackage(SnugglePackage snugglePackage) Registers the given | |
| createSession | back to summary |
|---|---|
| public SnuggleSession createSession() Creates a new | |
| createSession | back to summary |
|---|---|
| public SnuggleSession createSession(SessionConfiguration sessionConfiguration) Creates a new
| |
| createSimpleMathRunner | back to summary |
|---|---|
| public SnuggleSimpleMathRunner createSimpleMathRunner() | |
| createSimpleMathRunner | back to summary |
|---|---|
| public SnuggleSimpleMathRunner createSimpleMathRunner(SessionConfiguration sessionConfiguration) | |
| getBuiltinCommandByTeXName | back to summary |
|---|---|
| public BuiltinCommand getBuiltinCommandByTeXName(String texName) Returns the | |
| getBuiltinEnvironmentByTeXName | back to summary |
|---|---|
| public BuiltinEnvironment getBuiltinEnvironmentByTeXName(String texName) Returns the | |
| getDefaultDOMOptions | back to summary |
|---|---|
| public DOMOutputOptions getDefaultDOMOptions()
Deprecated
| |
| getDefaultDOMOutputOptions | back to summary |
|---|---|
| public DOMOutputOptions getDefaultDOMOutputOptions() Gets the default | |
| getDefaultSessionConfiguration | back to summary |
|---|---|
| public SessionConfiguration getDefaultSessionConfiguration() Gets the selected default | |
| getDefaultXMLStringOutputOptions | back to summary |
|---|---|
| public XMLStringOutputOptions getDefaultXMLStringOutputOptions() Gets the default | |
| getPackages | back to summary |
|---|---|
| public List Returns a synchronized
| |
| getStylesheetManager | back to summary |
|---|---|
| public StylesheetManager getStylesheetManager() Convenience method to extract the underlying | |
| setDefaultDOMOptions | back to summary |
|---|---|
| public void setDefaultDOMOptions(DOMOutputOptions defaultDOMOptions)
Deprecated
| |
| setDefaultDOMOutputOptions | back to summary |
|---|---|
| public void setDefaultDOMOutputOptions(DOMOutputOptions defaultDOMOutputOptions) Sets the default
| |
| setDefaultSessionConfiguration | back to summary |
|---|---|
| public void setDefaultSessionConfiguration(SessionConfiguration defaultSessionConfiguration) Sets the default
| |
| setDefaultXMLStringOutputOptions | back to summary |
|---|---|
| public void setDefaultXMLStringOutputOptions(XMLStringOutputOptions defaultXMLOutputOptions) Sets the default
| |