@ThreadSafe public final class PSQueryBindingRegistry extends Object
registerQueryBinding(String, IPSQueryBinding)
.Modifier and Type | Field and Description |
---|---|
static IPSQueryBinding |
DEFAULT_QUERY_BINDING
The default XPath binding object to be used
|
static String |
QUERY_BINDING_XSLT
Name of the query binding for which the default binding is registered.
|
static String |
QUERY_BINDING_XSLT2
Name of the query binding for which the default binding is registered.
|
Modifier and Type | Method and Description |
---|---|
static com.helger.commons.collection.ext.ICommonsMap<String,IPSQueryBinding> |
getAllRegisteredQueryBindings() |
static IPSQueryBinding |
getQueryBindingOfName(String sName)
Get the query binding with the specified name.
|
static IPSQueryBinding |
getQueryBindingOfNameOrThrow(String sName)
Get the query binding with the specified name
|
static void |
registerQueryBinding(String sName,
IPSQueryBinding aQueryBinding) |
public static final String QUERY_BINDING_XSLT
public static final String QUERY_BINDING_XSLT2
public static final IPSQueryBinding DEFAULT_QUERY_BINDING
public static void registerQueryBinding(@Nonnull @Nonempty String sName, @Nonnull IPSQueryBinding aQueryBinding) throws SchematronBindException
SchematronBindException
@Nullable public static IPSQueryBinding getQueryBindingOfName(@Nullable String sName)
sName
- The name to the query binding to retrieve. May be null
.
If it is null
than the DEFAULT_QUERY_BINDING
object is returned.null
if no such query binding was found.@Nonnull public static IPSQueryBinding getQueryBindingOfNameOrThrow(@Nullable String sName) throws SchematronBindException
sName
- The name of the query binding to look up. May be null
.null
.SchematronBindException
- In case the query binding could not be resolved!@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.ext.ICommonsMap<String,IPSQueryBinding> getAllRegisteredQueryBindings()
null
map with all contained query bindings from
name to object.Copyright © 2014–2016 Philip Helger. All rights reserved.