- public static boolean areFeaturesSupported(final StmtContext.Mutable<?, ?, ?> stmtContext) {
- switch (stmtContext.getSupportedByFeatures()) {
- case SUPPORTED:
- return true;
- case NOT_SUPPORTED:
- return false;
- default:
- break;
- }
-
- final Set<QName> supportedFeatures = stmtContext.getFromNamespace(SupportedFeaturesNamespace.class,
- SupportedFeatures.SUPPORTED_FEATURES);
- /*
- * If set of supported features has not been provided, all features are
- * supported by default.
- */
- if (supportedFeatures == null) {
- stmtContext.setSupportedByFeatures(true);
- return true;
- }
-
- final boolean result = checkFeatureSupport(stmtContext, supportedFeatures);
- stmtContext.setSupportedByFeatures(result);
- return result;
- }
-
- private static boolean checkFeatureSupport(final StmtContext.Mutable<?, ?, ?> stmtContext,
+ public static boolean checkFeatureSupport(final StmtContext<?, ?, ?> stmtContext,