Package org.opennms.core.utils
Class StringReplaceOperation
- java.lang.Object
-
- org.opennms.core.utils.StringReplaceOperation
-
- Direct Known Subclasses:
ReplaceAllOperation
,ReplaceFirstOperation
public abstract class StringReplaceOperation extends java.lang.Object
Abstract StringReplaceOperation class.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
m_pattern
protected java.lang.String
m_replacement
-
Constructor Summary
Constructors Constructor Description StringReplaceOperation(java.lang.String spec)
Constructor for StringReplaceOperation.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPattern()
getPatternjava.lang.String
getReplacement()
getReplacementabstract java.lang.String
replace(java.lang.String input)
replacejava.lang.String
toString()
toString
-
-
-
Method Detail
-
getPattern
public java.lang.String getPattern()
getPattern
- Returns:
- a
String
object.
-
getReplacement
public java.lang.String getReplacement()
getReplacement
- Returns:
- a
String
object.
-
toString
public java.lang.String toString()
toString
- Overrides:
toString
in classjava.lang.Object
- Returns:
- a
String
object.
-
replace
public abstract java.lang.String replace(java.lang.String input)
replace
- Parameters:
input
- aString
object.- Returns:
- a
String
object.
-
-