Module dev.metaschema.databind
Class TargetedReportConstraint
java.lang.Object
dev.metaschema.databind.model.metaschema.binding.TargetedReportConstraint
- All Implemented Interfaces:
IBoundObject,IConfigurableMessageConstraintBase,IConstraintBase,ITargetedConstraintBase
@MetaschemaAssembly(formalName="Report Condition Constraint",
name="targeted-report-constraint",
moduleClass=MetaschemaModelModule.class)
public class TargetedReportConstraint
extends Object
implements IBoundObject, ITargetedConstraintBase, IConfigurableMessageConstraintBase
Report Condition Constraint.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.databind.model.metaschema.binding.TargetedReportConstraintinstance with no metadata.Constructs a newdev.metaschema.databind.model.metaschema.binding.TargetedReportConstraintinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newPropertyitem to the underlying collection.Get the description.Get the formal Name.getId()Get the constraint Identifier.getLevel()Get the constraint Severity Level.Get the constraint Condition Violation Message.Get additional Metaschema-related information for the object (i.e., resource location).getProps()Get the property.Get the remarks.Get the constraint Target Metapath Expression.getTest()Get the report Test Condition.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.voidsetDescription(MarkupLine value) Set the description.voidsetFormalName(String value) Set the formal Name.voidSet the constraint Identifier.voidSet the constraint Severity Level.voidsetMessage(String value) Set the constraint Condition Violation Message.voidSet the property.voidsetRemarks(Remarks value) Set the remarks.voidSet the constraint Target Metapath Expression.voidSet the report Test Condition.toString()
-
Constructor Details
-
TargetedReportConstraint
public TargetedReportConstraint()Constructs a newdev.metaschema.databind.model.metaschema.binding.TargetedReportConstraintinstance with no metadata. -
TargetedReportConstraint
Constructs a newdev.metaschema.databind.model.metaschema.binding.TargetedReportConstraintinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
Description copied from interface:IBoundObjectGet additional Metaschema-related information for the object (i.e., resource location).- Specified by:
getMetaschemaDatain interfaceIBoundObject- Returns:
- the Metaschema-related information
-
getId
Get the constraint Identifier.- Specified by:
getIdin interfaceIConstraintBase- Returns:
- the id value, or
nullif not set
-
setId
Set the constraint Identifier.- Parameters:
value- the id value to set, ornullto clear
-
getLevel
Get the constraint Severity Level.- Specified by:
getLevelin interfaceIConstraintBase- Returns:
- the level value, or
nullif not set
-
setLevel
Set the constraint Severity Level.- Parameters:
value- the level value to set, ornullto clear
-
getTest
Get the report Test Condition.- Returns:
- the test value
-
setTest
Set the report Test Condition.- Parameters:
value- the test value to set
-
getTarget
Get the constraint Target Metapath Expression.- Specified by:
getTargetin interfaceITargetedConstraintBase- Returns:
- the target value
-
setTarget
Set the constraint Target Metapath Expression.- Parameters:
value- the target value to set
-
getFormalName
Get the formal Name.A formal name for the data construct, to be presented in documentation.
- Specified by:
getFormalNamein interfaceIConstraintBase- Returns:
- the formal-name value, or
nullif not set
-
setFormalName
Set the formal Name.A formal name for the data construct, to be presented in documentation.
- Parameters:
value- the formal-name value to set, ornullto clear
-
getDescription
Get the description.A short description of the data construct's purpose, describing the constructs semantics.
- Specified by:
getDescriptionin interfaceIConstraintBase- Returns:
- the description value, or
nullif not set
-
setDescription
Set the description.A short description of the data construct's purpose, describing the constructs semantics.
- Parameters:
value- the description value to set, ornullto clear
-
getProps
Get the property.- Specified by:
getPropsin interfaceIConstraintBase- Returns:
- the prop value
-
setProps
Set the property.- Parameters:
value- the prop value to set
-
addProp
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getMessage
Get the constraint Condition Violation Message.- Specified by:
getMessagein interfaceIConfigurableMessageConstraintBase- Returns:
- the message value, or
nullif not set
-
setMessage
Set the constraint Condition Violation Message.- Parameters:
value- the message value to set, ornullto clear
-
getRemarks
Get the remarks.Any explanatory or helpful information to be provided about the remarks parent.
- Specified by:
getRemarksin interfaceIConstraintBase- Returns:
- the remarks value, or
nullif not set
-
setRemarks
Set the remarks.Any explanatory or helpful information to be provided about the remarks parent.
- Parameters:
value- the remarks value to set, ornullto clear
-
toString
-