GetDefaultValue Method.
359950
public String getDefaultValue(String strKey)
    {
        if (DESCRIPTIONS == null)
            DESCRIPTIONS = Utility.arrayToMap(DEFAULTS);
        return (String)DESCRIPTIONS.get(strKey);
    }
271146
@SuppressWarnings("unchecked")
	public T getDefaultObject() {
		if(defaultValue instanceof IModel) {
			return ((IModel<T>)defaultValue).getObject();
		} else {
			return (T) defaultValue;
		}
	}
79109
public String printDefaultValue() {
        if (setter instanceof Getter) {
            Getter getter = (Getter)setter;
            List<T> defaultValues = getter.getValueList();
            if (defaultValues != null && !defaultValues.isEmpty()) {
                StringBuilder buf = new StringBuilder();
                if (defaultValues.size()>1) {
                    for (T v : defaultValues) {
                        buf.append( buf.length()==0 ? '[' : ',' );
                        buf.append(print(v));
                    }
                    buf.append(']');
                } else {
                    buf.append(print(defaultValues.get(0)));
                }
                return buf.toString();
            }
        }
        return null;
    }
359759
public String printDefaultValue() {
        if (setter instanceof Getter) {
            Getter getter = (Getter)setter;
            List<T> defaultValues = getter.getValueList();

            StringBuilder buf = new StringBuilder();
            for (T v : defaultValues) {
                if (buf.length()>0)     buf.append(delimiter);
                buf.append(print(v));
            }
            return buf.toString();
        }
        return null;
    }
1101373
def GetDefault(self, container=None):
    """"""
    return rdfvalue.RDFBool(
        super(ProtoBoolean, self).GetDefault(container=container))
1063379
function $$getDefaultValue() {
      if (!injector) throw new Error("Injectable functions cannot be called at configuration time");
      var defaultValue = injector.invoke(config.$$fn);
      if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))
        throw new Error("Default value (" + defaultValue + ") for parameter '" + self.id + "' is not an instance of Type (" + self.type.name + ")");
      return defaultValue;
    }
748879
public final OptionElement getDefault() {
    OptionElement defaultOption = OptionElement.findByName(options(), "default");
    return defaultOption != null ? defaultOption : null;
  }
1243273
public static void getDefaultValues(Properties defaultValues) {
        defaultValues.put(BOOT_AGENT, ""); //$NON-NLS-1$
        defaultValues.put(BOOT_AGENT_ID, ""); //$NON-NLS-1$
        defaultValues.put(BOOT_DEFAULT_CONTEXT_ID_NAME, BOOT_DEFAULT_CONTEXT_ID_VALUE.toString());
        defaultValues.put(DEFAULT_CONTEXT_ID_NAME, DEFAULT_CONTEXT_ID_VALUE);
        defaultValues.put(DEFAULT_SPACE_ID_NAME, DEFAULT_SPACE_ID_VALUE);
        defaultValues.put(OFFLINE, Boolean.FALSE.toString());
        defaultValues.put(PUB_URI, ""); //$NON-NLS-1$
        defaultValues.put(RANDOM_DEFAULT_CONTEXT_ID_NAME, RANDOM_DEFAULT_CONTEXT_ID_VALUE.toString());
        defaultValues.put(VERBOSE_LEVEL_NAME, VERBOSE_LEVEL_VALUE);
        defaultValues.put(HAZELCAST_LOGGER_FACTORY_NAME, HAZELCAST_LOGGER_FACTORY_VALUE);
        defaultValues.put(MIN_NUMBER_OF_THREADS_IN_EXECUTOR_NAME, Integer.toString(MIN_NUMBER_OF_THREADS_IN_EXECUTOR_VALUE));
        defaultValues.put(MAX_NUMBER_OF_THREADS_IN_EXECUTOR_NAME, Integer.toString(MAX_NUMBER_OF_THREADS_IN_EXECUTOR_VALUE));
        defaultValues.put(KERNEL_THREAD_TIMEOUT_NAME, Integer.toString(KERNEL_THREAD_TIMEOUT_VALUE));
        defaultValues.put(KERNEL_THREAD_PURGE_DELAY_NAME, Integer.toString(KERNEL_THREAD_PURGE_DELAY_VALUE));
        defaultValues.put(INJECTION_MODULE_NAME, INJECTION_MODULE_NAME_VALUE);
        defaultValues.put(JANUS_LOGO_SHOW_NAME, JANUS_LOGO_SHOW.toString());
        defaultValues.put(JANUS_PROGRAM_NAME, JANUS_PROGRAM_NAME_VALUE);
    }
513338
public function getDefaultValue()
    {
        if ($this->hasOption(self::OPTION_DEFAULT_VALUE)) {
            return $this->getSanitizedValue(
                $this->getOption(self::OPTION_DEFAULT_VALUE, $this->getNullValue())
            );
        }

        return $this->getNullValue();
    }
694828
public function getValue()
    {
        $value = parent::getValue();
        return $value === null || $value === [] ? $this->getDefaultValue() : $value;
    }
1279037
public Object getDefault()
    {
        Object objDefault = super.getDefault();
        if (objDefault == null)
            objDefault = FINISH_START;
        return objDefault;
    }
122297
def default(self) -> Optional[ScalarValue]:
        """"""
        if self.mandatory:
            return None
        if self._default is not None:
            return self._default
        return (None if self.type.default is None
                else ArrayValue([self.type.default]))
958027
public String getDefault(final String key) {
        if (defaultValues.containsKey(key)) {
            return defaultValues.get(key);
        }
        return "";
    }
444205
final String getColumnDefaultValue(int index) {
        if (m_extraMetadata != null) {
            return m_extraMetadata.originalColumnInfos[index].defaultValue;
        }
        return null;
    }
816178
boolean valuesAreTheSameAsDefault()
    {
        if (getDefaultValues() == null || getDefaultValues().size() == 0)
            return false;
        if (getValues() == null || getValues().size() == 0)
            return false;
        if (getDefaultValues().size() != getValues().size())
            return false;
        for (int v = 0; v < getDefaultValues().size(); v++)
            if (!getDefaultValues().get(v).equals(getValues().get(v)))
                return false;
        return true;
    }
831519
<T> T getDefault(String mpConfigPropName, T defaultValue) {
        MPConfigAccessor accessor = cmProvider.mpConfigAccessor;
        if (accessor != null) {
            Object mpConfig = mpConfigRef.get();
            if (mpConfig == Boolean.FALSE) // not initialized yet
                if (!mpConfigRef.compareAndSet(Boolean.FALSE, mpConfig = accessor.getConfig()))
                    mpConfig = mpConfigRef.get();

            if (mpConfig != null)
                defaultValue = accessor.get(mpConfig, mpConfigPropName, defaultValue);
        }
        return defaultValue;
    }
220238
public Object getFieldDefaultValue(TypeElement type, String name) {
		return this.defaultValues.computeIfAbsent(type, this::resolveFieldValues)
				.get(name);
	}