|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uni_paderborn.fujaba.basic.BasicIncrement
de.uni_paderborn.fujaba.asg.ASGElement
de.uni_paderborn.fujaba.uml.UMLIncrement
de.uni_paderborn.fujaba.uml.UMLCommentary
Provides commentary nodes for the diags.
1 1 UMLCommentary --------------------------- UMLIncrement comment revComment
Nested Class Summary |
Nested classes inherited from class de.uni_paderborn.fujaba.asg.ASGElement |
ASGElement.SortByNameComparator |
Field Summary |
Fields inherited from class de.uni_paderborn.fujaba.basic.BasicIncrement |
dontUseAccessMethodsInThisClass |
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FCommentary |
REV_COMMENT_PROPERTY |
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FIncrement |
ASSERT_IN_UNIT_TEST_PROPERTY, COMMENT_PROPERTY, CONSTRAINTS_PROPERTY, STEREOTYPES_PROPERTY |
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FElement |
ANNOTATIONS_PROPERTY, DIAGRAMS_PROPERTY, ELEMENT_REFERENCES_PROPERTY, GENERATED_PROPERTY, NAME_PROPERTY, TEXT_PROPERTY |
Constructor Summary | |
UMLCommentary()
Constructor for class UMLCommentary |
|
UMLCommentary(boolean coobraPersistent)
Constructor for class UMLCommentary |
|
UMLCommentary(java.lang.String text)
Constructor for class UMLCommentary |
Method Summary | |
protected java.lang.String |
createUnparseModuleName()
No comment provided by developer, please add a comment to improve documentation. |
java.lang.String |
deleteBlancLines(java.lang.String text)
Deprecated. If no one insists on using this method (e.g. plugin-developers), it may be deleted, otherwise remove this deprecated-flag. |
static java.lang.String |
deleteInitialBlancs(java.lang.String text,
boolean removeAsterisk)
Deletes leading blancs, from each line of the text and if specified preceeding asterisks as well. |
java.lang.String |
getCommentedText()
Get the text of this UMLCommentary in a Java-like multi-line-comment or single-line representation. |
FIncrement |
getFRevComment()
Get the fRevComment attribute of the UMLCommentary object |
java.lang.String |
getIncrText()
Get the incrText attribute of the UMLCommentary object |
FElement |
getParentElement()
Query the logical parent of this element (e.g. package of a class, diagram of an object). |
UMLIncrement |
getRevComment()
Get the revComment attribute of the UMLCommentary object |
java.lang.String |
getText()
Get the text attribute of the UMLCommentary object |
static java.lang.String |
getUncommentedText(java.lang.String text)
Use this method to get an uncommented version of Java-style-commented text. |
boolean |
getVisibilityOfFirstIncr()
Deprecated. Use UMLCommentary#isVisible() instead. |
boolean |
isVisible()
Get visibility-state of this commentary in the current diagram. |
void |
removeYou()
No comment provided by developer, please add a comment to improve documentation. |
void |
setRevComment(FIncrement revComment)
Sets the revComment attribute of the UMLCommentary object |
java.lang.String |
setText(java.lang.String text)
Sets the text attribute of the UMLCommentary object |
void |
setVisible(boolean value)
Set visibility-state of this commentary in the current diagram. |
void |
swapVisibilityTo(boolean value)
Deprecated. Use UMLCommentary#setVisible(boolean) instead. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.uni_paderborn.fujaba.metamodel.FIncrement |
addToConstraints, addToStereotypes, entriesOfStereotypes, getFComment, getFromFStereotypes, hasInConstraints, hasInStereotypes, hasKeyInStereotypes, isAssertInUnitTest, iteratorOfConstraints, iteratorOfStereotypes, keysOfStereotypes, removeAllFromConstraints, removeAllFromStereotypes, removeFromConstraints, removeFromStereotypes, removeKeyFromStereotypes, setAssertInUnitTest, setComment, sizeOfStereotypes |
Methods inherited from interface java.lang.Comparable |
compareTo |
Methods inherited from interface de.uni_paderborn.fujaba.basic.UniqueIdentifier |
getID |
Methods inherited from interface de.uni_paderborn.fujaba.fsa.unparse.LogicUnparseInterface |
getFSAInterface, getUnparseModuleName |
Methods inherited from interface de.upb.tools.pcs.PropertyChangeInterface |
getPropertyChangeSupport |
Methods inherited from interface de.upb.tools.pcs.PropertyChangeClient |
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from interface de.tu_bs.coobra.ObjectChangeAware |
acknowledgeChange, getCoObRAId, getRepository, setCoObRAId, setRepository |
Methods inherited from interface de.uni_kassel.prop.InspectionAware |
isInspectableField, proposeFieldValues |
Constructor Detail |
public UMLCommentary()
public UMLCommentary(boolean coobraPersistent)
coobraPersistent
- No description providedpublic UMLCommentary(java.lang.String text)
text
- No description providedMethod Detail |
protected java.lang.String createUnparseModuleName()
createUnparseModuleName
in class ASGElement
public void swapVisibilityTo(boolean value)
UMLCommentary#setVisible(boolean)
instead.
value
- No description providedpublic boolean getVisibilityOfFirstIncr()
UMLCommentary#isVisible()
instead.
public boolean isVisible()
public void setVisible(boolean value)
value
- The new visibility-state of this commentary.public UMLIncrement getRevComment()
public FIncrement getFRevComment()
getFRevComment
in interface FCommentary
public void setRevComment(FIncrement revComment)
setRevComment
in interface FCommentary
revComment
- The new revComment valuepublic java.lang.String deleteBlancLines(java.lang.String text)
text
- No description provided
public java.lang.String getIncrText()
public java.lang.String getText()
getText
in interface FElement
getText
in class ASGElement
public java.lang.String setText(java.lang.String text)
setText
in interface FCommentary
text
- The new text value
getUncommentedText(String)
public java.lang.String getCommentedText()
public static java.lang.String getUncommentedText(java.lang.String text)
Use this function, e.g. if you want to adjust the text of a UMLCommentary but only have commented text, or don't know if the text you have contains comment-symbols and you want them to be removed. Example code: String uncommentedText = UMLCommentary.getUncommentedText(myCommentedText); UMLCommentary theCommentary = ...; theCommentary.setText(uncommentedText);
text
- A String containing commented Java-style text.
public static java.lang.String deleteInitialBlancs(java.lang.String text, boolean removeAsterisk)
text
- A String.removeAsterisk
- Should preceeding asteriks be removed as well?
public void removeYou()
removeYou
in interface FElement
removeYou
in class UMLIncrement
public FElement getParentElement()
getParentElement
in interface FElement
getParentElement
in class ASGElement
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |