/** * @return the suggested program group */ public String getSuggestedProgramGroup() { return installData.getVariables().replace(suggestedProgramGroup); }
/** * Determines whether the installer expires. * * @return <tt>true</tt> if installer expires, otherwise <tt>false</tt> */ private boolean expires() { return installData.getInfo().getExpiresDate() != null; }
private void handleInstallPath(InstallData installData, String path) { // Allow for variable substitution of the installpath value path = installData.getVariables().replace(path); installData.setInstallPath(path); } }
/** * MUST always be called in constructor of JDKPathConsolePanel and JDKPathPanel * @param installData */ public static void initialize(InstallData installData) { minVersion = installData.getVariable("JDKPathPanel.minVersion"); maxVersion = installData.getVariable("JDKPathPanel.maxVersion"); installData.setVariable(JDK_VAR_NAME, JDK_PATH); }
/** * Returns the panel identifier. * * @return the panel identifier */ @Override public String getPanelId() { return panel.getPanelId(); }
/** * Returns the default install path. * * @return the default install path or null if none set yet * @see #setDefaultInstallPath */ @Override public String getDefaultInstallPath() { return getVariable(DEFAULT_INSTALL_PATH); }
/** * Returns the rules. * * @return the rules */ private RulesEngine getRules() { return installData.getRules(); }
/** * Determines if each pack is to be included in a separate jar. * * @return <tt>true</tt> if {@link Info#getWebDirURL()} is non-null */ protected boolean packSeparateJars() { return info != null && info.getWebDirURL() != null; }
/** * Sets the default install path. * * @param path the default install path * @see #getDefaultInstallPath */ @Override public void setDefaultInstallPath(String path) { setVariable(DEFAULT_INSTALL_PATH, path); }
/** * Refreshes dynamic variables. This is short hand for {@code getVariables().refresh()}. */ @Override public void refreshVariables() { variables.refresh(); }
/** * Determines if a pack file is blockable. * <p/> * Blockable files must be queued using {@link #queue()}. * * @param file the pack file * @return <tt>true</tt> if the file is blockable, otherwise <tt>false</tt> */ private boolean isBlockable(PackFile file) { return queue != null && (file.blockable() != Blockable.BLOCKABLE_NONE); }
/** * Set the pack group. * * @param group the group to associate the pack with. */ public void setGroup(String group) { pack.setGroup(group); }
/** * @param condition the condition to set */ public void setCondition(String condition) { this.pack.setCondition(condition); }
@Override public boolean containsOverride(String name) { return (overrides != null) && overrides.containsKey(name); }
/** * Replaces any variables in the supplied value. * * @param value the value * @return the value with variables replaced */ protected String replaceVariables(String value) { return installData.getVariables().replace(value); }
@Override public String getLocaleISO3() { return getVariable(ScriptParserConstant.ISO3_LANG); }
private boolean expired() { Date expiresDate = installData.getInfo().getExpiresDate(); return new Date().after(expiresDate); }
/** * Helper to replace variables in a string. * * @param value the string to perform variable replacement on. May be {@code null} * @return the string with any variables replaced with their values */ protected String replaceVariables(String value) { return getInstallData().getVariables().replace(value); }
/** * Returns the media path for multi-volume installation. * * @return the media path. May be <tt>null</tt> */ @Override public String getMediaPath() { return getVariable(MEDIA_PATH); }
@Override public String getLocaleISO2() { return getVariable(ScriptParserConstant.ISO2_LANG); }