Class AbstractConstraint.AbstractConstraintBuilder<T extends AbstractConstraint.AbstractConstraintBuilder<T,R>,R extends AbstractConstraint>
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.model.constraint.AbstractConstraint.AbstractConstraintBuilder<T,R>
-
- Direct Known Subclasses:
AbstractKeyConstraint.AbstractKeyConstraintBuilder
,DefaultAllowedValuesConstraint.Builder
,DefaultCardinalityConstraint.Builder
,DefaultExpectConstraint.Builder
,DefaultMatchesConstraint.Builder
- Enclosing class:
- AbstractConstraint
public abstract static class AbstractConstraint.AbstractConstraintBuilder<T extends AbstractConstraint.AbstractConstraintBuilder<T,R>,R extends AbstractConstraint> extends Object
-
-
Constructor Summary
Constructors Constructor Description AbstractConstraintBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description R
build()
T
description(MarkupLine description)
T
formalName(String name)
protected MarkupLine
getDescription()
protected String
getFormalName()
protected String
getId()
protected IConstraint.Level
getLevel()
protected Map<QName,Set<String>>
getProperties()
protected MarkupMultiline
getRemarks()
protected IConstraint.ISource
getSource()
protected MetapathExpression
getTarget()
protected abstract T
getThis()
T
identifier(String id)
T
level(IConstraint.Level level)
protected abstract R
newInstance()
T
properties(Map<QName,Set<String>> properties)
T
property(QName name, String value)
T
property(QName name, Set<String> newValues)
T
remarks(MarkupMultiline remarks)
T
source(IConstraint.ISource source)
T
target(MetapathExpression target)
protected void
validate()
-
-
-
Constructor Detail
-
AbstractConstraintBuilder
public AbstractConstraintBuilder()
-
-
Method Detail
-
identifier
public T identifier(@NonNull String id)
-
formalName
public T formalName(@NonNull String name)
-
description
public T description(@NonNull MarkupLine description)
-
source
public T source(@NonNull IConstraint.ISource source)
-
level
public T level(@NonNull IConstraint.Level level)
-
target
public T target(@NonNull MetapathExpression target)
-
remarks
public T remarks(@NonNull MarkupMultiline remarks)
-
validate
protected void validate()
-
newInstance
@NonNull protected abstract R newInstance()
-
getFormalName
protected String getFormalName()
-
getDescription
protected MarkupLine getDescription()
-
getSource
protected IConstraint.ISource getSource()
-
getLevel
@NonNull protected IConstraint.Level getLevel()
-
getTarget
@NonNull protected MetapathExpression getTarget()
-
getProperties
@NonNull protected Map<QName,Set<String>> getProperties()
-
getRemarks
protected MarkupMultiline getRemarks()
-
-