Package org.trellisldp.api
Class NoopNamespaceService
- java.lang.Object
-
- org.trellisldp.api.NoopNamespaceService
-
- All Implemented Interfaces:
NamespaceService
public class NoopNamespaceService extends Object implements NamespaceService
ANamespaceService
that stores nothing and offers nothing.
-
-
Constructor Summary
Constructors Constructor Description NoopNamespaceService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getNamespaces()
Fetch the entire namespace mapping.boolean
setPrefix(String prefix, String namespace)
Set the namespace for a given prefix.
-
-
-
Method Detail
-
getNamespaces
public Map<String,String> getNamespaces()
Description copied from interface:NamespaceService
Fetch the entire namespace mapping.- Specified by:
getNamespaces
in interfaceNamespaceService
- Returns:
- the namespace mapping as prefix, namespace pairs
-
setPrefix
public boolean setPrefix(String prefix, String namespace)
Description copied from interface:NamespaceService
Set the namespace for a given prefix.- Specified by:
setPrefix
in interfaceNamespaceService
- Parameters:
prefix
- the prefixnamespace
- the namespace- Returns:
- whether the new prefix was set
-
-