APISonar


org.apache.isis.config.IsisConfiguration.Value.FormatIdentifier.DATE

> org > apache > isis > config > IsisConfiguration > Value > FormatIdentifier > DATE
org APIs apache APIs isis APIs config APIs IsisConfiguration APIs Value APIs FormatIdentifier APIs DATE APIs

Example 1
public Jdk8LocalDateValueSemanticsProvider(final FacetHolder holder) {
        super(type(), holder, LocalDate.class, TYPICAL_LENGTH, MAX_LENGTH, Immutability.IMMUTABLE, EqualByContent.HONOURED, DEFAULT_VALUE);

        String configuredNameOrPattern = getConfiguration()
                .getValue().getFormatOrElse(FormatIdentifier.DATE, "medium");
        updateTitleStringFormatter(configuredNameOrPattern);
    }
Example 2
public JodaDateTimeValueSemanticsProviderAbstract(final FacetHolder holder, final Class<T> adaptedClass, final T defaultValue) {
        super(FormatIdentifier.DATE, holder, adaptedClass, 12, Immutability.IMMUTABLE, EqualByContent.HONOURED, defaultValue);

        String formatRequired = getConfiguration()
                .getValue().getFormatOrElse(FormatIdentifier.DATE, null);
        
        if (formatRequired == null) {
            format = formats().get(defaultFormat());
        } else {
            setMask(formatRequired); //TODO fails when using format names eg 'medium'
        }
    }