Fields Summary |
---|
public static final String | PUBLICOne of the visibility constants returned by getVisibility() method. |
public static final String | PRIVATEOne of the visibility constants returned by getVisibility() method. |
public static final String | PROTECTEDOne of the visibility constants returned by getVisibility() method. |
public static final String | PACKAGEOne of the visibility constants returned by getVisibility() method. |
public static final String | JAVAOne of the language constants returned by getLanguage() method. |
public static final String | CPPOne of the language constants returned by getLanguage() method. |
public static final String | OCOBOLOne of the language constants returned by getLanguage() method. |
Methods Summary |
---|
public void | accept(UMLVisitor visitor)accept() operation initiates visiting process
using the Visitor solution pattern. The classes derived from
UMLElement should implement this operation to call the appropriate
method of UMLVisitor class, which can be extended by the user
with desired functionality.
For example, implementation of UMLClass.accept() can look like this:
UMLClassImp.accept(UMLVisitor visitor) {
visitor.visitClass();
}
|
public UMLPropertyEnumeration | getDocProperties()Getting properties associated with the element.
These cover only design properties, not language-specific properties.
For programming language elements the properties are collected from
the element's Java-style design comment.
See Tags interface for list of predefined Together/J tags.
|
public java.io.File | getFile()Getting the file where the element is created, usually declared.
The model provides that such a file is unique. To access other files
related to the element, e.g. for operation's definition,
use method.
Language dependent:
For Java and OCOBOL - the file with source code;
For C++ - declaration file;
For the elements not associated with any language -
containing diagram file (.vf*).
|
public UMLFileEnumeration | getFiles(java.lang.String kindOfFile)Getting all files associated with the element.
The parameter specifies the kind of files.
Language dependent, different kinds are appropriate for different languages.
|
public UMLStringEnumeration | getHyperlinkedFiles()Getting all the file names linked with this by hyperlinks.
You can hyperlink files using the "Hyperlink To" page in
the Inspector.
|
public UMLElementEnumeration | getHyperlinks()Getting all the elements linked with this by hyperlinks.
You can hyperlink elements using the "Hyperlink To" page in
the Inspector.
|
public java.lang.Object | getIdentityObject()Some physical classes can be presented in the model in a number of instances
by importing into logical packages. For all these instances this method
returns the same value.
|
public UMLLinkEnumeration | getIncomingLinks()Getting all incoming links for the element.
These cover all kinds of links.
See UMLLink interface for the list of possible link kinds.
|
public UMLLinkEnumeration | getIncomingLinksByKind(java.lang.String kind)Getting all the incoming links of the specified kind.
See UMLLink interface for the list of possible link kinds.
|
public java.lang.String | getLanguage()Returns language identifier of the element.
For the elements not associated with any language
constructions, e.g. design elements, it returns UMLElement.JAVA.
|
public java.lang.String | getName()Getting element's name.
You can get element's name using 4 kinds of
string descriptions returned by the following 4 functions:
getName() - short name;
getQualifiedName() - full qualified name;
toLongString() - long description of element;
toShortString() - short description of element;
This method getName() returns the short name of element.
For example, for interface
oisoft.togetherx.UML.UMLElement it returns
"UMLElement"
|
public UMLStringEnumeration | getNote()Returns the note text associated with the element
This method uses the "@note" comment property.
|
public UMLNoteLinkEnumeration | getNoteLinks()Getting links-attachments to Notes.
A Note is a rectangular node in the diagram with text. It can be linked
with any other diagram element with a Note link.
A note captures the assumptions and decisions applied during
analysis and design. Notes may contain any information,
including plain text, fragments of code, or references to other
documents. A note holds an unlimited amount of text and can be
sized accordingly.
|
public UMLLinkEnumeration | getOutgoingLinks()Getting all outgoing links for the element.
These cover all kinds of links.
See UMLLink interface for the list of possible link kinds.
|
public UMLLinkEnumeration | getOutgoingLinksByKind(java.lang.String kind)Getting all the outgoing links of the specified kind.
See UMLLink interface for the list of possible link kinds.
|
public java.lang.String | getProperty(java.lang.String property)Getting the value of element's property by name.
To get all the properties, use getDocProperties() method.
|
public java.lang.String | getQualifiedName()Getting element's full qualified name.
For example, for interface
oisoft.togetherx.UML.UMLElement it returns
"oisoft.togetherx.UML.UMLElement"
|
public java.lang.String | getVisibility()Returns element's visibility.
If visibility semantic is not defined for the element,
it returns UMLElement.PUBLIC.
|
public boolean | hasProperty(java.lang.String property)Indicates whether the element has specified property.
|
public boolean | isFullDefined()Indicates whether the element is defined, not only "referenced".
Some elements can be referenced with links to it, but are not defined,
e.g. have not declaration. For example, you have a class that
extends some other class and for the latter class any information are
absent. Such classes are called "referenced".
|
public boolean | isModelElement()Indicates whether the element is not imported.
Some elements in diagram are physically contained,
for example, classes of the package displayed
in the physical package diagram.
Others are imported, for example, classes from another package
imported to a physical package diagram or all classes in
a logical package diagram and logical package diagram itself.
|
public boolean | isVisible()Indicates whether the element is visible on the diagram.
Some elements in diagram can be hidden using "Hide"
command of the context menu or using filters
in the diagram's Display tab.
|
public java.lang.String | toLongString()Getting element's long description.
Use this method when you wish, for instance,
insert element's description (declaration) in documentation.
For example, for oisoft.togetherx.UML.UMLElement
it returns
"public interface UMLElement"
|
public java.lang.String | toShortString()Getting element's short description.
|