/** * Get the named ranges with the given name. * <i>Note:</i>Excel named ranges are case-insensitive and * this method performs a case-insensitive search. * * @param name named range name * @return list of XSSFNames with the given name. An empty list if no named ranges could be found */ @Override public List<XSSFName> getNames(String name) { return Collections.unmodifiableList(namedRangesByName.get(name.toLowerCase(Locale.ENGLISH))); }
XSSFName getBuiltInName(String builtInCode, int sheetNumber) { for (XSSFName name : namedRangesByName.get(builtInCode.toLowerCase(Locale.ENGLISH))) { if (name.getSheetIndex() == sheetNumber) { return name; } } return null; }
/** * Remove the first named range found with the given name. * * Note: names of named ranges are not unique (name + sheet * index is unique), so {@link #removeName(Name)} should * be used if possible. * * @param name the named range name to remove * * @throws IllegalArgumentException if no named range could be found * * @deprecated 3.16. New projects should use {@link #removeName(Name)}. */ @Override @Deprecated public void removeName(String name) { List<XSSFName> names = namedRangesByName.get(name.toLowerCase(Locale.ENGLISH)); if (names.isEmpty()) { throw new IllegalArgumentException("Named range was not found: " + name); } removeName(names.get(0)); }
public List<AnnotationFeature> getFeatures(String aLayerName) { return features.get(aLayerName); }
public List<AnnotationFeature> getFeatures(String aLayerName) { return features.get(aLayerName); }
/** * Get the named ranges with the given name. * <i>Note:</i>Excel named ranges are case-insensitive and * this method performs a case-insensitive search. * * @param name named range name * @return list of XSSFNames with the given name. An empty list if no named ranges could be found */ @Override public List<XSSFName> getNames(String name) { return Collections.unmodifiableList(namedRangesByName.get(name.toLowerCase(Locale.ENGLISH))); }
XSSFName getBuiltInName(String builtInCode, int sheetNumber) { for (XSSFName name : namedRangesByName.get(builtInCode.toLowerCase(Locale.ENGLISH))) { if (name.getSheetIndex() == sheetNumber) { return name; } } return null; }
@SuppressWarnings({ "unchecked", "rawtypes" }) public Collection<VArc> arcs(long aLayerId) { if (arcsByLayer.containsKey(aLayerId)) { return Collections.unmodifiableList((List) arcsByLayer.get(aLayerId)); } else { return Collections.emptyList(); } }
@SuppressWarnings({ "unchecked", "rawtypes" }) public Collection<VSpan> spans(long aLayerId) { if (spansByLayer.containsKey(aLayerId)) { return Collections.unmodifiableList((List) spansByLayer.get(aLayerId)); } else { return Collections.emptyList(); } }
@SuppressWarnings({ "unchecked", "rawtypes" }) public Collection<VArc> arcs(long aLayerId) { if (arcsByLayer.containsKey(aLayerId)) { return Collections.unmodifiableList((List) arcsByLayer.get(aLayerId)); } else { return Collections.emptyList(); } }
@SuppressWarnings({ "unchecked", "rawtypes" }) public Collection<VSpan> spans(long aLayerId) { if (spansByLayer.containsKey(aLayerId)) { return Collections.unmodifiableList((List) spansByLayer.get(aLayerId)); } else { return Collections.emptyList(); } }
/** * Remove the first named range found with the given name. * * Note: names of named ranges are not unique (name + sheet * index is unique), so {@link #removeName(Name)} should * be used if possible. * * @param name the named range name to remove * * @throws IllegalArgumentException if no named range could be found * * @deprecated 3.16. New projects should use {@link #removeName(Name)}. */ @Override @Deprecated public void removeName(String name) { List<XSSFName> names = namedRangesByName.get(name.toLowerCase(Locale.ENGLISH)); if (names.isEmpty()) { throw new IllegalArgumentException("Named range was not found: " + name); } removeName(names.get(0)); }
List<QName> names = expansions.get(unqualified); if (names.contains(new QName(unqualified))) { continue; // cannot expand unqualified if the expanded value is also unqualified