Package net.laubenberger.bogatyr.misc.exception

Examples of net.laubenberger.bogatyr.misc.exception.RuntimeExceptionIsNull


  @Override
  public void addValue(final String key, final String value) {
    if (log.isDebugEnabled()) log.debug(HelperLog.methodStart(key, value));
    if (null == key) {
      throw new RuntimeExceptionIsNull("key"); //$NON-NLS-1$
    }

    if (null == data) {
      data = new HashMap<String, String>();
    }
View Full Code Here


  @Override
  public void removeValue(final String key) {
    if (log.isDebugEnabled()) log.debug(HelperLog.methodStart(key));
    if (null == key) {
      throw new RuntimeExceptionIsNull("key"); //$NON-NLS-1$
    }

    if (null != data) {
      data.remove(key);
      setChanged();
View Full Code Here

  @Override
  public String getString(final String key) {
    if (log.isDebugEnabled()) log.debug(HelperLog.methodStart(key));
    if (null == key) {
      throw new RuntimeExceptionIsNull("key"); //$NON-NLS-1$
    }

    String result = null;
    if (null != data) {
      result = data.get(key);
View Full Code Here

  @Override
  public void addValue(final String key, final Object value) {
    if (log.isDebugEnabled()) log.debug(HelperLog.methodStart(key, value));
    if (null == key) {
      throw new RuntimeExceptionIsNull("key"); //$NON-NLS-1$
    }
    if (null == value) {
      throw new RuntimeExceptionIsNull("value"); //$NON-NLS-1$
    }

    try {
      addValue(key, HelperXml.serialize(value));
    } catch (Exception ex) {
View Full Code Here

  @Override
  public <T> T getValue(final String key, final Class<T> clazz) {
    if (log.isDebugEnabled()) log.debug(HelperLog.methodStart(key, clazz));
    if (null == clazz) {
      throw new RuntimeExceptionIsNull("clazz"); //$NON-NLS-1$
    }

    T result = null;
    final String value = getString(key);
View Full Code Here

  @Override
  public ImageIcon getScaledIcon(final ScalableIcon icon) {
    if (log.isDebugEnabled()) log.debug(HelperLog.methodStart(icon));
    if (null == icon) {
      throw new RuntimeExceptionIsNull("icon"); //$NON-NLS-1$
    }

    ImageIcon result = null;

    if (0 != data.getIconSize().width) {
View Full Code Here

  }

  public void addWorker(final Worker worker, final String title, final String text, final ScalableIcon icon) {
    if (log.isDebugEnabled()) log.debug(HelperLog.methodStart(worker, title, text, icon));
    if (null == worker) {
      throw new RuntimeExceptionIsNull("worker"); //$NON-NLS-1$
    }

    workers.put(worker, new TaskImpl(worker, title, text, icon));

    createLayout();
View Full Code Here

  }

  public void removeWorker(final Worker worker) {
    if (log.isDebugEnabled()) log.debug(HelperLog.methodStart(worker));
    if (null == worker) {
      throw new RuntimeExceptionIsNull("worker"); //$NON-NLS-1$
    }

    workers.remove(worker);

    createLayout();
View Full Code Here

TOP

Related Classes of net.laubenberger.bogatyr.misc.exception.RuntimeExceptionIsNull

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.