| java.lang.Object de.danet.an.util.web.W3CDomUtil
W3CDomUtil | public class W3CDomUtil (Code) | | Utilities for easy use of org.w3c.dom things.
|
Method Summary | |
public static Element | appendDialogHint(Node node, String attribute, String type) Appends to a given node a "dialog hint node", i.e. | public static Element | appendDialogHint(Node node, String attribute, String type, long maxlength) Appends to a given node a "dialog hint node", i.e. | public static Element | createLink(Document doc, String name, String hint, String href, String display) Returns a "link" element with the given attributes. | public static Document | createNewDocument() Just get a new, never used and fresh Document . | public static ProcessingInstruction | findFirstPI(Document doc, String name) Find the first PI node with the given PI target name.
Parameters: doc - the document to search. Parameters: name - the PI target name. |
appendDialogHint | public static Element appendDialogHint(Node node, String attribute, String type)(Code) | | Appends to a given node 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: node - the node to which the dialog hint node is to beappended. 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. the appended dialog hint element. |
appendDialogHint | public static Element appendDialogHint(Node node, String attribute, String type, long maxlength)(Code) | | Appends to a given node 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: node - the node to which the dialog hint node is to beappended. 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 maxlength attribute of the dialog hint node. the appended dialog hint element. |
createLink | public static Element createLink(Document doc, String name, String hint, String href, String display)(Code) | | Returns a "link" element with the given attributes. Valid values
for name , hint and type
are documentated in the DV-Konzept.
Parameters: doc - The W3C DOM document in which the link will be inserted. Parameters: name - The name atribute of the link. Parameters: hint - The hint attribute of the link. Parameters: href - The href attribute of the link. Strings starting with"http://" are not modified. Parameters: display - The display string used to show the link. (UsemappingSetup.mapText() or similar before calling this method.) An W3C DOM element of type "link". |
createNewDocument | public static Document createNewDocument()(Code) | | Just get a new, never used and fresh Document .
a new, never used and fresh Document |
findFirstPI | public static ProcessingInstruction findFirstPI(Document doc, String name)(Code) | | Find the first PI node with the given PI target name.
Parameters: doc - the document to search. Parameters: name - the PI target name. the node found or null . |
|
|