org.opencms.workplace.tools.content
public final class CmsTagReplaceSettings extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
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.
|
| Constructor and Description |
|---|
CmsTagReplaceSettings(org.opencms.file.CmsObject cms)
Bean constructor with cms object for path validation.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Set |
getDeleteTags()
Returns the Set<
Tag> to delete from transformed output. |
java.lang.String |
getPropertyValueTagReplaceID()
Returns the value of the shared
PROPERTY_CONTENTOOLS_TAGREPLACE to set on resources
that have been processed with these settings. |
java.util.SortedMap |
getReplacements()
Returns the replacements to perform in form of a comma-separated List of "key=value" tokens.
|
java.lang.String |
getWorkPath()
Returns the path under which files will be processed recursively.
|
protected boolean |
replace(org.htmlparser.Tag tag)
Transforms the given Tag into the one it has to become by changing it's name and/or
attributes.
|
void |
setPropertyValueTagReplaceID(java.lang.String propertyValueTagreplaceID)
Sets the value of the shared
PROPERTY_CONTENTOOLS_TAGREPLACE to set on resources
that have been processed with these settings. |
void |
setReplacements(java.util.SortedMap replacements)
Sets the replacements to perform in form of a comma-separated List of "key=value" tokens.
|
void |
setWorkPath(java.lang.String workPath)
Sets the path under which files will be processed recursively.
|
public static final java.lang.String PROPERTY_CONTENTOOLS_TAGREPLACE
public CmsTagReplaceSettings(org.opencms.file.CmsObject cms)
cms - used to test the working path for valididty.public java.lang.String getPropertyValueTagReplaceID()
PROPERTY_CONTENTOOLS_TAGREPLACE to set on resources
that have been processed with these settings.
PROPERTY_CONTENTOOLS_TAGREPLACE to set on resources
that have been processed with these settings.public java.util.SortedMap getReplacements()
public java.lang.String getWorkPath()
public void setPropertyValueTagReplaceID(java.lang.String propertyValueTagreplaceID)
throws org.opencms.main.CmsIllegalArgumentException
PROPERTY_CONTENTOOLS_TAGREPLACE to set on resources
that have been processed with these settings.
propertyValueTagreplaceID - the value of the shared
PROPERTY_CONTENTOOLS_TAGREPLACE to set on resources that have been
processed with these settings.org.opencms.main.CmsIllegalArgumentException - if the argument is not valid.public void setReplacements(java.util.SortedMap replacements)
throws org.opencms.main.CmsIllegalArgumentException
replacements - the replacements to perform in form of a comma-separated List of
"key=value" tokens.org.opencms.main.CmsIllegalArgumentException - if the argument is not valid.public void setWorkPath(java.lang.String workPath)
throws org.opencms.main.CmsIllegalArgumentException
workPath - the path under which files will be processed recursively.org.opencms.main.CmsIllegalArgumentException - if the argument is not valid.protected java.util.Set getDeleteTags()
Tag> to delete from transformed output.
Tag> to delete from transformed output.protected boolean replace(org.htmlparser.Tag tag)
tag - the tag to be transformed.