|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.setup.xml.A_CmsSetupXmlUpdate
org.opencms.setup.xml.A_CmsXmlWorkplace
org.opencms.setup.xml.CmsXmlUpdateLocalizationKeys
public class CmsXmlUpdateLocalizationKeys
Updates localization keys.
| Constructor Summary | |
|---|---|
CmsXmlUpdateLocalizationKeys()
|
|
| Method Summary | |
|---|---|
protected boolean |
executeUpdate(Document document,
String xpath)
Executes the adding/updating changes on the given document. |
protected String |
getCommonPath()
Returns a parent path that is common for all nodes to modify. |
String |
getName()
Returns the nice name for the change. |
List |
getNewKeys()
Returns the new Keys. |
List |
getOldKeys()
Returns the old Keys. |
protected List |
getXPathsToUpdate()
Returns a list of xpaths for the nodes to add/update. |
protected Document |
prepareDoc(Document doc)
Prepares a new document. |
protected void |
updateDoc(Document document,
Document newDoc,
String xpath)
Updates the given doc inserting the given node corresponding to the given xpath. |
| Methods inherited from class org.opencms.setup.xml.A_CmsXmlWorkplace |
|---|
getXmlFilename, setAccessEntry, setMenuEntry |
| Methods inherited from class org.opencms.setup.xml.A_CmsSetupXmlUpdate |
|---|
execute, getCodeToChange, getXPathsToRemove, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsXmlUpdateLocalizationKeys()
| Method Detail |
|---|
public String getName()
I_CmsSetupXmlUpdate
I_CmsSetupXmlUpdate.getName()public List getNewKeys()
public List getOldKeys()
protected boolean executeUpdate(Document document,
String xpath)
A_CmsSetupXmlUpdate
Only needs to be overriden if A_CmsSetupXmlUpdate.getXPathsToUpdate() is not empty.
executeUpdate in class A_CmsSetupXmlUpdatedocument - the document to apply the changes toxpath - the xpath to execute the changes for
A_CmsSetupXmlUpdate.executeUpdate(org.dom4j.Document, java.lang.String)protected String getCommonPath()
A_CmsSetupXmlUpdate
getCommonPath in class A_CmsSetupXmlUpdateA_CmsSetupXmlUpdate.getCommonPath()protected List getXPathsToUpdate()
A_CmsSetupXmlUpdate
getXPathsToUpdate in class A_CmsSetupXmlUpdateA_CmsSetupXmlUpdate.getXPathsToUpdate()protected Document prepareDoc(Document doc)
A_CmsSetupXmlUpdate
prepareDoc in class A_CmsSetupXmlUpdatedoc - the original document
A_CmsSetupXmlUpdate.prepareDoc(org.dom4j.Document)
protected void updateDoc(Document document,
Document newDoc,
String xpath)
A_CmsSetupXmlUpdate
updateDoc in class A_CmsSetupXmlUpdatedocument - the original document to updatenewDoc - the document to updatexpath - the corresponding xpathA_CmsSetupXmlUpdate.updateDoc(org.dom4j.Document, org.dom4j.Document, java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||