Class PSQueryBindingRegistry
java.lang.Object
com.helger.schematron.pure.binding.PSQueryBindingRegistry
The registry class for all available query bindings. To register your own
query binding, call
registerQueryBinding(String, IPSQueryBinding).- Author:
- Philip Helger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IPSQueryBindingThe default XPath binding object to be usedstatic final StringName of a query binding in the ISO standard.static final StringName of a query binding in the ISO standard.static final StringName of a query binding for which the default binding is registered.static final StringName of a query binding in the ISO standard for which the default binding is registered.static final StringName of a query binding in the ISO standard for which the default binding is registered.static final StringName of a query binding for which the default binding is registered.static final StringName of a query binding in the ISO standard for which the default binding is registered.static final StringName of a query binding in the ISO standard for which the default binding is registered. -
Method Summary
Modifier and TypeMethodDescriptionstatic com.helger.commons.collection.impl.ICommonsMap<String,IPSQueryBinding> static IPSQueryBindinggetQueryBindingOfName(String sName) Get the query binding with the specified name.static IPSQueryBindingGet the query binding with the specified namestatic voidregisterQueryBinding(String sName, IPSQueryBinding aQueryBinding)
-
Field Details
-
QUERY_BINDING_XSLT
Name of a query binding for which the default binding is registered.- See Also:
-
QUERY_BINDING_XSLT2
Name of a query binding in the ISO standard for which the default binding is registered.- See Also:
-
QUERY_BINDING_XSLT3
Name of a query binding in the ISO standard for which the default binding is registered.- See Also:
-
QUERY_BINDING_XPATH
Name of a query binding for which the default binding is registered.- See Also:
-
QUERY_BINDING_XPATH2
Name of a query binding in the ISO standard for which the default binding is registered.- See Also:
-
QUERY_BINDING_XPATH3
Name of a query binding in the ISO standard for which the default binding is registered.- See Also:
-
QUERY_BINDING_EXSLT
Name of a query binding in the ISO standard.- See Also:
-
QUERY_BINDING_STX
Name of a query binding in the ISO standard.- See Also:
-
DEFAULT_QUERY_BINDING
The default XPath binding object to be used
-
-
Method Details
-
registerQueryBinding
public static void registerQueryBinding(@Nonnull @Nonempty String sName, @Nonnull IPSQueryBinding aQueryBinding) throws SchematronBindException - Throws:
SchematronBindException
-
getQueryBindingOfName
Get the query binding with the specified name.- Parameters:
sName- The name to the query binding to retrieve. May benull. If it isnullthan theDEFAULT_QUERY_BINDINGobject is returned.- Returns:
nullif no such query binding was found.
-
getQueryBindingOfNameOrThrow
@Nonnull public static IPSQueryBinding getQueryBindingOfNameOrThrow(@Nullable String sName) throws SchematronBindException Get the query binding with the specified name- Parameters:
sName- The name of the query binding to look up. May benull.- Returns:
- Never
null. - Throws:
SchematronBindException- In case the query binding could not be resolved!
-
getAllRegisteredQueryBindings
@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsMap<String,IPSQueryBinding> getAllRegisteredQueryBindings()- Returns:
- A non-
nullmap with all contained query bindings from name to object.
-