public abstract class Util extends Object
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
ABSOLUTE_URL |
(package private) static long |
indexCounter
Used for generating unique id's
|
(package private) static Pattern |
OK_URL |
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyAttributes(Element source,
Element destination) |
static void |
copyChilds(Element source,
Element destination) |
static NodeList |
get(Cloud cloud,
NodeList list,
String field,
String value)
Just searches the nodes in a NodeList for which a certain field has a certain value.
|
static String |
getCssClass(Set<String> classes) |
static String |
getCssClass(String cl) |
static String |
getCssClass(String cl,
Set<String> allowed) |
static SortedSet<String> |
getCssClasses(String cl,
Set<String> allowed) |
static NodeList |
getRelatedNodes(Node editedNode,
NodeManager dest) |
static Node |
getUrlNode(Cloud cloud,
String href,
Element a) |
static String |
normalizeURL(javax.servlet.http.HttpServletRequest request,
String url)
Normalizes URL to absolute on server
|
static String |
normalizeURL(String url)
Adds missing protocol
|
static String |
normalizeWhiteSpace(String s) |
static Document |
parse(InputStream value)
Just parses InputStream to Document (without validation).
|
static Document |
parse(Object value)
Just parses String to Document
|
static String |
toString(Object value) |
static long indexCounter
public static final Pattern ABSOLUTE_URL
static final Pattern OK_URL
public static Document parse(Object value) throws ParserConfigurationException, SAXException, IOException
public static Document parse(InputStream value) throws ParserConfigurationException, SAXException, IOException
public static NodeList get(Cloud cloud, NodeList list, String field, String value)
public static String normalizeURL(javax.servlet.http.HttpServletRequest request, String url)
public static NodeList getRelatedNodes(Node editedNode, NodeManager dest)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}