Package org.opencms.gwt.shared.alias
Class CmsRewriteAliasTableRow
- java.lang.Object
-
- org.opencms.gwt.shared.alias.CmsRewriteAliasTableRow
-
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsRewriteAliasTableRow extends java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
A class containing the data for a row of the rewrite alias table.
-
-
Constructor Summary
Constructors Constructor Description CmsRewriteAliasTableRow()
Default constructor, used for serialization.CmsRewriteAliasTableRow(CmsUUID id, java.lang.String patternString, java.lang.String replacementString, CmsAliasMode mode)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getError()
Gets the error message for this row.CmsUUID
getId()
Gets the id of the alias.CmsAliasMode
getMode()
Gets the alias mode for this row.java.lang.String
getPatternString()
Gets the regular expression string.java.lang.String
getReplacementString()
Gets the string used to replace the string matching the regex.void
setError(java.lang.String error)
Sets the error message for this row.void
setId(CmsUUID id)
Sets the id of this row.void
setMode(CmsAliasMode mode)
Sets the mode of this row.void
setPatternString(java.lang.String patternString)
Sets the pattern of this row.void
setReplacementString(java.lang.String replacementString)
Sets the replacement string for this row.
-
-
-
Constructor Detail
-
CmsRewriteAliasTableRow
public CmsRewriteAliasTableRow()
Default constructor, used for serialization.
-
CmsRewriteAliasTableRow
public CmsRewriteAliasTableRow(CmsUUID id, java.lang.String patternString, java.lang.String replacementString, CmsAliasMode mode)
Creates a new instance.- Parameters:
id
- the id of the aliaspatternString
- the regular expression used for matching the URIreplacementString
- the replacement string used when the URI is matchedmode
- the alias mode for this row
-
-
Method Detail
-
getError
public java.lang.String getError()
Gets the error message for this row.- Returns:
- the error message for this row
-
getMode
public CmsAliasMode getMode()
Gets the alias mode for this row.- Returns:
- the alias mode for this row
-
getPatternString
public java.lang.String getPatternString()
Gets the regular expression string.- Returns:
- the regular expression string
-
getReplacementString
public java.lang.String getReplacementString()
Gets the string used to replace the string matching the regex.- Returns:
- the replacement string
-
setError
public void setError(java.lang.String error)
Sets the error message for this row.- Parameters:
error
- the new error message
-
setMode
public void setMode(CmsAliasMode mode)
Sets the mode of this row.- Parameters:
mode
- the new mode
-
setPatternString
public void setPatternString(java.lang.String patternString)
Sets the pattern of this row.- Parameters:
patternString
- the new pattern
-
setReplacementString
public void setReplacementString(java.lang.String replacementString)
Sets the replacement string for this row.- Parameters:
replacementString
- the new replacement string
-
-