public final class CmsLinkUpdateUtil extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
decodeEntities(java.lang.String value)
Decodes entities in a string if it isn't null.
|
static void |
updateType(org.dom4j.Element element,
CmsRelationType type)
Updates the type for a link xml element node.
|
static void |
updateXml(CmsLink link,
org.dom4j.Element element,
boolean updateOnly)
Updates the link node in the underlying XML page document.
|
static void |
updateXmlForHtmlValue(CmsLink link,
java.lang.String name,
org.dom4j.Element element)
Updates the given xml element with this link information.
|
static void |
updateXmlForVfsFile(CmsLink link,
org.dom4j.Element element)
Updates the given xml element with this link information.
|
public static void updateType(org.dom4j.Element element, CmsRelationType type)
element
- the link element node to updatetype
- the relation type to setpublic static void updateXml(CmsLink link, org.dom4j.Element element, boolean updateOnly)
link
- the link to updateelement
- the <link> element to updateupdateOnly
- if set and the element has no CmsLink.NODE_TARGET
subelement, so no action if executed at allpublic static void updateXmlForHtmlValue(CmsLink link, java.lang.String name, org.dom4j.Element element)
link
- the link to get the information fromname
- the (optional) name of the linkelement
- the <link> element to updatepublic static void updateXmlForVfsFile(CmsLink link, org.dom4j.Element element)
link
- the link to get the information fromelement
- the <link> element to updateprotected static java.lang.String decodeEntities(java.lang.String value)
value
- the string for which to decode entities