@Override public boolean hasNoMappings() { return getBaseMapping().hasNoMappings(); }
@Override public int numPrefixes() { return getBaseMapping().numPrefixes(); }
@Override public boolean hasNoMappings() { return getBaseMapping().hasNoMappings(); }
@Override public int numPrefixes() { return getBaseMapping().numPrefixes(); }
@Override public PrefixMapping clearNsPrefixMap() { checkUnlocked(); getBaseMapping().clearNsPrefixMap() ; return this; }
@Override public PrefixMapping removeNsPrefix( String prefix ) { checkUnlocked(); getBaseMapping().removeNsPrefix( prefix ); return this; }
@Override public PrefixMapping setNsPrefix( String prefix, String uri ) { checkUnlocked(); getBaseMapping().setNsPrefix( prefix, uri ); return this; }
@Override public PrefixMapping setNsPrefix( String prefix, String uri ) { checkUnlocked(); getBaseMapping().setNsPrefix( prefix, uri ); return this; }
@Override public PrefixMapping removeNsPrefix( String prefix ) { checkUnlocked(); getBaseMapping().removeNsPrefix( prefix ); return this; }
@Override public Map<String, String> getNsPrefixMap() { Map<String, String> result = CollectionFactory.createHashedMap(); List<Graph> graphs = poly.getSubGraphs(); for (int i = graphs.size(); i > 0;) result.putAll( graphs.get( --i ).getPrefixMapping().getNsPrefixMap() ); result.remove( "" ); result.putAll( getBaseMapping().getNsPrefixMap() ); return result; }
@Override public PrefixMapping clearNsPrefixMap() { checkUnlocked(); getBaseMapping().clearNsPrefixMap() ; return this; }
@Override public Map<String, String> getNsPrefixMap() { Map<String, String> result = CollectionFactory.createHashedMap(); List<Graph> graphs = poly.getSubGraphs(); for (int i = graphs.size(); i > 0;) result.putAll( graphs.get( --i ).getPrefixMapping().getNsPrefixMap() ); result.remove( "" ); result.putAll( getBaseMapping().getNsPrefixMap() ); return result; }
/** Add the bindings in the map to our own. This will fail with a ClassCastException if any key or value is not a String; we make no guarantees about order or completeness if this happens. It will fail with an IllegalPrefixException if any prefix is illegal; similar provisos apply. @param other the Map whose bindings we are to add to this. */ @Override public PrefixMapping setNsPrefixes( Map<String, String> other ) { checkUnlocked(); getBaseMapping().setNsPrefixes( other ); return this; }
/** Add the bindings in the map to our own. This will fail with a ClassCastException if any key or value is not a String; we make no guarantees about order or completeness if this happens. It will fail with an IllegalPrefixException if any prefix is illegal; similar provisos apply. @param other the Map whose bindings we are to add to this. */ @Override public PrefixMapping setNsPrefixes( Map<String, String> other ) { checkUnlocked(); getBaseMapping().setNsPrefixes( other ); return this; }
@Override public String getNsURIPrefix( String uri ) { String s = getBaseMapping().getNsURIPrefix( uri ); if (s == null) { List<Graph> graphs = poly.getSubGraphs(); for ( Graph graph : graphs ) { String ss = graph.getPrefixMapping().getNsURIPrefix( uri ); if ( ss != null && ss.length() > 0 ) { return ss; } } } return s; }
@Override public String getNsURIPrefix( String uri ) { String s = getBaseMapping().getNsURIPrefix( uri ); if (s == null) { List<Graph> graphs = poly.getSubGraphs(); for ( Graph graph : graphs ) { String ss = graph.getPrefixMapping().getNsURIPrefix( uri ); if ( ss != null && ss.length() > 0 ) { return ss; } } } return s; }
@Override public String getNsPrefixURI( String prefix ) { PrefixMapping bm = getBaseMapping(); String s = bm.getNsPrefixURI( prefix ); if (s == null && prefix.length() > 0) { List<Graph> graphs = poly.getSubGraphs(); for ( Graph graph : graphs ) { String ss = graph.getPrefixMapping().getNsPrefixURI( prefix ); if ( ss != null ) { return ss; } } } return s; }
@Override public String getNsPrefixURI( String prefix ) { PrefixMapping bm = getBaseMapping(); String s = bm.getNsPrefixURI( prefix ); if (s == null && prefix.length() > 0) { List<Graph> graphs = poly.getSubGraphs(); for ( Graph graph : graphs ) { String ss = graph.getPrefixMapping().getNsPrefixURI( prefix ); if ( ss != null ) { return ss; } } } return s; }
@Override public String qnameFor( String uri ) { String result = getBaseMapping().qnameFor( uri ); if (result == null) { List<Graph> graphs = poly.getSubGraphs(); for ( Graph graph : graphs ) { String ss = graph.getPrefixMapping().qnameFor( uri ); if ( ss != null ) { return ss; } } } return result; } }
@Override public String qnameFor( String uri ) { String result = getBaseMapping().qnameFor( uri ); if (result == null) { List<Graph> graphs = poly.getSubGraphs(); for ( Graph graph : graphs ) { String ss = graph.getPrefixMapping().qnameFor( uri ); if ( ss != null ) { return ss; } } } return result; } }