public class Paragraph extends Query
Modifier and Type | Field and Description |
---|---|
com.nomagic.uml2.ext.magicdraw.activities.mdfundamentalactivities.ActivityNode |
activityNode |
com.nomagic.uml2.ext.magicdraw.activities.mdbasicactivities.InitialNode |
bnode |
GenerationContext |
context |
notToStringSet, sortElementsByName, targets, titles
dgElement, ignore, loop, titlePrefix, titleSuffix, useContextNameAsTitle
Constructor and Description |
---|
Paragraph() |
Paragraph(DocumentValidator dv) |
Paragraph(java.lang.String t) |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeParagraphs(java.util.List<DocumentElement> res,
java.lang.Object result) |
protected void |
addOclParagraph(java.util.List<DocumentElement> res,
java.lang.Object oclExpression,
java.lang.Object context) |
protected void |
addOclParagraph(java.util.List<DocumentElement> res,
java.lang.Object oclExpression,
java.lang.Object context,
java.util.HashSet<java.lang.Object> seen) |
From |
getFrom() |
java.util.List<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> |
getStereotypeProperties() |
java.lang.String |
getText() |
DocumentValidator |
getValidator() |
void |
initialize()
This is called after the query object has been constructed and the
targets and dgElement fields are set
|
GenerationContext |
makeContext() |
void |
setFrom(From f) |
void |
setStereotypeProperties(java.util.List<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> p) |
void |
setText(java.lang.String t) |
java.util.List<DocumentElement> |
visit(boolean forViewEditor,
java.lang.String outputDir)
Create DocBook paragraph(s) for this Paragraph.
|
accept, getActions, getTargets, getTitles, isSortElementsByName, notToString, parse, setSortElementsByName, setTargets, setTitles, toStringStart
getDgElement, getIgnore, getLoop, getTitlePrefix, getTitleSuffix, getUseContextNameAsTitle, setDgElement, setIgnore, setLoop, setTitlePrefix, setTitleSuffix, setUseContextNameAsTitle, toString, toStringEnd
public com.nomagic.uml2.ext.magicdraw.activities.mdbasicactivities.InitialNode bnode
public com.nomagic.uml2.ext.magicdraw.activities.mdfundamentalactivities.ActivityNode activityNode
public GenerationContext context
public Paragraph(java.lang.String t)
public Paragraph()
public Paragraph(DocumentValidator dv)
public GenerationContext makeContext()
public void setText(java.lang.String t)
public java.lang.String getText()
public void setStereotypeProperties(java.util.List<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> p)
public java.util.List<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> getStereotypeProperties()
public void setFrom(From f)
public From getFrom()
public DocumentValidator getValidator()
protected void addOclParagraph(java.util.List<DocumentElement> res, java.lang.Object oclExpression, java.lang.Object context)
protected void addOclParagraph(java.util.List<DocumentElement> res, java.lang.Object oclExpression, java.lang.Object context, java.util.HashSet<java.lang.Object> seen)
public void addAttributeParagraphs(java.util.List<DocumentElement> res, java.lang.Object result)
public java.util.List<DocumentElement> visit(boolean forViewEditor, java.lang.String outputDir)
visit
in interface Generatable
visit
in class Query
forViewEditor
- outputDir
-
1 D && !T && !R && D: return nothing
O=tryOcl && T=gotText && R=gotTargets && S=gotStereotypeProperties && D=don't care
2 !O && !T && R && !S: return a paragraph of documentation for each target
3 !O && !T && R && S: return a paragraph for each target-property pair
4 !O && T && D && D: return a paragraph of the text, tied to the "body" slot of dgElement
5 O && !T && R && !S: return a paragraph of the evaluation of the documentation of each target as OCL on dgElement
6 O && !T && R && S: return a paragraph of the evaluation of each target-property as OCL on dgElement
7 O && T && !R && D: return a paragraph of the evaluation of the text as OCL on dgElement
8 O && T && R && !S: return a paragraph of the evaluation of the text as OCL on each target
9 O && T && R && S: return a paragraph of the evaluation of the text as OCL on each target-property pair
Query.visit(boolean, java.lang.String)
public void initialize()
Query
initialize
in interface Generatable
initialize
in class Query