@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
/** * Returns <code>true</code> if this cache currently contains a key/icon mapping where the given key is used as * the mapping's key. * * @param key key to lookup * @return <code>true</code> if this cache currently contains a key/icon mapping where the given key is used as * the mapping's key. */ public synchronized boolean containsKey(Object key) { return hashMap.containsKey(key); }
/** * Returns <code>true</code> if this pool currently contains a key/file mapping where the given key is used as * the mapping's key. * * @param key key to lookup * @return <code>true</code> if this pool currently contains a key/file mapping where the given key is used as * the mapping's key. */ public synchronized boolean containsKey(Object key) { return hashMap.containsKey(key); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
/** * {@inheritDoc} */ public void nodeAdded(NodeState state, Name name, int index, NodeId id) { synchronized (cacheMonitor) { if (idCache.containsKey(state.getNodeId())) { // Optimization: ignore notifications for nodes that are not in the cache try { Path path = PathFactoryImpl.getInstance().create(getPath(state.getNodeId()), name, index, true); nodeAdded(state, path, id); checkConsistency(); } catch (PathNotFoundException e) { log.warn("Unable to get path of node " + state.getNodeId() + ", event ignored."); } catch (MalformedPathException e) { log.warn("Unable to create path of " + id, e); } catch (ItemNotFoundException e) { log.warn("Unable to find item " + state.getNodeId(), e); } catch (ItemStateException e) { log.warn("Unable to find item " + id, e); } catch (RepositoryException e) { log.warn("Unable to get path of " + state.getNodeId(), e); } } else if (state.getParentId() == null && idCache.containsKey(id)) { // A top level node was added evictAll(id, true); } } }
/** * {@inheritDoc} */ public void nodeRemoved(NodeState state, Name name, int index, NodeId id) { synchronized (cacheMonitor) { if (idCache.containsKey(state.getNodeId())) { // Optimization: ignore notifications for nodes that are not in the cache try { Path path = PathFactoryImpl.getInstance().create(getPath(state.getNodeId()), name, index, true); nodeRemoved(state, path, id); checkConsistency(); } catch (PathNotFoundException e) { log.warn("Unable to get path of node " + state.getNodeId() + ", event ignored."); } catch (MalformedPathException e) { log.warn("Unable to create path of " + id, e); } catch (ItemStateException e) { log.warn("Unable to find item " + id, e); } catch (ItemNotFoundException e) { log.warn("Unable to get path of " + state.getNodeId(), e); } catch (RepositoryException e) { log.warn("Unable to get path of " + state.getNodeId(), e); } } else if (state.getParentId() == null && idCache.containsKey(id)) { // A top level node was removed evictAll(id, true); } } }
/** * {@inheritDoc} */ public void nodeAdded(NodeState state, Name name, int index, NodeId id) { synchronized (cacheMonitor) { if (idCache.containsKey(state.getNodeId())) { // Optimization: ignore notifications for nodes that are not in the cache try { Path path = PathFactoryImpl.getInstance().create(getPath(state.getNodeId()), name, index, true); nodeAdded(state, path, id); checkConsistency(); } catch (PathNotFoundException e) { log.warn("Unable to get path of node " + state.getNodeId() + ", event ignored."); } catch (MalformedPathException e) { log.warn("Unable to create path of " + id, e); } catch (ItemNotFoundException e) { log.warn("Unable to find item " + state.getNodeId(), e); } catch (ItemStateException e) { log.warn("Unable to find item " + id, e); } catch (RepositoryException e) { log.warn("Unable to get path of " + state.getNodeId(), e); } } else if (state.getParentId() == null && idCache.containsKey(id)) { // A top level node was added evictAll(id, true); } } }
/** * {@inheritDoc} */ public void nodeRemoved(NodeState state, Name name, int index, NodeId id) { synchronized (cacheMonitor) { if (idCache.containsKey(state.getNodeId())) { // Optimization: ignore notifications for nodes that are not in the cache try { Path path = PathFactoryImpl.getInstance().create(getPath(state.getNodeId()), name, index, true); nodeRemoved(state, path, id); checkConsistency(); } catch (PathNotFoundException e) { log.warn("Unable to get path of node " + state.getNodeId() + ", event ignored."); } catch (MalformedPathException e) { log.warn("Unable to create path of " + id, e); } catch (ItemStateException e) { log.warn("Unable to find item " + id, e); } catch (ItemNotFoundException e) { log.warn("Unable to get path of " + state.getNodeId(), e); } catch (RepositoryException e) { log.warn("Unable to get path of " + state.getNodeId(), e); } } else if (state.getParentId() == null && idCache.containsKey(id)) { // A top level node was removed evictAll(id, true); } } }
PdfWriter writer = exporterContext.getPdfWriter(); PdfIndirectObject swfRef; boolean newContext = !existingContexts.containsKey(exporterContext); if (newContext) { PdfDictionary extensions = new PdfDictionary();