@Test public void testGetPrefixMappings() { Map<String, String> prefixMappings = URIUtils.getPrefixMappings(); Properties properties = new Properties(); try { properties.load(getClass().getClassLoader().getResourceAsStream("config/naming/prefix.properties")); } catch (IOException e) { e.printStackTrace(); fail("Couldn't load prefix properties"); } assertEquals("Unexpected number of prefixes", properties.size(), prefixMappings.size()); assertTrue("Could not find 'slash' prefix", prefixMappings.containsKey("slash")); assertTrue("Could not find 'hash' prefix", prefixMappings.containsKey("hash")); System.out.println("Contents of prefix mappings: " + prefixMappings.toString()); }
public synchronized static Map<String, String> getPrefixMappings() { if (prefixMappings.containsKey(uninitializedKey)) { loadPrefixMappings(); } return prefixMappings; }
URIUtils { public synchronized static Map<String, String> getPrefixMappings() { if (prefixMappings.containsKey(uninitializedKey)) { loadPrefixMappings(); } return prefixMappings; } }
URIUtils { public synchronized static Map<String, String> getPrefixMappings() { if (prefixMappings.containsKey(uninitializedKey)) { loadPrefixMappings(); } return prefixMappings; }  }
URIUtils { public synchronized static Map<String, String> getPrefixMappings() { if (prefixMappings.containsKey(uninitializedKey)) { loadPrefixMappings(); } return prefixMappings; }  synchronized static Map<String, String> getPrefixMappings(); synchronized static Map<String, String> loadPrefixMappings(); static String getShortform(URI uri); static String getShortform(URI uri, ShortformStrictness strictness); static String getShortform(URI uri, ShortformStrictness strictness, PrefixCreationMode prefixCreationMode); static String getShortform(final Map<String, String> prefixMappings, URI uri); static String getShortform(final Map<String, String> prefixMappings,
                                      URI uri,
                                      ShortformStrictness strictness,
                                      PrefixCreationMode prefixCreationMode); static URI getURI(String shortform); static URI getURI(final Map<String, String> prefixMappings, String shortform); static URI getNamespace(String shortform); static URI getNamespace(final Map<String, String> prefixMappings, String shortform); static String getFragment(String shortform); static URI extractNamespace(URI uri); static String extractFragment(URI uri); static boolean isNamespaceKnown(URI uri); static URI normalizeURI(String uriStr); static URI normalizeURI(URI uri); static URI incrementURI(ZoomaDAO dao, URI uri); }
URIUtils { public synchronized static Map<String, String> getPrefixMappings() { if (prefixMappings.containsKey(uninitializedKey)) { loadPrefixMappings(); } return prefixMappings; }  synchronized static Map<String, String> getPrefixMappings(); synchronized static Map<String, String> loadPrefixMappings(); static String getShortform(URI uri); static String getShortform(URI uri, ShortformStrictness strictness); static String getShortform(URI uri, ShortformStrictness strictness, PrefixCreationMode prefixCreationMode); static String getShortform(final Map<String, String> prefixMappings, URI uri); static String getShortform(final Map<String, String> prefixMappings,
                                      URI uri,
                                      ShortformStrictness strictness,
                                      PrefixCreationMode prefixCreationMode); static URI getURI(String shortform); static URI getURI(final Map<String, String> prefixMappings, String shortform); static URI getNamespace(String shortform); static URI getNamespace(final Map<String, String> prefixMappings, String shortform); static String getFragment(String shortform); static URI extractNamespace(URI uri); static String extractFragment(URI uri); static boolean isNamespaceKnown(URI uri); static URI normalizeURI(String uriStr); static URI normalizeURI(URI uri); static URI incrementURI(ZoomaDAO dao, URI uri); static final PrefixCreationMode DEFAULT_PREFIX_CREATION_MODE; static final ShortformStrictness DEFAULT_SHORTFORM_STRICTNESS; static final URI SEARCH_NONE; }