/** * Get a character map, identified by the fingerprint of its name. * Search backwards through the stylesheet. * @param name The character map name being sought * @return the identified character map, or null if not found */ public XSLCharacterMap getCharacterMap(StructuredQName name) { for (int i = topLevel.size() - 1; i >= 0; i--) { if (topLevel.get(i) instanceof XSLCharacterMap) { XSLCharacterMap t = (XSLCharacterMap) topLevel.get(i); if (t.getCharacterMapName().equals(name)) { return t; } } } return null; }
/** * Get a character map, identified by the fingerprint of its name. * Search backwards through the stylesheet. * @param name The character map name being sought * @return the identified character map, or null if not found */ public XSLCharacterMap getCharacterMap(StructuredQName name) { for (int i = topLevel.size() - 1; i >= 0; i--) { if (topLevel.get(i) instanceof XSLCharacterMap) { XSLCharacterMap t = (XSLCharacterMap) topLevel.get(i); if (t.getCharacterMapName().equals(name)) { return t; } } } return null; }
/** * Get a character map, identified by the fingerprint of its name. * Search backwards through the stylesheet. * @param name The character map name being sought * @return the identified character map, or null if not found */ public XSLCharacterMap getCharacterMap(StructuredQName name) { for (int i = topLevel.size() - 1; i >= 0; i--) { if (topLevel.get(i) instanceof XSLCharacterMap) { XSLCharacterMap t = (XSLCharacterMap) topLevel.get(i); if (t.getCharacterMapName().equals(name)) { return t; } } } return null; }
/** * Get a character map, identified by the fingerprint of its name. * Search backwards through the stylesheet. * * @param name The character map name being sought * @return the identified character map, or null if not found */ public ComponentDeclaration getCharacterMap(StructuredQName name) { for (int i = topLevel.size() - 1; i >= 0; i--) { ComponentDeclaration decl = topLevel.get(i); if (decl.getSourceElement() instanceof XSLCharacterMap) { XSLCharacterMap t = (XSLCharacterMap) decl.getSourceElement(); if (t.getCharacterMapName().equals(name)) { return decl; } } } return null; }
/** * Get a character map, identified by the fingerprint of its name. * Search backwards through the stylesheet. * * @param name The character map name being sought * @return the identified character map, or null if not found */ public ComponentDeclaration getCharacterMap(StructuredQName name) { for (int i = topLevel.size() - 1; i >= 0; i--) { ComponentDeclaration decl = topLevel.get(i); if (decl.getSourceElement() instanceof XSLCharacterMap) { XSLCharacterMap t = (XSLCharacterMap) decl.getSourceElement(); if (t.getCharacterMapName().equals(name)) { return decl; } } } return null; }
XSLCharacterMap t = (XSLCharacterMap) topLevel.get(i); if (!t.isRedundant()) { StructuredQName qn = t.getCharacterMapName(); IntHashMap map = new IntHashMap(20); t.assemble(map);
XSLCharacterMap t = (XSLCharacterMap) topLevel.get(i); if (!t.isRedundant()) { StructuredQName qn = t.getCharacterMapName(); IntHashMap map = new IntHashMap(20); t.assemble(map);
XSLCharacterMap t = (XSLCharacterMap) topLevel.get(i); if (!t.isRedundant()) { StructuredQName qn = t.getCharacterMapName(); IntHashMap map = new IntHashMap(20); t.assemble(map);
if (inst instanceof XSLCharacterMap) { XSLCharacterMap xcm = (XSLCharacterMap) inst; StructuredQName qn = xcm.getCharacterMapName(); IntHashMap<String> map = new IntHashMap<>(); xcm.assemble(map); characterMapIndex.putCharacterMap(xcm.getCharacterMapName(), new CharacterMap(qn, map));
if (inst instanceof XSLCharacterMap) { XSLCharacterMap xcm = (XSLCharacterMap) inst; StructuredQName qn = xcm.getCharacterMapName(); IntHashMap<String> map = new IntHashMap<>(); xcm.assemble(map); characterMapIndex.putCharacterMap(xcm.getCharacterMapName(), new CharacterMap(qn, map));