Package com.nomagic.magicdraw.uml
Class DiagramType
java.lang.Object
com.nomagic.magicdraw.uml.AbstractDiagramType
com.nomagic.magicdraw.uml.DiagramType
- All Implemented Interfaces:
DiagramTypeConstants
,DiagramTypes
,Cloneable
The
DiagramType
class represents the diagram type-
Field Summary
Fields inherited from interface com.nomagic.uml2.diagram.DiagramTypes
CONTENT_DIAGRAM, DEPENDENCY_MATRIX, GENERIC_TABLE, GLOSSARY_TABLE, INSTANCE_TABLE, RELATION_MAP_DIAGRAM, UML_ACTIVITY_DIAGRAM, UML_ANY_DIAGRAM, UML_BEHAVIOR_DIAGRAM, UML_CLASS_DIAGRAM, UML_COMMUNICATION_DIAGRAM, UML_COMPONENT_DIAGRAM, UML_COMPOSITE_STRUCTURE_DIAGRAM, UML_DEPLOYMENT_DIAGRAM, UML_INTERACTION_DIAGRAM, UML_INTERACTION_OVERVIEW_DIAGRAM, UML_OBJECT_DIAGRAM, UML_PACKAGE_DIAGRAM, UML_PROFILE_DIAGRAM, UML_PROTOCOL_STATE_MACHINE_DIAGRAM, UML_SEQUENCE_DIAGRAM, UML_STATECHART_DIAGRAM, UML_STATIC_DIAGRAM, UML_USECASE_DIAGRAM, USER_INTERFACE_MODELING_DIAGRAM
-
Constructor Summary
ConstructorDescriptionDiagramType
(String type) Constructs diagram type according given diagram type string representation. -
Method Summary
Modifier and TypeMethodDescriptionclone()
static DiagramType
createDiagramType
(String type) Creates diagram type of given type string representation.Returns list of all diagram types.Returns list of available to create (creatable) diagram types.static DiagramType
getDiagramType
(Diagram diagram) Return diagram type for a given diagramReturns root type of this diagram type.getType()
Returns the diagram type string representationstatic boolean
isCreatableDiagramType
(String type) Check, whether diagram type is creatable.boolean
isEqualType
(DiagramType type) Checks if diagram type is equal to given diagram type.boolean
isEqualType
(String type) Checks if diagram type is equal to given diagram type.boolean
isTypeOf
(DiagramType type) Checks if diagram type is of given diagram type (analogy ofinstanceof
operator)boolean
Checks if diagram type is of given diagram type (analogy ofinstanceof
operator)void
Sets the diagram type, according given diagram type string representationMethods inherited from class com.nomagic.magicdraw.uml.AbstractDiagramType
isTypeOf
-
Constructor Details
-
DiagramType
Constructs diagram type according given diagram type string representation.- Parameters:
type
- diagram type string representation- See Also:
-
-
Method Details
-
getDiagramType
Return diagram type for a given diagram- Parameters:
diagram
- diagram- Returns:
- diagram type
-
setType
Sets the diagram type, according given diagram type string representation- Parameters:
type
- diagram type string representation- See Also:
-
getType
Returns the diagram type string representation- Specified by:
getType
in classAbstractDiagramType
- Returns:
- diagram type string representation
- See Also:
-
isEqualType
Checks if diagram type is equal to given diagram type.- Parameters:
type
- diagram type- Returns:
true
if this diagram type is equal to given diagram type; otherwise -false
.- See Also:
-
isEqualType
Checks if diagram type is equal to given diagram type.- Parameters:
type
- diagram type string representation- Returns:
true
if this diagram type is equal to given diagram type; otherwise -false
.- See Also:
-
isTypeOf
Checks if diagram type is of given diagram type (analogy ofinstanceof
operator)- Parameters:
type
- diagram type.- Returns:
true
if this diagram type is a 'subtype' of given diagram type or equal to given diagram type; otherwise -false
.- See Also:
-
isTypeOf
Checks if diagram type is of given diagram type (analogy ofinstanceof
operator)- Specified by:
isTypeOf
in classAbstractDiagramType
- Parameters:
type
- diagram type string representation.- Returns:
true
if this diagram type is a 'subtype' of given diagram type or equal to given diagram type; otherwise -false
.- See Also:
-
getRootType
Returns root type of this diagram type.- Returns:
- root type.
-
clone
- Overrides:
clone
in classAbstractDiagramType
-
getAllDiagramTypes
Returns list of all diagram types.- Returns:
- list of all diagram types.
- See Also:
-
getCreatableDiagramTypes
Returns list of available to create (creatable) diagram types.- Returns:
- list of available to create (creatable) diagram types.
- See Also:
-
createDiagramType
Creates diagram type of given type string representation.- Parameters:
type
- diagram type string representation- Returns:
- created diagram type.
- See Also:
-
isCreatableDiagramType
Check, whether diagram type is creatable.- Parameters:
type
- diagram type string representation- Returns:
- true, if type is creatable.
- See Also:
-