public abstract class SimpleStateObject extends AbstractStateObject
StateObject
simply holds onto a string.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TEXT_PROPERTY
Notifies the text property has changed.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getText()
Returns the text held by this state object.
|
boolean |
hasText()
Determines whether this state object is holding a non-empty string.
|
boolean |
isEquivalent(StateObject stateObject)
Determines whether the given
StateObject is equivalent to this one, i.e. |
void |
setText(java.lang.String text)
Sets the text held by this state object.
|
addPropertyChangeListener, children, decorate, equals, findIdentificationVariable, getDeclaration, getDecorator, getExpression, getGrammar, getManagedTypeProvider, getParent, getQueryBuilder, getRoot, getType, getType, getTypeHelper, getTypeRepository, hashCode, isDecorated, removePropertyChangeListener, setExpression, setParent, toString, toString, toText
accept
public static final java.lang.String TEXT_PROPERTY
public java.lang.String getText()
public boolean hasText()
true
if the text is non-empty; false
otherwisepublic boolean isEquivalent(StateObject stateObject)
StateObject
is equivalent to this one, i.e. the
information of both StateObject
is the same.isEquivalent
in interface StateObject
isEquivalent
in class AbstractStateObject
stateObject
- The StateObject
to compare its content to this onetrue
if both object are equivalent; false
otherwisepublic void setText(java.lang.String text)
text
- This model's text valueEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference