@Override public Collection<DataKey> keySet() { if (parent != null) { ArrayList<DataKey> all = new ArrayList<DataKey>(); all.addAll(super.keySet()); for (DataKey key : parent.keySet()) { if (!contains(key)) { all.add(key); } } return all; } else { return super.keySet(); } }
public CoreNodeDocxRenderer(DataHolder options) { referenceRepository = getRepository(options); recheckUndefinedReferences = DocxRenderer.RECHECK_UNDEFINED_REFERENCES.getFrom(options); linebreakOnInlineHtmlBr = DocxRenderer.LINEBREAK_ON_INLINE_HTML_BR.getFrom(options); tableCaptionToParagraph = DocxRenderer.TABLE_CAPTION_TO_PARAGRAPH.getFrom(options); tableCaptionBeforeTable = DocxRenderer.TABLE_CAPTION_BEFORE_TABLE.getFrom(options); tablePreferredWidthPct = DocxRenderer.TABLE_PREFERRED_WIDTH_PCT.getFrom(options); tableLeftIndent = DocxRenderer.TABLE_LEFT_INDENT.getFrom(options); tableStyle = DocxRenderer.TABLE_STYLE.getFrom(options); repositoryNodesDone = false; this.options = new DocxRendererOptions(options); listOptions = ListOptions.getFrom(options); footnoteIDs = new HashMap<Node, BigInteger>(); lastTocBlock = null; ordinal = 0; final MutableScopedDataSet options1 = new MutableScopedDataSet(options); options1.set(EmojiExtension.ROOT_IMAGE_PATH, DocxRenderer.DOC_EMOJI_ROOT_IMAGE_PATH.getFrom(options)); emojiOptions = new EmojiOptions(options1); }
@Override public Map<DataKey, Object> getAll() { if (parent != null) { HashMap<DataKey, Object> all = new HashMap<DataKey, Object>(); all.putAll(super.getAll()); for (DataKey key : parent.keySet()) { if (!contains(key)) { all.put(key, parent.get(key)); } } return all; } else { return super.getAll(); } }
@Override public Collection<DataKey> keySet() { if (parent != null) { ArrayList<DataKey> all = new ArrayList<DataKey>(); all.addAll(super.keySet()); for (DataKey key : parent.keySet()) { if (!contains(key)) { all.add(key); } } return all; } else { return super.keySet(); } }
@Override public Map<DataKey, Object> getAll() { if (parent != null) { HashMap<DataKey, Object> all = new HashMap<DataKey, Object>(); all.putAll(super.getAll()); for (DataKey key : parent.keySet()) { if (!contains(key)) { all.put(key, parent.get(key)); } } return all; } else { return super.getAll(); } }