Class DefaultMatchesConstraint.Builder
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.model.constraint.AbstractConstraint.AbstractConstraintBuilder<DefaultMatchesConstraint.Builder,DefaultMatchesConstraint>
-
- gov.nist.secauto.metaschema.core.model.constraint.DefaultMatchesConstraint.Builder
-
- Enclosing class:
- DefaultMatchesConstraint
public static final class DefaultMatchesConstraint.Builder extends AbstractConstraint.AbstractConstraintBuilder<DefaultMatchesConstraint.Builder,DefaultMatchesConstraint>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultMatchesConstraint.Builder
datatype(IDataTypeAdapter<?> datatype)
protected IDataTypeAdapter<?>
getDatatype()
protected Pattern
getPattern()
protected DefaultMatchesConstraint.Builder
getThis()
protected DefaultMatchesConstraint
newInstance()
DefaultMatchesConstraint.Builder
regex(String pattern)
DefaultMatchesConstraint.Builder
regex(Pattern pattern)
protected void
validate()
-
Methods inherited from class gov.nist.secauto.metaschema.core.model.constraint.AbstractConstraint.AbstractConstraintBuilder
build, description, formalName, getDescription, getFormalName, getId, getLevel, getProperties, getRemarks, getSource, getTarget, identifier, level, properties, property, property, remarks, source, target
-
-
-
-
Method Detail
-
regex
public DefaultMatchesConstraint.Builder regex(@NonNull String pattern)
-
regex
public DefaultMatchesConstraint.Builder regex(@NonNull Pattern pattern)
-
datatype
public DefaultMatchesConstraint.Builder datatype(@NonNull IDataTypeAdapter<?> datatype)
-
getThis
protected DefaultMatchesConstraint.Builder getThis()
- Specified by:
getThis
in classAbstractConstraint.AbstractConstraintBuilder<DefaultMatchesConstraint.Builder,DefaultMatchesConstraint>
-
validate
protected void validate()
-
getPattern
protected Pattern getPattern()
-
getDatatype
protected IDataTypeAdapter<?> getDatatype()
-
newInstance
protected DefaultMatchesConstraint newInstance()
- Specified by:
newInstance
in classAbstractConstraint.AbstractConstraintBuilder<DefaultMatchesConstraint.Builder,DefaultMatchesConstraint>
-
-