@Override public Map<String, String> getPrefixMap() throws RegistryException { Map<String, String> result = internalGetPrefixMap(); if (!isBase()) result.putAll(baseProfile.getPrefixMap()); return result; }
@Override public Map<String, String> getPrefixMap() throws RegistryException { Map<String, String> result = internalGetPrefixMap(); if (!isBase()) result.putAll(baseProfile.getPrefixMap()); return result; }
@Override public void notify(Observable<ProfileChoiceMessage> sender, ProfileChoiceMessage message) throws Exception { Profile newProfile = message.getChosenProfile(); prefixModel.setRowCount(0); if (newProfile != null) for (Entry<String, String> entry : newProfile.getPrefixMap() .entrySet()) { String key = entry.getKey(); String value = entry.getValue(); if (!value.endsWith("#")) value += "#"; prefixModel.addRow(new String[] { key, value }); } this.validate(); }
private Map<String, String> internalGetPrefixMap() throws RegistryException { Map<String, String> result = new TreeMap<String, String>(); try { for (Ontology ontology : getProfileDocument().getOntology()) result.put(ontology.getId(), ontology.getValue()); } catch (RegistryException e) { } result.putAll(parent().getPrefixMap()); return result; }
private Map<String, String> internalGetPrefixMap() throws RegistryException { Map<String, String> result = new TreeMap<String, String>(); for (Ontology ontology : getProfileDocument().getOntology()) result.put(ontology.getId(), ontology.getValue()); result.putAll(parent().getPrefixMap()); return result; }