@Override public boolean isTrue() { return matcher.matchesCurrentPlatform(forOs); }
if (!matcher.matchesCurrentPlatform(parsable.getOsConstraints()))
for (Panel panel : installData.getPanelsOrder()) if (matcher.matchesCurrentPlatform(panel.getOsConstraints()))
if (matcher.matchesCurrentPlatform(osconstraints))
if (!matcher.matchesCurrentPlatform(efile.osList))
/** * Determines if a field is required if the field is required for the current platform and selected packs. * * @param field the field * @param installData the installation data * @param matcher the platform-model matcher * @return {@code true} if the field is required for the current platform and selected packs */ public static boolean isRequired(Field field, InstallData installData, PlatformModelMatcher matcher) { return isRequiredForPacks(field.getPacks(), installData.getSelectedPacks()) && matcher.matchesCurrentPlatform(field.getOsModels()); }
/** * Returns the search choices. * * @return the search choices */ public List<String> getChoices() { selected = -1; List<String> result = new ArrayList<String>(); Config config = getConfig(); IXMLElement spec = getSpec(); String set = config.getString(spec, "set", null); for (IXMLElement element : spec.getChildrenNamed("choice")) { List<OsModel> models = OsConstraintHelper.getOsList(element); if (matcher.matchesCurrentPlatform(models)) { String value = config.getString(element, "value", null); if( value.equals(set) ) { selected = result.size(); } result.add(value); } } return result; }
for (Pack pack : this.installData.getAllPacks()) if (matcher.matchesCurrentPlatform(pack.getOsConstraints()))
/** * Determines if a file should be unpacked. * * @param file the file to check * @return {@code true} if the file should be unpacked; {@code false} if it should be skipped */ private boolean shouldUnpack(PackFile file) { boolean result = true; if (file.hasCondition()) { result = isConditionTrue(file.getCondition()); } if (result && file.osConstraints() != null && !file.osConstraints().isEmpty()) { result = matcher.matchesCurrentPlatform(file.osConstraints()); } return result; }
for (Pack pack : this.automatedInstallData.getAllPacks()) if (matcher.matchesCurrentPlatform(pack.getOsConstraints()))
for (CustomData data : customData) if (matcher.matchesCurrentPlatform(data.osConstraints))
if (constraints.matchesCurrentPlatform(osConstraints))
if (matcher.matchesCurrentPlatform(constraints))
for (IXMLElement shortcutSpec : shortcutSpecs) if (!matcher.matchesCurrentPlatform(OsConstraintHelper.getOsList(shortcutSpec)))
if (matcher.matchesCurrentPlatform(pack.getOsConstraints()))