public class PrefixHandler extends Object
| Constructor and Description |
|---|
PrefixHandler()
Constructor.
|
PrefixHandler(PrefixMapping pMap)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPrefix(String pfx,
String uri)
Add a prefix to the prefix mapping.
|
void |
addPrefixes(Map<String,String> prefixes)
Add the map of prefixes to the query prefixes.
|
void |
addPrefixes(PrefixMapping prefixes)
Add prefixes from a prefix mapping.
|
void |
clearPrefixes()
Clear the prefix mapping.
|
ExprFactory |
getExprFactory()
Get the expression factory based on the prefix mapping.
|
PrefixMapping |
getPrefixes()
Get the prefix mapping
|
public PrefixHandler(PrefixMapping pMap)
pMap - The prefix map to handle.public PrefixHandler()
public void addPrefix(String pfx, String uri)
pfx - The prefix to add.uri - The uri to resolve the prefix to.public void clearPrefixes()
public void addPrefixes(Map<String,String> prefixes)
prefixes - The map of prefixs to URIs.public PrefixMapping getPrefixes()
public ExprFactory getExprFactory()
public void addPrefixes(PrefixMapping prefixes)
prefixes - The prefix mapping to add from.Licensed under the Apache License, Version 2.0