| java.lang.Object de.danet.an.util.sax.SAXUtil
SAXUtil | public class SAXUtil (Code) | | The SAXUtil provides help functions for generating SAX
events.
|
Method Summary | |
public static void | generateDialogHint(ContentHandler contentHandler, String attribute, String type, int maxlength) Generate a "dialog hint node", i.e. | public static void | generateDialogHint(ContentHandler contentHandler, String attribute, String type) Generate a "dialog hint node", i.e. | public static void | textElement(ContentHandler contentHandler, String elementName, Attributes attrs, String text) Generate all notifications corresponding to an XML element
with the given name and parameters that has the given
text as content. | public static void | textElementWithDialogHint(ContentHandler contentHandler, String elementName, Attributes attrs, String text, String dialogHintType, int dialogHintLength) Generate a element having text with a "dialog hint node",
i.e. |
generateDialogHint | public static void generateDialogHint(ContentHandler contentHandler, String attribute, String type, int maxlength) throws SAXException(Code) | | Generate a "dialog hint node", i.e. a hint how a node's
attribute or a node's value is to be represented in a dialog.
Parameters: contentHandler - main interface that most SAX applications implement. It will receive notification of the logic content of adocument. Parameters: attribute - the name of the node's attribute which is attributed by the dialog hint. This parameter may benull if the dialog hint applies to the value of the node. Parameters: type - the type attribute of the dialog hint node. Parameters: maxlength - the maximum length of the attribute or node value. throws: SAXException - if a general SAX error or warning occurs. |
generateDialogHint | public static void generateDialogHint(ContentHandler contentHandler, String attribute, String type) throws SAXException(Code) | | Generate a "dialog hint node", i.e. a hint how a node's
attribute or a node's value is to be represented in a dialog.
Parameters: contentHandler - main interface that most SAX applications implement. It will receive notification of the logic content of adocument. Parameters: attribute - the name of the node's attribute which is attributed by the dialog hint. This parameter may benull if the dialog hint applies to the value of the node. Parameters: type - the type attribute of the dialog hint node. throws: SAXException - if a general SAX error or warning occurs. |
textElement | public static void textElement(ContentHandler contentHandler, String elementName, Attributes attrs, String text) throws SAXException(Code) | | Generate all notifications corresponding to an XML element
with the given name and parameters that has the given
text as content.
Parameters: contentHandler - the content handler. Parameters: elementName - the unqualified element name. Parameters: attrs - optional attributes (may not be null ). Parameters: text - the content. throws: SAXException - if a general SAX error or warning occurs. |
textElementWithDialogHint | public static void textElementWithDialogHint(ContentHandler contentHandler, String elementName, Attributes attrs, String text, String dialogHintType, int dialogHintLength) throws SAXException(Code) | | Generate a element having text with a "dialog hint node",
i.e. a hint how a node's attribute or a node's value is to be
represented in a dialog.
Parameters: contentHandler - main interface that most SAX applications implement. It will receive notification of the logic content of adocument. Parameters: elementName - the name of the element to be generated. Parameters: attrs - the attributes of the element to be generated. Parameters: text - the text of the element to be generated. Parameters: dialogHintType - the type attribute of the dialog hint node. Parameters: dialogHintLength - the maximum length of the attribute or node value. throws: SAXException - if a general SAX error or warning occurs. |
|
|