|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.richtext.processors.xml.Util
public abstract class Util
Utility functions, used by various classes in the package.
| Field Summary | |
|---|---|
static Pattern |
ABSOLUTE_URL
|
(package private) static long |
indexCounter
Used for generating unique id's |
(package private) static Pattern |
OK_URL
|
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
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(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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static long indexCounter
public static final Pattern ABSOLUTE_URL
static final Pattern OK_URL
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static Document parse(Object value)
throws ParserConfigurationException,
SAXException,
IOException
ParserConfigurationException
SAXException
IOException
public static Document parse(InputStream value)
throws ParserConfigurationException,
SAXException,
IOException
ParserConfigurationException
SAXException
IOException
public static void copyAttributes(Element source,
Element destination)
public static void copyChilds(Element source,
Element destination)
public static SortedSet<String> getCssClasses(String cl,
Set<String> allowed)
public static String getCssClass(Set<String> classes)
public static String getCssClass(String cl,
Set<String> allowed)
public static String getCssClass(String cl)
public static String normalizeWhiteSpace(String s)
public static NodeList get(Cloud cloud,
NodeList list,
String field,
String value)
public static Node getUrlNode(Cloud cloud,
String href,
Element a)
public static String normalizeURL(HttpServletRequest request,
String url)
public static String normalizeURL(String url)
public static NodeList getRelatedNodes(Node editedNode,
NodeManager dest)
public static String toString(Object value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||