/** * @return true if users are to be redirected when a step error occurs */ public static boolean isErrorRedirect() { return !Util.empty(getErrorUrl()); }
/** * {@inheritDoc} */ @Override public int compare(final Object obj1, final Object obj2) { Comparable<?> comparable1 = getComparable(obj1); Comparable<?> comparable2 = getComparable(obj2); return Util.compareAllowNull(comparable1, comparable2); } }
/** * @return the project version of WComponents. */ public static String getProjectVersion() { String version = ConfigurationProperties.getProjectVersion(); if (version == null) { throw new SystemException("The project version parameter has not been defined."); } return version; }
/** * @return true if tracking is enabled for the application. */ public static boolean isTrackingEnabled() { return !Util.empty(getClientId()) && !Util.empty(getApplicationName()); }
/** * {@inheritDoc} */ public void refresh() { synchronized (lockObject) { // Now reset this object back to its initial state. initialiseInstanceVariables(); // Load all the parameters from scratch. load(); // Finally, notify all the listeners that have registered with this object that a change in properties has // occurred. Config.notifyListeners(); } }
/** * {@inheritDoc} */ @Override public Object getProperty(final String key) { return get(key); }
/** * Moves the machine to the next state, based on the input character. * * @param c the input character. * @return the state change. */ public StateChange nextState(final char c) { StateChange change = currentState.getChange(c); currentState = change.getNewState(); return change; }
/** * {@inheritDoc} */ @Override public short getShort(final String key) { return getShort(key, (short) 0); }
/** * {@inheritDoc} */ @Override public byte getByte(final String key) { return getByte(key, (byte) 0); }
/** * Prevent instantiation of UIManager. */ private UIManager() { // Listen for configuration changes Config.addPropertyChangeListener(this); }
/** * @return true if use caching */ protected boolean isCaching() { return ConfigurationProperties.getHandlebarsCache(); }
/** * {@inheritDoc} */ @Override public boolean isDescendant(final TreeNode otherNode) { return this.isAncestor(otherNode); }
/** * {@inheritDoc} */ @Override public TreeNode[] getPath() { return getPathToRoot(this, 0); }
/** * Loads the configuration from a set of files. * * @param subFiles the files to load from. */ private void load(final String[] subFiles) { for (int i = 0; i < subFiles.length; i++) { load(subFiles[i]); } }
/** * {@inheritDoc} */ @Override public String getString(final String key) { return get(key); }
/** * {@inheritDoc} */ @Override public String getString(final String key, final String defaultValue) { return get(key, defaultValue); }