AbstractConstraintDeclaration
, AdjacentDomainsConstraints
, AdvectionCoefficientConstraints
, AlgebraicRuleConstraints
, AnalyticGeometryConstraints
, AnalyticVolumeConstraints
, AndConstraints
, ArraysSBasePluginConstraints
, AssignmentConstraints
, AssignmentRuleConstraints
, ASTNodeConstraints
, BindingSiteSpeciesTypeConstraints
, BoundaryConditionConstraints
, BoundaryConstraints
, BoundingBoxConstraints
, ColorDefinitionConstraints
, CompartmentConstraints
, CompartmentGlyphConstraints
, CompartmentMappingConstraints
, CompartmentReferenceConstraints
, CompartmentTypeConstraints
, CompModelPluginConstraints
, CompSBasePluginConstraints
, CompSBMLDocumentPluginConstraints
, ConstraintConstraints
, CoordinateComponentConstraints
, CSGeometryConstraints
, CSGHomogeneousTransformationConstraints
, CSGObjectConstraints
, CSGPrimitiveConstraints
, CSGRotationConstraints
, CSGScaleConstraints
, CSGSetOperatorConstraints
, CSGTranslationConstraints
, CubicBezierConstraints
, CurveConstraints
, DefaultValuesConstraints
, DelayConstraints
, DeletionConstraints
, DiffusionCoefficientConstraints
, DimensionConstraints
, DimensionsConstraints
, DomainConstraints
, DomainTypeConstraints
, EllipseConstraints
, EventAssignmentConstraints
, EventConstraints
, ExplicitRuleConstraints
, ExternalModelDefinitionConstraints
, FBCReactionPluginConstraints
, FunctionDefinitionConstraints
, FunctionTermConstraints
, GeneProductConstraints
, GeneralGlyphConstraints
, GeometryConstraints
, GeometryDefinitionConstraints
, GlobalRenderInformationConstraints
, GradientBaseConstraints
, GradientStopConstraints
, GraphicalObjectConstraints
, GraphicalPrimitive1DConstraints
, GraphicalPrimitive2DConstraints
, ImageConstraints
, IndexConstraints
, InitialAssignmentConstraints
, InputConstraints
, InSpeciesTypeBondConstraints
, InteriorPointConstraints
, KineticLawConstraints
, LayoutConstraints
, LayoutModelPluginConstraints
, LinearGradientConstraints
, LineEndingConstraints
, LineSegmentConstraints
, LocalParameterConstraints
, LocalRenderInformationConstraints
, LocalStyleConstraints
, MathContainerConstraints
, MixedGeometryConstraints
, ModelConstraints
, MultiCompartmentPluginConstraints
, MultiModelPluginConstraints
, MultiSpeciesTypeConstraints
, ObjectiveConstraints
, OrConstraints
, OrdinalMappingConstraints
, OutputConstraints
, ParameterConstraints
, ParametricGeometryConstraints
, ParametricObjectConstraints
, PointConstraints
, PolygonConstraints
, PortConstraints
, PossibleSpeciesFeatureValueConstraints
, PriorityConstraints
, QualitativeSpeciesConstraints
, QualModelPluginConstraints
, RadialGradientConstraints
, RateRuleConstraints
, ReactionConstraints
, ReactionGlyphConstraints
, RectangleConstraints
, ReferenceGlyphConstraints
, RenderCubicBezierConstraints
, RenderCurveConstraints
, RenderGraphicalObjectPluginConstraints
, RenderGroupConstraints
, RenderInformationBaseConstraints
, RenderLayoutPluginConstraints
, RenderListOfLayoutsPluginConstraints
, RenderPointConstraints
, ReplacedByConstraints
, ReplacedElementConstraints
, RuleConstraints
, SampledFieldConstraints
, SampledFieldGeometryConstraints
, SampledVolumeConstraints
, SBaseConstraints
, SBaseRefConstraints
, SBaseWithDerivedUnitConstraints
, SBaseWithUnitConstraints
, SBMLDocumentConstraints
, SimpleSpeciesReferenceConstraints
, SpatialCompartmentPluginConstraints
, SpatialModelPluginConstraints
, SpatialParameterPluginConstraints
, SpatialPointsConstraints
, SpatialReactionPluginConstraints
, SpatialSpeciesPluginConstraints
, SpatialSymbolReferenceConstraints
, SpeciesConstraints
, SpeciesFeatureTypeConstraints
, SpeciesGlyphConstraints
, SpeciesReferenceConstraints
, SpeciesReferenceGlyphConstraints
, SpeciesTypeComponentIndexConstraints
, SpeciesTypeConstraints
, SpeciesTypeInstanceConstraints
, StyleConstraints
, SubmodelConstraints
, TextConstraints
, TextGlyphConstraints
, Transformation2DConstraints
, TransformationComponentConstraints
, TransformationConstraints
, TransitionConstraints
, TreeNodeConstraints
, TriggerConstraints
, UnitConstraints
, UnitDefinitionConstraints
public interface ConstraintDeclaration
If you want to provide
constraints for a custom class, consider to inherit from
AbstractConstraintDeclaration
instead. This abstract class has
already a working implementation of most of the methods and supports caching.
AbstractConstraintDeclaration
Modifier and Type | Method | Description |
---|---|---|
void |
addErrorCodesForAttribute(java.util.Set<java.lang.Integer> set,
int level,
int version,
java.lang.String attributeName,
ValidationContext context) |
Adds all error codes which are needed for a check the attribute to the
set.
|
void |
addErrorCodesForCheck(java.util.Set<java.lang.Integer> set,
int level,
int version,
SBMLValidator.CHECK_CATEGORY category,
ValidationContext context) |
Adds all error codes which are needed for a check in this category to the
set.
|
<T> AnyConstraint<T> |
createConstraint(int errorCode,
ValidationContext context) |
Creates the constraint with the given error code.
|
<T> ConstraintGroup<T> |
createConstraints(int[] errorCodes,
ValidationContext context) |
Creates the constraints with the given error codes.
|
<T> ConstraintGroup<T> |
createConstraints(int level,
int version,
java.lang.String attributeName,
ValidationContext context) |
Creates all the constraints which are needed to validate the attribute
in the given level and version of SBML.
|
<T> ConstraintGroup<T> |
createConstraints(int level,
int version,
SBMLValidator.CHECK_CATEGORY[] categories,
ValidationContext context) |
Creates all the constraints which are needed to validate the categories
in the given level and version of SBML.
|
AnyConstraint<?> |
createConstraints(int level,
int version,
SBMLValidator.CHECK_CATEGORY category,
ValidationContext context) |
Creates all the constraints which are needed to validate this category
in the given level and version of SBML.
|
ValidationFunction<?> |
getValidationFunction(int errorCode,
ValidationContext context) |
Returns the
ValidationFunction of the error code, if it's defined
in this ConstraintDeclaration . |
<T> ConstraintGroup<T> createConstraints(int level, int version, SBMLValidator.CHECK_CATEGORY[] categories, ValidationContext context)
level
- the sbml levelversion
- the sbml versioncategories
- the check categoriescontext
- the validation contextConstraintGroup
with at least 1 member or
null
if no constraint was loadedcreateConstraints(int, int, CHECK_CATEGORY, ValidationContext)
AnyConstraint<?> createConstraints(int level, int version, SBMLValidator.CHECK_CATEGORY category, ValidationContext context)
level
- the sbml levelversion
- the sbml versioncategory
- the check categorycontext
- the validation contextConstraintGroup
with at least 1 member or
null
if no constraint was loadedcreateConstraints(int, int, CHECK_CATEGORY[], ValidationContext)
<T> ConstraintGroup<T> createConstraints(int level, int version, java.lang.String attributeName, ValidationContext context)
SBMLError.SEVERITY.ERROR
or
SBMLError.SEVERITY.FATAL
.level
- the sbml levelversion
- the sbml versionattributeName
- the attribute namecontext
- the validation contextConstraintGroup
with at least 1 member or
null
if no constraint was loadedcreateConstraints(int, int, CHECK_CATEGORY[], ValidationContext)
void addErrorCodesForCheck(java.util.Set<java.lang.Integer> set, int level, int version, SBMLValidator.CHECK_CATEGORY category, ValidationContext context)
set
- the Set
of error codes for the given category.level
- the sbml levelversion
- the sbml versioncategory
- the category to checkcontext
- the validation contextvoid addErrorCodesForAttribute(java.util.Set<java.lang.Integer> set, int level, int version, java.lang.String attributeName, ValidationContext context)
set
- the Set
of error codes for the given category.level
- the sbml levelversion
- the sbml versionattributeName
- the attribute namecontext
- the validation context<T> ConstraintGroup<T> createConstraints(int[] errorCodes, ValidationContext context)
errorCodes
- an array of error codescontext
- the validation contextConstraintGroup
with at least 1 member or
null
if no constraint was loadedcreateConstraint(int, ValidationContext)
<T> AnyConstraint<T> createConstraint(int errorCode, ValidationContext context)
errorCode
- the error codecontext
- the validation contextValidationFunction<?> getValidationFunction(int errorCode, ValidationContext context)
ValidationFunction
of the error code, if it's defined
in this ConstraintDeclaration
.errorCode
- the error codecontext
- the validation contextValidationFunction
or null
if not defined
in this ConstraintDeclaration