public final class SourceViewSupport extends Object
This class is thread-safe.
Modifier and Type | Field and Description |
---|---|
static String |
SOURCE_VIEW_CSS_HREF
The "systemId" of the CSS file used to create the source view of any
XML document.
|
static Name |
WRAPPED_TEXT_NAME
Name of the root element used to wrap a plain text file
into an XML document.
|
static Namespace |
WRAPPED_TEXT_NAMESPACE
Namespace of the root element used to wrap a plain text file
into an XML document.
|
Modifier and Type | Method and Description |
---|---|
static StyleSheetInfo |
getStyleSheetInfo(Document doc)
Returns the StyleSheetInfo used to create a source view for specified
document.
|
static URL |
getStyleSheetURL()
Returns the URL of the stylesheet used to create
the source view of a document.
|
public static final String SOURCE_VIEW_CSS_HREF
public static final Namespace WRAPPED_TEXT_NAMESPACE
public static final Name WRAPPED_TEXT_NAME
public static URL getStyleSheetURL()
null
if the "Edit source" add-on
has not been installed.public static StyleSheetInfo getStyleSheetInfo(Document doc)
null
if the "Edit source"
add-on has not been installed.