org.simantics.databoard.binding.java
Class StringBindingDefault

java.lang.Object
  extended by org.simantics.databoard.binding.Binding
      extended by org.simantics.databoard.binding.StringBinding
          extended by org.simantics.databoard.binding.java.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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.simantics.databoard.binding.Binding
Binding.Visitor<T>, Binding.Visitor1
 
Field Summary
static StringBindingDefault INSTANCE
          Deprecated. 
 
Constructor Summary
StringBindingDefault(StringType type)
           
 
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, type
 
Methods inherited from class org.simantics.databoard.binding.Binding
assertInstaceIsValid, clone, cloneUnchecked, compare, createDefault, createDefaultUnchecked, createRandom, createRandomUnchecked, equals, hashValue, main, parseValue, parseValue, parseValueDefinition, printValue, printValueDefinition, serializer, serializer, serializerUnchecked, 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
 

Field Detail

INSTANCE

@Deprecated
public static StringBindingDefault INSTANCE
Deprecated. 
Constructor Detail

StringBindingDefault

public StringBindingDefault(StringType type)
Method Detail

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