com.togethersoft.testing.shared.util
Class ElementUtil


public class ElementUtil

Stereotype tested
testcase test.com.togethersoft.testing.shared.util.TestElementUtil

Field Summary
 private static DOMParserMyParser
           
 private final static AssetCategoryNULL_CATEGORY
           

Method Summary
 static StringcreateRefid(String prefix, String suffix)
          Generates new unique refid.
 static ICategorygetCategory(Element el)
           
 static DOMParsergetDOMParser()
          This method is quite dangerous.
 static StringgetStringRepresentation(Node el)
           
 static voidsetCategory(Element el, ICategory cat)
           
 static synchronized Elementtext2Element(String text)
           

Field Detail

MyParser

private static DOMParser MyParser

NULL_CATEGORY

private final static AssetCategory NULL_CATEGORY
Method Detail

createRefid

public static String createRefid(String prefix, String suffix)
Generates new unique refid.
parameter String optional prefix., String optional suffix.

getCategory

public static ICategory getCategory(Element el)

getDOMParser

public static DOMParser getDOMParser()
This method is quite dangerous. Don't use it.

getStringRepresentation

public static String getStringRepresentation(Node el)

setCategory

public static void setCategory(Element el, ICategory cat)

text2Element

public static synchronized Element text2Element(String text)

Association Links

to Class com.togethersoft.testing.shared.AssetCategory