public class FolConstraintImpl extends Object implements FolConstraint
Constraint.ModelElmtContextType
Modifier and Type | Field and Description |
---|---|
protected String[] |
comments |
protected String |
constraintName
Name of the constraint
|
protected String |
constraintStatus
Constraint status.
|
protected String |
constraintText
The textual representation of the constraint
|
protected Info |
contextModelElmt
Model Element Context - class, attribute, operation, etc.
|
protected Constraint.ModelElmtContextType |
contextModelElmtType
Model Element Context Type - the nature of the model context the
constraint expression is specified in.
|
protected FolExpression |
folExpr |
protected String |
sourceType |
TYPE
Constructor and Description |
---|
FolConstraintImpl() |
Modifier and Type | Method and Description |
---|---|
String[] |
comments()
Get comments regarding the logic expression
|
Info |
contextModelElmt()
Inquire context model element, i.e. the parent.
|
Constraint.ModelElmtContextType |
contextModelElmtType()
Inquire model element context type.
|
FolExpression |
folExpression() |
boolean |
hasComments() |
String |
name()
Name of the constraint
|
void |
setComments(String[] comments) |
void |
setContextModelElmt(Info newContextModelElmt) |
void |
setContextModelElmtType(Constraint.ModelElmtContextType newContextModelElmtType) |
void |
setFolExpression(FolExpression folExpr) |
void |
setName(String name) |
void |
setSourceType(String sourceType) |
void |
setStatus(String status) |
void |
setText(String text)
Sets the constraint text, replacing all occurrences of one or more
consecutive whitespace characters with a single space character (thus
removing tabs and line breaks to construct a single line with text).
|
String |
sourceType()
Inquire the type of the source from which this constraint was generated
(e.g.
|
String |
status()
Status of the constraint.
|
String |
text()
The textual representation of the constraint.
|
String |
type()
Return the 'type' of the text based constraint.
|
protected String sourceType
protected FolExpression folExpr
protected Info contextModelElmt
protected Constraint.ModelElmtContextType contextModelElmtType
protected String constraintName
protected String constraintText
protected String constraintStatus
protected String[] comments
public String name()
Constraint
name
in interface Constraint
Constraint.name()
public String status()
Constraint
status
in interface Constraint
Constraint.status()
public String text()
Constraint
text
in interface Constraint
Constraint.text()
public void setText(String text)
FolConstraint
setText
in interface FolConstraint
FolConstraint.setText(java.lang.String)
public Info contextModelElmt()
Constraint
contextModelElmt
in interface Constraint
Constraint.contextModelElmt()
public Constraint.ModelElmtContextType contextModelElmtType()
Constraint
contextModelElmtType
in interface Constraint
Constraint.contextModelElmtType()
public void setFolExpression(FolExpression folExpr)
setFolExpression
in interface FolConstraint
FolConstraint.setFolExpression(de.interactive_instruments.ShapeChange.FOL.FolExpression)
public FolExpression folExpression()
folExpression
in interface FolConstraint
null
if parsing the constraint text did not
succeedFolConstraint.folExpression()
public String sourceType()
sourceType
in interface FolConstraint
public void setSourceType(String sourceType)
setSourceType
in interface FolConstraint
FolConstraint.setSourceType(java.lang.String)
public String type()
TextConstraint
type
in interface TextConstraint
public void setName(String name)
setName
in interface FolConstraint
public void setStatus(String status)
setStatus
in interface FolConstraint
public void setContextModelElmt(Info newContextModelElmt)
setContextModelElmt
in interface FolConstraint
public void setContextModelElmtType(Constraint.ModelElmtContextType newContextModelElmtType)
setContextModelElmtType
in interface FolConstraint
public String[] comments()
FolConstraint
comments
in interface FolConstraint
public boolean hasComments()
hasComments
in interface FolConstraint
public void setComments(String[] comments)
setComments
in interface FolConstraint
Copyright © 2017. All rights reserved.