public abstract class UmlStructure extends AbstractUmlObject
Modifier and Type | Class and Description |
---|---|
static class |
UmlStructure.Data
Data from the UML model repository specific to
UmlStructure . |
CLASS_SEPARATOR, NULL_OBJ_NAME, PACKAGE_SEPARATOR
Modifier | Constructor and Description |
---|---|
protected |
UmlStructure(UmlObjectData objData,
UmlStructure.Data data)
Creates common parts of structures.
|
Modifier and Type | Method and Description |
---|---|
UmlDependency |
addDependency(UmlStructure target,
UmlObjectData objData,
UmlDependency.Data data)
Creates from arguments an explicit (hand-drawn) UML dependency, adds it to itself as
source , to target as target, and to the model, and returns the
newly created object. |
UmlDiagram |
addDiagram(java.io.File pic,
UmlObjectData objData,
UmlDiagram.Data data)
Creates from arguments a diagram, adds it to itself and to the model, and returns the newly
created object.
|
UmlSkipped |
addSkippedUmlItem(UmlObjectData objData,
UmlSkipped.Data data)
Creates from arguments a skipped UML item, adds it to itself, and returns the newly created
object.
|
java.util.Collection<UmlStructure> |
collectDependencyAfferentStructures()
Returns all structures that depend on me through an explicit UML dependency in the model.
|
java.util.Collection<UmlStructure> |
collectDependencyEfferentStructures()
Returns all structures that I directly depend on through an explicit UML dependency
in the model.
|
java.util.Collection<UmlStructure> |
collectMyAndParentsDependencyEfferentStructures()
Returns all structures that I and my containers recursively depend on through an
explicit UML dependency in the model; starting from my direct dependencies, then following my
container's dependencies and so on).
|
abstract UmlStructure |
getContainer()
Returns containing structure, null in case this is the model package.
|
java.util.Set<UmlDependency> |
getDependenciesAsSource()
Returns all explicit (hand-drawn) UML dependencies where I am source.
|
java.util.Set<UmlDependency> |
getDependenciesAsTarget()
Returns all explicit (hand-drawn) UML dependencies where I am target.
|
java.util.Set<UmlDiagram> |
getDiagrams()
Returns all diagrams in this structure.
|
abstract UmlKind |
getKind()
Returns kind of this UML object, as assigned by the application.
|
abstract UmlModel |
getModel()
Returns the model this structure belongs to.
|
abstract Nature |
getNature()
Returns the nature of this UML object, which determines the validation rules to apply, and
sometimes document generation formats.
|
abstract OwningWg |
getOwner()
Returns the IEC working group owning this UML object, as calculated by the application based
on the UML model structure.
|
abstract java.lang.String |
getQualifiedName()
Returns the name of this UML object combined with some container-related information (e.g.,
packageName.className, or containingPackageName.packageName).
|
java.util.Set<UmlSkipped> |
getSkippedUmlItems()
Returns all skipped UML items: elements within or connectors with this structure.
|
boolean |
isSelfDependent() |
addDeprecAndInf, addTaggedValue, appendRemainingCustomStereotypes, classifyPerScope, classifyPerScopePerTag, classifyPerTag, collectDuplicateDescriptions, collectDuplicateNames, collectForScope, collectNames, collectQNames, findAllForName, findWithSameUuidAndLog, getAlias, getDescription, getHtmlDescription, getId, getName, getSince, getStereotype, getTaggedValues, getUnallowedTagNames, getUuid, getVisibility, initFromTags, isDeprecated, isInformative, saveTags, toShortString, toShortString, validateTag
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNamespace, getPredefinedTagNames
protected UmlStructure(UmlObjectData objData, UmlStructure.Data data)
data
- public final UmlSkipped addSkippedUmlItem(UmlObjectData objData, UmlSkipped.Data data)
public final java.util.Set<UmlSkipped> getSkippedUmlItems()
public final UmlDependency addDependency(UmlStructure target, UmlObjectData objData, UmlDependency.Data data)
source
, to target
as target, and to the model, and returns the
newly created object. In case the dependency with the same UUID has already been added,
returns the existing dependency immediately. It is the responsibility of the caller to call
this method on the source structure, otherwise the behaviour is undefined.target
- must be of the same type as this.objData
- common UML data for the new dependency.data
- data proper to new dependency.java.lang.IllegalArgumentException
- if this and target
are from different models, or if this and
target
are the same object, or if the types of this and
target
differ.public final java.util.Set<UmlDependency> getDependenciesAsSource()
public final java.util.Set<UmlDependency> getDependenciesAsTarget()
public final boolean isSelfDependent()
UmlStructure.Data.isSelfDependent()
public final java.util.Collection<UmlStructure> collectDependencyEfferentStructures()
collectMyAndParentsDependencyEfferentStructures()
.public final java.util.Collection<UmlStructure> collectMyAndParentsDependencyEfferentStructures()
For simple list of my direct dependencies, use
collectDependencyEfferentStructures()
.
public final java.util.Collection<UmlStructure> collectDependencyAfferentStructures()
public final UmlDiagram addDiagram(java.io.File pic, UmlObjectData objData, UmlDiagram.Data data)
public final java.util.Set<UmlDiagram> getDiagrams()
public abstract UmlModel getModel()
public abstract UmlStructure getContainer()
public abstract OwningWg getOwner()
UmlObject
getOwner
in interface UmlObject
getOwner
in class AbstractUmlObject
public abstract Nature getNature()
UmlObject
getNature
in interface UmlObject
getNature
in class AbstractUmlObject
public abstract UmlKind getKind()
UmlObject
getKind
in interface UmlObject
getKind
in class AbstractUmlObject
public abstract java.lang.String getQualifiedName()
UmlObject
getQualifiedName
in interface UmlObject
getQualifiedName
in class AbstractUmlObject
Copyright 2009-2016 Tatjana (Tanja) Kostic