org.eclipse.jst.pagedesigner.converter
Class ConverterUtil
java.lang.Object
org.eclipse.jst.pagedesigner.converter.ConverterUtil
public class ConverterUtil
- extends java.lang.Object
- Version:
- 1.5
Method Summary |
static void |
copyAllAttributes(org.w3c.dom.Element source,
org.w3c.dom.Element dest,
java.util.Set ignore)
|
static void |
copyAttribute(org.w3c.dom.Element source,
java.lang.String srcattr,
org.w3c.dom.Element dest,
java.lang.String destattr)
copy a single attribute (if exist) |
static org.w3c.dom.Element |
createDescriptionElement(IDOMDocument document,
java.lang.String text)
|
static boolean |
isEmptyContainer(org.w3c.dom.Element hostElement)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConverterUtil
public ConverterUtil()
copyAllAttributes
public static void copyAllAttributes(org.w3c.dom.Element source,
org.w3c.dom.Element dest,
java.util.Set ignore)
- Parameters:
source
- dest
- ignore
-
copyAttribute
public static void copyAttribute(org.w3c.dom.Element source,
java.lang.String srcattr,
org.w3c.dom.Element dest,
java.lang.String destattr)
- copy a single attribute (if exist)
- Parameters:
source
- srcattr
- dest
- destattr
-
isEmptyContainer
public static boolean isEmptyContainer(org.w3c.dom.Element hostElement)
- Parameters:
hostElement
-
- Returns:
- true if hostElement represents an empty container
createDescriptionElement
public static org.w3c.dom.Element createDescriptionElement(IDOMDocument document,
java.lang.String text)
- Parameters:
document
- text
-
- Returns:
- the description element in the document containing text