|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jena.riot.system.PrefixMapBase
org.apache.jena.riot.system.PrefixMapExtended
public class PrefixMapExtended
Implementation of a PrefixMap which extends another prefix map
without ever altering the parent.
This allows code to modify a prefix map based off of another map without modifying that original map. This is somewhat different than simply making a copy of an existing map since this implementation is partly a view over another map so will reflect changes that happen to the other map.
| Constructor Summary | |
|---|---|
PrefixMapExtended(PrefixMap ext)
Creates an extended prefix map |
|
| Method Summary | |
|---|---|
Pair<String,String> |
abbrev(String uriStr)
Abbreviate an IRI and return a pair of prefix and local parts, or null. |
String |
abbreviate(String uriStr)
Abbreviate an IRI or return null |
void |
add(String prefix,
org.apache.jena.iri.IRI iri)
Add a prefix, overwrites any existing association |
boolean |
contains(String prefix)
Gets whether the map contains a given prefix |
void |
delete(String prefix)
Delete a prefix |
String |
expand(String prefix,
String localName)
Expand a prefix, return null if it can't be expanded |
Map<String,org.apache.jena.iri.IRI> |
getMapping()
Return the underlying mapping, this is generally unsafe to modify and implementations may opt to return an unmodifiable view of the mapping if they wish |
boolean |
isEmpty()
return whether the |
int |
size()
Return the number of entries in the prefix map. |
| Methods inherited from class org.apache.jena.riot.system.PrefixMapBase |
|---|
add, expand, getMappingCopy, getMappingCopyStr, putAll, putAll, putAll, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PrefixMapExtended(PrefixMap ext)
ext - Prefix Map to extend| Method Detail |
|---|
public void add(String prefix,
org.apache.jena.iri.IRI iri)
PrefixMap
prefix - Prefixiri - Namespace IRIpublic void delete(String prefix)
PrefixMap
prefix - Prefix to delete
public String expand(String prefix,
String localName)
PrefixMap
prefix - PrefixlocalName - Local name
public Map<String,org.apache.jena.iri.IRI> getMapping()
PrefixMap
public boolean contains(String prefix)
PrefixMap
prefix - Prefix
public String abbreviate(String uriStr)
PrefixMap
uriStr - URI to abbreviate
public Pair<String,String> abbrev(String uriStr)
PrefixMap
uriStr - URI string to abbreviate
PrefixMap.abbreviate(java.lang.String)public boolean isEmpty()
PrefixMap
public int size()
PrefixMap
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||