org.nakedobjects.applib.adapters
Class AbstractValueSemanticsProvider<T>

java.lang.Object
  extended by org.nakedobjects.applib.adapters.AbstractValueSemanticsProvider<T>
All Implemented Interfaces:
ValueSemanticsProvider<T>

public abstract class AbstractValueSemanticsProvider<T>
extends java.lang.Object
implements ValueSemanticsProvider<T>


Constructor Summary
AbstractValueSemanticsProvider()
          Defaults isImmutable() to true and isEqualByContent() to true also.
AbstractValueSemanticsProvider(boolean immutable, boolean equalByContent)
           
 
Method Summary
 DefaultsProvider<T> getDefaultsProvider()
          The DefaultsProvider, if any.
 EncoderDecoder<T> getEncoderDecoder()
          The EncoderDecoder, if any.
 Parser<T> getParser()
          The Parser, if any.
 boolean isEqualByContent()
          Defaults to true if no-arg constructor is used.
 boolean isImmutable()
          Defaults to true if no-arg constructor is used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractValueSemanticsProvider

public AbstractValueSemanticsProvider()
Defaults isImmutable() to true and isEqualByContent() to true also.


AbstractValueSemanticsProvider

public AbstractValueSemanticsProvider(boolean immutable,
                                      boolean equalByContent)
Method Detail

getEncoderDecoder

public EncoderDecoder<T> getEncoderDecoder()
Description copied from interface: ValueSemanticsProvider
The EncoderDecoder, if any.

If not null, implies that the value is Encodable.

Specified by:
getEncoderDecoder in interface ValueSemanticsProvider<T>

getParser

public Parser<T> getParser()
Description copied from interface: ValueSemanticsProvider
The Parser, if any.

If not null, implies that the value is Parseable.

Specified by:
getParser in interface ValueSemanticsProvider<T>

getDefaultsProvider

public DefaultsProvider<T> getDefaultsProvider()
Description copied from interface: ValueSemanticsProvider
The DefaultsProvider, if any.

If not null, implies that the value has (or may have) a default.

Specified by:
getDefaultsProvider in interface ValueSemanticsProvider<T>

isEqualByContent

public boolean isEqualByContent()
Defaults to true if no-arg constructor is used.

Specified by:
isEqualByContent in interface ValueSemanticsProvider<T>

isImmutable

public boolean isImmutable()
Defaults to true if no-arg constructor is used.

Specified by:
isImmutable in interface ValueSemanticsProvider<T>


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.