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 intgetLength()Returns the length of the text to replace with the new value.java.lang.StringgetNewValue()Returns the new value that should replace the old value.intgetOffset()Returns the location of the old value within the text.java.lang.StringgetOldValue()Returns the value that was found within the text that should be replaced by the new value.java.lang.StringtoString()
-
-
-
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:
getNewValuein 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:
getOldValuein interfaceTextEdit- Returns:
- The value to replace
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-