Class DefaultTextEdit
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.DefaultTextEdit
-
-
Constructor Summary
Constructors Constructor Description DefaultTextEdit(int offset, java.lang.String oldValue, java.lang.String newValue)
Creates a newDefaultTextEdit
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLength()
Returns the length of the text to replace with the new value.java.lang.String
getNewValue()
Returns the new value that should replace the old value.int
getOffset()
Returns the location of the old value within the text.java.lang.String
getOldValue()
Returns the value that was found within the text that should be replaced by the new value.java.lang.String
toString()
-
-
-
Constructor Detail
-
DefaultTextEdit
public DefaultTextEdit(int offset, java.lang.String oldValue, java.lang.String newValue)
Creates a newDefaultTextEdit
.- Parameters:
offset
- The location of the old value within the textoldValue
- the value that was found within the text that should be replaced by the new valuenewValue
- The new value that should replace the old value
-
-
Method Detail
-
getLength
public int getLength()
Returns the length of the text to replace with the new value.
-
getNewValue
public java.lang.String getNewValue()
Returns the new value that should replace the old value.- Specified by:
getNewValue
in interfaceTextEdit
- Returns:
- The value to replace the old value
-
getOffset
public int getOffset()
Returns the location of the old value within the text.
-
getOldValue
public java.lang.String getOldValue()
Returns the value that was found within the text that should be replaced by the new value.- Specified by:
getOldValue
in interfaceTextEdit
- Returns:
- The value to replace
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-