public class LanguageDataType extends StringDataType
StringDataType.| Modifier and Type | Class and Description |
|---|---|
static class |
LanguageDataType.Getter |
StringDataType.PatternRestrictionComparableDataType.MaxRestriction, ComparableDataType.MinRestrictionBasicDataType.AbstractRestriction<D extends Serializable>, BasicDataType.DataTypeComparator<D>, BasicDataType.EnumerationRestriction, BasicDataType.RequiredRestriction, BasicDataType.RestrictedEnumerationIterator, BasicDataType.StaticAbstractRestriction<D extends Serializable>, BasicDataType.TypeRestriction, BasicDataType.UniqueRestrictionDataType.Restriction<D extends Serializable>| Modifier and Type | Field and Description |
|---|---|
protected boolean |
languageInSelf |
BOOLEAN_PATTERN, DOUBLE_PATTERN, INTEGER_PATTERN, LONG_PATTERN, maxLengthRestriction, minLengthRestriction, NON_NEGATIVE_INTEGER_PATTERN, patternRestrictionmaxRestriction, minRestrictionDATATYPE_BUNDLE, defaultValue, enumerationRestriction, origin, requiredRestriction, typeRestriction, uniqueRestrictiondescription, guiName, keyENFORCE_ABSOLUTE, ENFORCE_ALWAYS, ENFORCE_NEVER, ENFORCE_ONCHANGE, ENFORCE_ONCREATE, ENFORCE_ONVALIDATE, PROCESS_GET, PROCESS_SET, VALID, XMLNS| Constructor and Description |
|---|
LanguageDataType(String name) |
| Modifier and Type | Method and Description |
|---|---|
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. |
protected static Locale |
getLocale(Cloud cloud,
Field field) |
void |
setInSelf(boolean b)
If you set this to true, then the names of the languages are not presented in the current
locale, but in the language itself (if that is known by the JVM).
|
castForPattern, clone, cloneRestrictions, compare, getCollator, getComparator, getEnforceStrength, getLength, getMaxLength, getMaxLengthRestriction, getMinLength, getMinLengthRestriction, getPattern, getPatternRestriction, inheritProperties, inheritRestrictions, isPassword, main, setCollator, setMaxLength, setMinLength, setPassword, setPattern, toStringBuilder, toXml, validateCastValue, validateCastValueOrNullgetMaxRestriction, getMinRestriction, isMaxInclusive, isMinInclusive, setMax, setMinaddErrorDescription, addRestriction, addRestriction, addStyleClass, cast, cast, castAndValidate, castForSearch, castToPresent, castToValidate, checkType, clone, compareTo, edit, equals, finish, finish, getBaseType, getBaseTypeIdentifier, getCloud, getCloud, getCommitProcessor, getDefaultProcessor, getDefaultValue, getDeleteProcessor, getElement, getElement, getEnforceString, getEnumerationFactory, getEnumerationRestriction, getEnumerationValue, getHandler, getHandlers, getOrigin, getProcessor, getProcessor, getProcessorWithoutDefault, getRequiredRestriction, getRestrictions, getStyleClasses, getTypeAsClass, getUniqueRestriction, hashCode, inherit, isCorrectType, isFinished, isRequired, isUnique, preCast, preCast, preCast, rewrite, setCommitProcessor, setDefaultProcessor, setDefaultValue, setDeleteProcessor, setProcessor, setProcessor, setRequired, setUnique, setXml, toString, toXml, validate, validate, validateRequired, xmlValuegetDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUINamefinalize, getClass, notify, notifyAll, wait, wait, waitcast, castAndValidate, castForSearch, 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, validategetDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUINamecompareTopublic LanguageDataType(String name)
public void setInSelf(boolean b)
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)public String getDefaultValue(Locale locale, Cloud cloud, Field field)
BasicDataTypegetDefaultValue in interface DataType<String>getDefaultValue in class ComparableDataType<String>MMBase 1.9-SNAPSHOT - ${javadoctimestamp}