Class CmsConvertXmlSettings
java.lang.Object
org.opencms.workplace.tools.content.convertxml.CmsConvertXmlSettings
Bean to hold the settings needed for the operation of converting xml files in
the OpenCms VFS.
- Since:
- 7.0.5
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Property for the tag-replace contentool to know the files that have been processed before in case of early terminaton in previous runs. -
Constructor Summary
ConstructorDescriptionCmsConvertXmlSettings
(org.opencms.file.CmsObject cms) Bean constructor with cms object for path validation. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets if also files in sub folders shall become processed.boolean
Gets if only count files to transform.int
Gets resource type to transform.Returns the path under which files will be processed.Gets path to xsl file.void
setIncludeSubFolders
(boolean subFolders) Sets value if also process files in sub folders.void
setOnlyCountFiles
(boolean countFiles) Sets if only count files to transform.void
setResourceType
(int resourceType) Sets resource type to transform.void
setVfsFolder
(String vfsFolder) Sets vfs folder to process files in.void
setXslFile
(String xslFile) Sets path to xsl file.
-
Field Details
-
PROPERTY_CONTENTOOLS_TAGREPLACE
Property for the tag-replace contentool to know the files that have been processed before in case of early terminaton in previous runs.- See Also:
-
-
Constructor Details
-
CmsConvertXmlSettings
Bean constructor with cms object for path validation.- Parameters:
cms
- used to test the working path for valididty.
-
-
Method Details
-
getResourceType
Gets resource type to transform.- Returns:
- Resource type to transform.
-
getIncludeSubFolders
Gets if also files in sub folders shall become processed.- Returns:
- if also files in sub folders shall become processed.
-
getOnlyCountFiles
Gets if only count files to transform.- Returns:
- If only count files to transform.
-
getVfsFolder
Returns the path under which files will be processed.- Returns:
- the path under which files will be processed.
-
getXslFile
Gets path to xsl file.- Returns:
- Path to xsl file.
-
setResourceType
Sets resource type to transform.- Parameters:
resourceType
- File format to transform- Throws:
org.opencms.main.CmsIllegalArgumentException
- if the argument is not valid.
-
setIncludeSubFolders
public void setIncludeSubFolders(boolean subFolders) throws org.opencms.main.CmsIllegalArgumentException Sets value if also process files in sub folders.- Parameters:
subFolders
- True if process sub folders, too- Throws:
org.opencms.main.CmsIllegalArgumentException
- if the argument is not valid.
-
setOnlyCountFiles
public void setOnlyCountFiles(boolean countFiles) throws org.opencms.main.CmsIllegalArgumentException Sets if only count files to transform.- Parameters:
countFiles
- True, if only count files to transform- Throws:
org.opencms.main.CmsIllegalArgumentException
- if the argument is not valid.
-
setVfsFolder
Sets vfs folder to process files in.- Parameters:
vfsFolder
- The vfs folder to process files in- Throws:
org.opencms.main.CmsIllegalArgumentException
- if the argument is not valid.
-
setXslFile
Sets path to xsl file.- Parameters:
xslFile
- Path to xsl file- Throws:
org.opencms.main.CmsIllegalArgumentException
- if the argument is not valid.
-