org.mmbase.datatypes
Class BasicDataType.EnumerationRestriction

java.lang.Object
  extended by org.mmbase.datatypes.BasicDataType.StaticAbstractRestriction<D>
      extended by org.mmbase.datatypes.BasicDataType.AbstractRestriction<LocalizedEntryListFactory<C>>
          extended by org.mmbase.datatypes.BasicDataType.EnumerationRestriction
All Implemented Interfaces:
Serializable, DataType.Restriction<LocalizedEntryListFactory<C>>
Enclosing class:
BasicDataType<C>

protected class BasicDataType.EnumerationRestriction
extends BasicDataType.AbstractRestriction<LocalizedEntryListFactory<C>>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mmbase.datatypes.BasicDataType.StaticAbstractRestriction
absoluteParent, enforceStrength, errorDescription, fixed, name, parent, value
 
Constructor Summary
BasicDataType.EnumerationRestriction(BasicDataType.EnumerationRestriction source)
           
BasicDataType.EnumerationRestriction(LocalizedEntryListFactory<C> entries)
           
 
Method Summary
 Collection<Map.Entry<C,String>> getEnumeration(Locale locale, Cloud cloud, Node node, Field field)
           
(package private)  LocalizedEntryListFactory<C> getEnumerationFactory()
           
protected
<D> D
preCast(D v, Cloud cloud)
           
protected  boolean simpleValid(Object v, Node node, Field field)
           
protected  String valueString(Node node, Field field)
          If value of a a restriction depends on node, field, then you can override this
 
Methods inherited from class org.mmbase.datatypes.BasicDataType.StaticAbstractRestriction
addError, enforce, getEnforceStrength, getErrorDescription, getErrorDescriptionBundle, getName, getValue, inherit, inherit, isFixed, setEnforceStrength, setErrorDescription, setFixed, setValue, toString, toString, valid, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicDataType.EnumerationRestriction

BasicDataType.EnumerationRestriction(BasicDataType.EnumerationRestriction source)

BasicDataType.EnumerationRestriction

BasicDataType.EnumerationRestriction(LocalizedEntryListFactory<C> entries)
Method Detail

getEnumerationFactory

final LocalizedEntryListFactory<C> getEnumerationFactory()

getEnumeration

public Collection<Map.Entry<C,String>> getEnumeration(Locale locale,
                                                      Cloud cloud,
                                                      Node node,
                                                      Field field)

preCast

protected <D> D preCast(D v,
                        Cloud cloud)
See Also:
BasicDataType.preCast(D, org.mmbase.bridge.Node, org.mmbase.bridge.Field)

simpleValid

protected boolean simpleValid(Object v,
                              Node node,
                              Field field)
Specified by:
simpleValid in class BasicDataType.StaticAbstractRestriction<LocalizedEntryListFactory<C>>

valueString

protected String valueString(Node node,
                             Field field)
Description copied from class: BasicDataType.StaticAbstractRestriction
If value of a a restriction depends on node, field, then you can override this

Overrides:
valueString in class BasicDataType.StaticAbstractRestriction<LocalizedEntryListFactory<C>>


MMBase 2.0-SNAPSHOT - null