Class DefaultConstraintSet
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.model.constraint.DefaultConstraintSet
-
- All Implemented Interfaces:
IConstraintSet
public class DefaultConstraintSet extends Object implements IConstraintSet
-
-
Constructor Summary
Constructors Constructor Description DefaultConstraintSet(URI resourceLocation, List<IScopedContraints> scopedContraints, Set<IConstraintSet> importedConstraintSets)
Construct a new constraint set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<IConstraintSet>
getImportedConstraintSets()
protected URI
getResourceLocation()
Get the resource the constraint was provided from.Map<QName,List<IScopedContraints>>
getScopedContraints()
Get the set of Metaschema scoped constraints to apply by aQName
formed from the Metaschema namespace and short name.Stream<ITargetedConstaints>
getTargetedConstraintsForModule(IModule module)
-
-
-
Constructor Detail
-
DefaultConstraintSet
public DefaultConstraintSet(@NonNull URI resourceLocation, @NonNull List<IScopedContraints> scopedContraints, @NonNull Set<IConstraintSet> importedConstraintSets)
Construct a new constraint set.- Parameters:
resourceLocation
- the resource the constraint was provided fromscopedContraints
- a set of constraints qualified by a scope pathimportedConstraintSets
- constraint sets imported by this constraint set
-
-
Method Detail
-
getResourceLocation
@NonNull protected URI getResourceLocation()
Get the resource the constraint was provided from.- Returns:
- the resource
-
getScopedContraints
public Map<QName,List<IScopedContraints>> getScopedContraints()
Description copied from interface:IConstraintSet
Get the set of Metaschema scoped constraints to apply by aQName
formed from the Metaschema namespace and short name.- Specified by:
getScopedContraints
in interfaceIConstraintSet
- Returns:
- the mapping of QName to scoped constraints
-
getImportedConstraintSets
public Set<IConstraintSet> getImportedConstraintSets()
- Specified by:
getImportedConstraintSets
in interfaceIConstraintSet
-
getTargetedConstraintsForModule
public Stream<ITargetedConstaints> getTargetedConstraintsForModule(@NonNull IModule module)
- Specified by:
getTargetedConstraintsForModule
in interfaceIConstraintSet
-
-