|
|||||||||||
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
Nested Class Summary |
Nested classes inherited from class com.hp.hpl.jena.shared.PrefixMapping |
PrefixMapping.Factory, PrefixMapping.IllegalPrefixException, PrefixMapping.JenaLockedException |
Field Summary |
Fields inherited from interface com.hp.hpl.jena.shared.PrefixMapping |
Standard |
Constructor Summary | |
PolyadicPrefixMappingImpl(Polyadic p)
|
Method Summary | |
java.lang.String |
expandPrefix(java.lang.String prefixed)
Expand a prefixed URI. |
java.util.Map |
getNsPrefixMap()
Return a copy of the internal mapping from names to URI strings. |
java.lang.String |
getNsPrefixURI(java.lang.String prefix)
Get the URI bound to a specific prefix, null if there isn't one. |
java.lang.String |
getNsURIPrefix(java.lang.String uri)
Answer the prefix for the given URI, or null if there isn't one. |
PrefixMapping |
removeNsPrefix(java.lang.String prefix)
Remove any existing maplet with the given prefix name and answer this mapping. |
PrefixMapping |
setNsPrefix(java.lang.String prefix,
java.lang.String uri)
Specify the prefix name for a URI prefix string. |
PrefixMapping |
setNsPrefixes(java.util.Map other)
Add the bindings in the map to our own. |
PrefixMapping |
setNsPrefixes(PrefixMapping other)
Add the bindings of other to our own. |
java.lang.String |
toString()
Answer a readable (we hope) representation of this prefix mapping. |
java.lang.String |
usePrefix(java.lang.String uri)
Compress the URI using the prefix mapping. |
Methods inherited from class com.hp.hpl.jena.shared.impl.PrefixMappingImpl |
isNiceURI, lock |
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 |
Constructor Detail |
public PolyadicPrefixMappingImpl(Polyadic p)
Method Detail |
public PrefixMapping setNsPrefix(java.lang.String prefix, java.lang.String uri)
PrefixMapping
A prefix name must be a valid NCName, or the empty string. The empty string is reserved to mean "the default namespace".
Any URI may be ignored; for example URIs that end in an NCName char may be discarded.
Does not check the RFC2396 validity of the URI. Bad URIs are either silently ignored or behave as if they were good.
setNsPrefix
in interface PrefixMapping
public PrefixMapping removeNsPrefix(java.lang.String prefix)
PrefixMapping
removeNsPrefix
in interface PrefixMapping
public PrefixMapping setNsPrefixes(PrefixMapping other)
setNsPrefixes
in interface PrefixMapping
other
- the PrefixMapping whose bindings we are to add to this.public PrefixMapping setNsPrefixes(java.util.Map other)
setNsPrefixes
in interface PrefixMapping
other
- the Map whose bindings we are to add to this.public java.lang.String getNsPrefixURI(java.lang.String prefix)
PrefixMapping
getNsPrefixURI
in interface PrefixMapping
public java.util.Map getNsPrefixMap()
PrefixMapping
getNsPrefixMap
in interface PrefixMapping
public java.lang.String getNsURIPrefix(java.lang.String uri)
PrefixMapping
getNsURIPrefix
in interface PrefixMapping
public java.lang.String expandPrefix(java.lang.String prefixed)
expandPrefix
in interface PrefixMapping
public java.lang.String toString()
public java.lang.String usePrefix(java.lang.String uri)
usePrefix
in interface PrefixMapping
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |