|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.shared.impl.PrefixMappingImpl
com.hp.hpl.jena.graph.compose.PolyadicPrefixMappingImpl
public class PolyadicPrefixMappingImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.hp.hpl.jena.shared.PrefixMapping |
|---|
PrefixMapping.Factory, PrefixMapping.IllegalPrefixException, PrefixMapping.JenaLockedException |
| Field Summary |
|---|
| Fields inherited from interface com.hp.hpl.jena.shared.PrefixMapping |
|---|
Extended, Standard |
| Constructor Summary | |
|---|---|
PolyadicPrefixMappingImpl(Polyadic p)
|
|
| Method Summary | |
|---|---|
String |
expandPrefix(String prefixed)
Expand a prefixed URI. |
Map<String,String> |
getNsPrefixMap()
Return a copy of the internal mapping from names to URI strings. |
String |
getNsPrefixURI(String prefix)
Get the URI bound to a specific prefix, null if there isn't one. |
String |
getNsURIPrefix(String uri)
Answer the prefix for the given URI, or null if there isn't one. |
String |
qnameFor(String uri)
Answer a qname with the expansion of the given uri, or null if no such qname can be constructed using the mapping's prefixes. |
PrefixMapping |
removeNsPrefix(String prefix)
Remove any existing maplet with the given prefix name and answer this mapping. |
PrefixMapping |
setNsPrefix(String prefix,
String uri)
Specify the prefix name for a URI prefix string. |
PrefixMapping |
setNsPrefixes(Map<String,String> other)
Add the bindings in the map to our own. |
PrefixMapping |
setNsPrefixes(PrefixMapping other)
Add the bindings of other to our own. |
String |
shortForm(String uri)
Compress the URI using the prefix mapping. |
String |
toString()
Answer a readable (we hope) representation of this prefix mapping. |
| Methods inherited from class com.hp.hpl.jena.shared.impl.PrefixMappingImpl |
|---|
isNiceURI, lock, samePrefixMappingAs, withDefaultMappings |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.hp.hpl.jena.shared.PrefixMapping |
|---|
lock, samePrefixMappingAs, withDefaultMappings |
| Constructor Detail |
|---|
public PolyadicPrefixMappingImpl(Polyadic p)
| Method Detail |
|---|
public PrefixMapping setNsPrefix(String prefix,
String uri)
PrefixMappingA prefix name must be a valid NCName, or the empty string. The empty string is reserved to mean "the default namespace".
Need not check the RFC2396 validity of the URI. Bad URIs are either silently ignored or behave as if they were good. The earlier restriction that the URI should end with a non-NCName character has been removed.
setNsPrefix in interface PrefixMappingsetNsPrefix in class com.hp.hpl.jena.shared.impl.PrefixMappingImplprefix - the string to be used for the prefix.uri - the URI prefix to be named
public PrefixMapping removeNsPrefix(String prefix)
PrefixMappingThe reverse URI-to-prefix mapping is updated, but if there are multiple prefixes for the removed URI it is unspecified which of them will be chosen.
removeNsPrefix in interface PrefixMappingremoveNsPrefix in class com.hp.hpl.jena.shared.impl.PrefixMappingImplprefix - the prefix string to remove
public PrefixMapping setNsPrefixes(PrefixMapping other)
setNsPrefixes in interface PrefixMappingsetNsPrefixes in class com.hp.hpl.jena.shared.impl.PrefixMappingImplother - the PrefixMapping whose bindings we are to add to this.
public PrefixMapping setNsPrefixes(Map<String,String> other)
setNsPrefixes in interface PrefixMappingsetNsPrefixes in class com.hp.hpl.jena.shared.impl.PrefixMappingImplother - the Map whose bindings we are to add to this.
public String getNsPrefixURI(String prefix)
PrefixMapping
getNsPrefixURI in interface PrefixMappinggetNsPrefixURI in class com.hp.hpl.jena.shared.impl.PrefixMappingImplprefix - the prefix name to be looked up
public Map<String,String> getNsPrefixMap()
PrefixMapping
getNsPrefixMap in interface PrefixMappinggetNsPrefixMap in class com.hp.hpl.jena.shared.impl.PrefixMappingImplpublic String getNsURIPrefix(String uri)
PrefixMapping
getNsURIPrefix in interface PrefixMappinggetNsURIPrefix in class com.hp.hpl.jena.shared.impl.PrefixMappingImpluri - the uri whose prefix is to be found
public String expandPrefix(String prefixed)
expandPrefix in interface PrefixMappingexpandPrefix in class com.hp.hpl.jena.shared.impl.PrefixMappingImplprefixed - a QName or URI
public String toString()
toString in class com.hp.hpl.jena.shared.impl.PrefixMappingImplpublic String shortForm(String uri)
shortForm in interface PrefixMappingshortForm in class com.hp.hpl.jena.shared.impl.PrefixMappingImpluri - the URI string to try and prefix-compress
public String qnameFor(String uri)
PrefixMapping
qnameFor in interface PrefixMappingqnameFor in class com.hp.hpl.jena.shared.impl.PrefixMappingImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||