Module dev.metaschema.databind
Class FlagExpect
java.lang.Object
dev.metaschema.databind.model.metaschema.binding.FlagExpect
- All Implemented Interfaces:
IBoundObject,IConfigurableMessageConstraintBase,IConstraintBase
@MetaschemaAssembly(formalName="Expect Condition Constraint",
name="flag-expect",
moduleClass=MetaschemaModelModule.class)
public class FlagExpect
extends Object
implements IBoundObject, IConfigurableMessageConstraintBase
Expect Condition Constraint.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.databind.model.metaschema.binding.FlagExpectinstance with no metadata.FlagExpect(IMetaschemaData data) Constructs a newdev.metaschema.databind.model.metaschema.binding.FlagExpectinstance 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.getTest()Get the expect 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 expect Test Condition.toString()
-
Constructor Details
-
FlagExpect
public FlagExpect()Constructs a newdev.metaschema.databind.model.metaschema.binding.FlagExpectinstance with no metadata. -
FlagExpect
Constructs a newdev.metaschema.databind.model.metaschema.binding.FlagExpectinstance 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 expect Test Condition.- Returns:
- the test value
-
setTest
Set the expect Test Condition.- Parameters:
value- the test 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
-