StateObject simply holds onto a string.
| Modifier and Type | Field and Description |
|---|---|
| private String | text
The text held by this state object. |
| public static final String | TEXT_PROPERTY
Notifies the text property has changed. |
| Access | Constructor and Description |
|---|---|
| protected | SimpleStateObject(StateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| protected | SimpleStateObject(StateObject
The parent of this state object, which cannot be parent, String nullThe text held by this state object text)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public boolean | Returns: true if the text is non-empty; false otherwiseDetermines whether this state object is holding a non-empty string. |
| public boolean | isEquivalent(StateObject
The stateObject)StateObject to compare its content to this oneOverrides org. Implements org. StateObject is equivalent to this one, i.e. the
information of both StateObject is the same.
|
| public void | |
| protected void | setTextInternally(String
This model's text value text)Sets the text to the given value without notifying the listeners. |
| protected void | toTextInternal(Appendable
The writer used to print out the string representation writer)Implements abstract org. StateObject, which should not be used to
define a true string representation of a JPQL query but should be used for
debugging purposes.
|
| text | back to summary |
|---|---|
| private String text The text held by this state object. | |
| TEXT_PROPERTY | back to summary |
|---|---|
| public static final String TEXT_PROPERTY Notifies the text property has changed. | |
| SimpleStateObject | back to summary |
|---|---|
| protected SimpleStateObject(StateObject parent) Creates a new
| |
| SimpleStateObject | back to summary |
|---|---|
| protected SimpleStateObject(StateObject parent, String text) Creates a new
| |
| getText | back to summary |
|---|---|
| public String getText() Returns the text held by this state object.
| |
| hasText | back to summary |
|---|---|
| public boolean hasText() Determines whether this state object is holding a non-empty string.
| |
| isEquivalent | back to summary |
|---|---|
| public boolean isEquivalent(StateObject stateObject) Overrides org. Implements org. Doc from org. Determines whether the given
| |
| setText | back to summary |
|---|---|
| public void setText(String text) Sets the text held by this state object.
| |
| setTextInternally | back to summary |
|---|---|
| protected void setTextInternally(String text) Sets the text to the given value without notifying the listeners.
| |
| toTextInternal | back to summary |
|---|---|
| protected void toTextInternal(Appendable writer) throws IOException Implements abstract org. Doc from org. Prints out a string representation of this
| |