Package groovy.console.ui.text
Class StructuredSyntaxHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
groovy.console.ui.text.StructuredSyntaxHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
SAX handler that reads structured syntax definitions into a document filter.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAlignment value name for centered text.static final StringAlignment value name for justified text.static final StringAlignment value name for left-aligned text.static final StringAlignment value name for right-aligned text.static final StringStyle attribute name for alignment.static final StringStyle attribute name for background color.static final StringStyle attribute name for bidirectional text level.static final StringStyle attribute name for bold text.static final StringStyle attribute name for embedded components.static final StringStyle attribute name for component element names.static final StringStyle attribute name for composed text.static final StringStyle attribute name for first-line indentation.static final StringStyle attribute name for font family.static final StringStyle attribute name for font size.static final StringStyle attribute name for foreground color.static final StringStyle attribute name for embedded icons.static final StringStyle attribute name for icon element names.static final StringStyle attribute name for italic text.static final StringStyle attribute name for left indentation.static final StringStyle attribute name for line spacing.static final StringStyle attribute name for model attributes.static final StringStyle attribute name for named attributes.static final StringStyle attribute name for orientation.static final StringXML element name for regular expression entries.static final StringStyle attribute name for resolve attributes.static final StringStyle attribute name for right indentation.static final StringStyle attribute name for space above paragraphs.static final StringStyle attribute name for space below paragraphs.static final StringStyle attribute name for strike-through text.static final StringXML element name for style entries.static final StringStyle attribute name for subscript text.static final StringStyle attribute name for superscript text.static final StringStyle attribute name for tab sets.static final StringStyle attribute name for underlined text. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a handler for the supplied syntax filter. -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidvoidendElement(String uri, String localName, String qName) voidvoidvoidstartElement(String uri, String localName, String qName, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
REGEXP
XML element name for regular expression entries.- See Also:
-
STYLE
XML element name for style entries.- See Also:
-
ALIGN_CENTER
Alignment value name for centered text.- See Also:
-
ALIGN_JUSTIFIED
Alignment value name for justified text.- See Also:
-
ALIGN_LEFT
Alignment value name for left-aligned text.- See Also:
-
ALIGN_RIGHT
Alignment value name for right-aligned text.- See Also:
-
ALIGNMENT
Style attribute name for alignment.- See Also:
-
BACKGROUND
Style attribute name for background color.- See Also:
-
BIDI_LEVEL
Style attribute name for bidirectional text level.- See Also:
-
BOLD
Style attribute name for bold text.- See Also:
-
COMPONENT_ATTRIBUTE
Style attribute name for embedded components.- See Also:
-
COMPONENT_ELEMENT_NAME
Style attribute name for component element names.- See Also:
-
COMPOSED_TEXT_ATTRIBUTE
Style attribute name for composed text.- See Also:
-
FIRST_LINE_INDENT
Style attribute name for first-line indentation.- See Also:
-
FONT_FAMILY
Style attribute name for font family.- See Also:
-
FONT_SIZE
Style attribute name for font size.- See Also:
-
FOREGROUND
Style attribute name for foreground color.- See Also:
-
ICON_ATTRIBUTE
Style attribute name for embedded icons.- See Also:
-
ICON_ELEMENT_NAME
Style attribute name for icon element names.- See Also:
-
ITALIC
Style attribute name for italic text.- See Also:
-
LEFT_INDENT
Style attribute name for left indentation.- See Also:
-
LINE_SPACING
Style attribute name for line spacing.- See Also:
-
MODEL_ATTRIBUTE
Style attribute name for model attributes.- See Also:
-
NAME_ATTRIBUTE
Style attribute name for named attributes.- See Also:
-
ORIENTATION
Style attribute name for orientation.- See Also:
-
RESOLVE_ATTRIBUTE
Style attribute name for resolve attributes.- See Also:
-
RIGHT_INDENT
Style attribute name for right indentation.- See Also:
-
SPACE_ABOVE
Style attribute name for space above paragraphs.- See Also:
-
SPACE_BELOW
Style attribute name for space below paragraphs.- See Also:
-
STRIKE_THROUGH
Style attribute name for strike-through text.- See Also:
-
SUBSCRIPT
Style attribute name for subscript text.- See Also:
-
SUPERSCRIPT
Style attribute name for superscript text.- See Also:
-
TAB_SET
Style attribute name for tab sets.- See Also:
-
UNDERLINE
Style attribute name for underlined text.- See Also:
-
-
Constructor Details
-
StructuredSyntaxHandler
Creates a handler for the supplied syntax filter.- Parameters:
filter- the filter receiving parsed syntax definitions
-
-
Method Details
-
characters
public void characters(char[] ch, int start, int length) - Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
error
- Specified by:
errorin interfaceErrorHandler- Overrides:
errorin classDefaultHandler- Throws:
SAXException
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classDefaultHandler- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-