|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.core.AbstractDescriptor
org.mmbase.datatypes.BasicDataType<E>
org.mmbase.datatypes.ComparableDataType<String>
org.mmbase.datatypes.StringDataType
org.mmbase.datatypes.ComponentNamesDataType
public class ComponentNamesDataType
A StringDataType with the names of all installed components.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.mmbase.datatypes.StringDataType |
|---|
StringDataType.PatternRestriction |
| Nested classes/interfaces inherited from class org.mmbase.datatypes.ComparableDataType |
|---|
ComparableDataType.MaxRestriction, ComparableDataType.MinRestriction |
| Nested classes/interfaces inherited from class org.mmbase.datatypes.BasicDataType |
|---|
BasicDataType.AbstractRestriction<D extends Serializable>, BasicDataType.DataTypeComparator<D>, BasicDataType.EnumerationRestriction, BasicDataType.RequiredRestriction, BasicDataType.RestrictedEnumerationIterator, BasicDataType.StaticAbstractRestriction<D extends Serializable>, BasicDataType.TypeRestriction, BasicDataType.UniqueRestriction |
| Nested classes/interfaces inherited from interface org.mmbase.datatypes.DataType |
|---|
DataType.Restriction<D extends Serializable> |
| Field Summary |
|---|
| Fields inherited from class org.mmbase.datatypes.StringDataType |
|---|
BOOLEAN_PATTERN, DOUBLE_PATTERN, INTEGER_PATTERN, LONG_PATTERN, maxLengthRestriction, minLengthRestriction, NON_NEGATIVE_INTEGER_PATTERN, patternRestriction |
| Fields inherited from class org.mmbase.datatypes.ComparableDataType |
|---|
maxRestriction, minRestriction |
| Fields inherited from class org.mmbase.datatypes.BasicDataType |
|---|
DATATYPE_BUNDLE, defaultValue, enumerationRestriction, origin, requiredRestriction, typeRestriction, uniqueRestriction |
| Fields inherited from class org.mmbase.core.AbstractDescriptor |
|---|
description, guiName, key |
| Fields inherited from interface org.mmbase.datatypes.DataType |
|---|
ENFORCE_ABSOLUTE, ENFORCE_ALWAYS, ENFORCE_NEVER, ENFORCE_ONCHANGE, ENFORCE_ONCREATE, ENFORCE_ONVALIDATE, PROCESS_GET, PROCESS_SET, VALID, XMLNS |
| Constructor Summary | |
|---|---|
ComponentNamesDataType(String name)
Constructor for string data type. |
|
| Method Summary | |
|---|---|
String |
getDefaultValue(Locale locale,
Cloud cloud,
Field field)
Returns the (locale dependent) default value of this data type, |
Iterator<Map.Entry<String,String>> |
getEnumerationValues(Locale locale,
Cloud cloud,
Node node,
Field field)
Returns an iterator over all possible values for this datatype, as Map.Entrys, or
null if no enumeration restrictions apply. |
| Methods inherited from class org.mmbase.datatypes.StringDataType |
|---|
castForPattern, clone, cloneRestrictions, compare, first, getCollator, getComparator, getEnforceStrength, getLength, getMaxLength, getMaxLengthRestriction, getMinLength, getMinLengthRestriction, getPattern, getPatternRestriction, inheritProperties, inheritRestrictions, isPassword, main, setCollator, setMaxLength, setMinLength, setPassword, setPattern, toStringBuilder, toXml, validateCastValue, validateCastValueOrNull |
| Methods inherited from class org.mmbase.datatypes.ComparableDataType |
|---|
getMaxRestriction, getMinRestriction, isMaxInclusive, isMinInclusive, setMax, setMin |
| Methods inherited from class org.mmbase.core.AbstractDescriptor |
|---|
getDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mmbase.datatypes.DataType |
|---|
cast, castAndValidate, castForSearch, castOrException, checkType, clone, finish, getBaseType, getBaseTypeIdentifier, getCommitProcessor, getDefaultValue, getDeleteProcessor, getEnumerationFactory, getEnumerationRestriction, getEnumerationValue, getHandler, getHandlers, getOrigin, getProcessor, getProcessor, getRequiredRestriction, getStyleClasses, getTypeAsClass, getUniqueRestriction, isFinished, isRequired, isUnique, preCast, rewrite, setCommitProcessor, setDefaultValue, setProcessor, setProcessor, setRequired, setUnique, toXml, validate, validate |
| Methods inherited from interface org.mmbase.bridge.Descriptor |
|---|
getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public ComponentNamesDataType(String name)
name - the name of the data type| Method Detail |
|---|
public String getDefaultValue(Locale locale,
Cloud cloud,
Field field)
BasicDataType
getDefaultValue in interface DataType<String>getDefaultValue in class ComparableDataType<String>
public Iterator<Map.Entry<String,String>> getEnumerationValues(Locale locale,
Cloud cloud,
Node node,
Field field)
BasicDataTypeMap.Entrys, or
null if no enumeration restrictions apply. Every Map entry contains as key the
'value' for this datatype and as value it contains the description for this value in the
given locale.
This Iterator skips all entries which are impossible because of other restrictions on this datatype.
getEnumerationValues in interface DataType<String>getEnumerationValues in class BasicDataType<String>locale - for which to producecloud - Possibly the possible values depend on a cloud (security)node - Possibly the possible values depend on an actual node (this may be, and in the default implementation is, ignored)field - Possibly the possible values depend on an actual field (this may be, and in the default implementation is, ignored)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||