org.simantics.databoard.binding.impl
Class StringBindingDefault
java.lang.Object
org.simantics.databoard.binding.Binding
org.simantics.databoard.binding.StringBinding
org.simantics.databoard.binding.impl.StringBindingDefault
- All Implemented Interfaces:
- java.util.Comparator<java.lang.Object>
public class StringBindingDefault
- extends StringBinding
StringBindingDefault is a binding to java.lang.String class.
- Author:
- Toni Kalajainen
Method Summary |
java.lang.Object |
create(java.lang.String value)
|
java.lang.String |
getValue(java.lang.Object o)
|
boolean |
isImmutable()
Return true if the value is immutable. |
boolean |
isInstance(java.lang.Object obj)
|
void |
setValue(java.lang.Object o,
java.lang.String newValue)
|
Methods inherited from class org.simantics.databoard.binding.StringBinding |
accept, accept, assertInstaceIsValid, createUnchecked, deepCompare, deepHashValue, getComponentBinding, getComponentBinding, getComponentCount, readFrom, type |
Methods inherited from class org.simantics.databoard.binding.Binding |
assertInstaceIsValid, clone, cloneUnchecked, compare, createDefault, createDefaultUnchecked, createRandom, createRandomUnchecked, equals, hashValue, parseValue, parseValue, parseValueDefinition, printValue, printValueDefinition, serializer, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
StringBindingDefault
public StringBindingDefault(StringType type)
create
public java.lang.Object create(java.lang.String value)
- Specified by:
create
in class StringBinding
getValue
public java.lang.String getValue(java.lang.Object o)
throws BindingException
- Specified by:
getValue
in class StringBinding
- Throws:
BindingException
setValue
public void setValue(java.lang.Object o,
java.lang.String newValue)
throws BindingException
- Specified by:
setValue
in class StringBinding
- Throws:
BindingException
isInstance
public boolean isInstance(java.lang.Object obj)
- Specified by:
isInstance
in class StringBinding
isImmutable
public boolean isImmutable()
- Description copied from class:
Binding
- Return true if the value is immutable.
This question excludes the immutability of the component types.
- Overrides:
isImmutable
in class Binding
- Returns:
true
value if immutable