Module dev.metaschema.core
Class DefaultScopedContraints
java.lang.Object
dev.metaschema.core.model.constraint.DefaultScopedContraints
- All Implemented Interfaces:
IScopedContraints
A collection of constraints to apply to a given module identified by the
module's namespace and short name.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultScopedContraints(URI namespace, String shortName, List<ITargetedConstraints> targetedConstraints) Construct a new set of scoped constraints. -
Method Summary
Modifier and TypeMethodDescriptionThe Metaschema module namespace the constraints apply to.The Metaschema module short name the constraints apply to.The collection of target constraints.
-
Constructor Details
-
DefaultScopedContraints
public DefaultScopedContraints(@NonNull URI namespace, @NonNull String shortName, @NonNull List<ITargetedConstraints> targetedConstraints) Construct a new set of scoped constraints.- Parameters:
namespace- the associated Module namespaceshortName- the associated Module short nametargetedConstraints- the set of constraints- See Also:
-
-
Method Details
-
getModuleNamespace
Description copied from interface:IScopedContraintsThe Metaschema module namespace the constraints apply to.- Specified by:
getModuleNamespacein interfaceIScopedContraints- Returns:
- the namespace
-
getModuleShortName
Description copied from interface:IScopedContraintsThe Metaschema module short name the constraints apply to.- Specified by:
getModuleShortNamein interfaceIScopedContraints- Returns:
- the short name
-
getTargetedContraints
Description copied from interface:IScopedContraintsThe collection of target constraints.- Specified by:
getTargetedContraintsin interfaceIScopedContraints- Returns:
- the constraints
-