public class SimpleHTMLFragment extends AbstractWingElement
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleHTMLFragment.SAXFilter
This is a simple SAX Handler that filters out start and end documents.
|
context| Modifier | Constructor and Description |
|---|---|
protected |
SimpleHTMLFragment(WingContext context,
boolean blankLines,
String fragment)
Construct a fragment object for translating into DRI.
|
| Modifier and Type | Method and Description |
|---|---|
void |
toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler,
NamespaceSupport namespaces)
Translate this element into SAX
|
dispose, endElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElementprotected SimpleHTMLFragment(WingContext context, boolean blankLines, String fragment) throws WingException
context - (Required) The context this element is contained in, such as
where to route SAX events and what i18n catalogue to use.blankLines - (Required) Determine if blank lines should be treated as
paragraphs delimeters.fragment - (Required) The HTML Fragment to be translated into DRI.WingExceptionpublic void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, NamespaceSupport namespaces) throws SAXException
contentHandler - (Required) The registered contentHandler where SAX events
should be routed too.lexicalHandler - (Required) The registered lexicalHandler where lexical events
(such as CDATA, DTD, etc) should be routed too.namespaces - (Required) SAX Helper class to keep track of namespaces able
to determine the correct prefix for a given namespace URI.SAXExceptionCopyright © 2014 DuraSpace. All Rights Reserved.