/** * Get the list of names defined for this section * * @param section * the section * @return the list of names defined for this section */ public Set<String> getNames(String section) { return getNames(section, null); }
/** * Get the list of names defined for this section * * @param section * the section * @return the list of names defined for this section */ public Set<String> getNames(String section) { return getNames(section, null); }
/** * @param section * the section * @return the list of names defined for this section */ public Set<String> getNames(String section) { return getNames(section, null); }
EnumSet<ObjectChecker.ErrorType> set = EnumSet .noneOf(ObjectChecker.ErrorType.class); for (String key : rc.getNames(FSCK)) { if (equalsIgnoreCase(key, "skipList") || equalsIgnoreCase(key, "allowLeadingZeroFileMode")
public Object[] getChildren(Object o) { if (children == null) { List<Entry> entries = new ArrayList<Entry>(); Set<String> entryNames = config.getNames(parent.name, name); for (String entryName : entryNames) { String[] values = config.getStringList(parent.name, name, entryName); if (values.length == 1) entries.add(new Entry(this, entryName, values[0], -1)); else { int index = 0; for (String value : values) entries.add(new Entry(this, entryName, value, index++)); } } children = entries.toArray(new Entry[entries.size()]); } return children; }
public Object[] getChildren(Object o) { if (children == null) { List<Object> allChildren = new ArrayList<Object>(); Set<String> subSectionNames = parent.config .getSubsections(name); for (String subSectionName : subSectionNames) allChildren.add(new SubSection(parent.config, this, subSectionName)); Set<String> entryNames = parent.config.getNames(name); for (String entryName : entryNames) { String[] values = parent.config.getStringList(name, null, entryName); if (values.length == 1) allChildren.add(new Entry(this, entryName, values[0], -1)); else { int index = 0; for (String value : values) allChildren.add(new Entry(this, entryName, value, index++)); } } children = allChildren.toArray(); } return children; }
EnumSet<ObjectChecker.ErrorType> set = EnumSet .noneOf(ObjectChecker.ErrorType.class); for (String key : rc.getNames(FSCK)) { if (equalsIgnoreCase(key, "skipList") //$NON-NLS-1$ || equalsIgnoreCase(key, "allowLeadingZeroFileMode") //$NON-NLS-1$
EnumSet<ObjectChecker.ErrorType> set = EnumSet .noneOf(ObjectChecker.ErrorType.class); for (String key : rc.getNames(FSCK)) { if (equalsIgnoreCase(key, "skipList") || equalsIgnoreCase(key, "allowLeadingZeroFileMode")