Package com.nomagic.magicdraw.uml
Class AbstractDiagramType
- java.lang.Object
-
- com.nomagic.magicdraw.uml.AbstractDiagramType
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
DiagramType
@OpenApiAll public abstract class AbstractDiagramType extends java.lang.Object implements java.lang.CloneableDiagramType
-
-
Constructor Summary
Constructors Constructor Description AbstractDiagramType()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AbstractDiagramTypeclone()abstract java.lang.StringgetType()abstract booleanisTypeOf(java.lang.String type)booleanisTypeOf(java.util.List<java.lang.String> types)Checks if diagram type is of given diagram type (analogy ofinstanceofoperator)
-
-
-
Method Detail
-
isTypeOf
public abstract boolean isTypeOf(java.lang.String type)
-
isTypeOf
public final boolean isTypeOf(java.util.List<java.lang.String> types)
Checks if diagram type is of given diagram type (analogy ofinstanceofoperator)- Parameters:
types- the list of diagram type string representation.- Returns:
trueif this diagram type is a 'subtype' of at least one given diagram type or equal to at least one given diagram type; otherwise -false.- See Also:
isTypeOf(String)
-
clone
@OpenApi public AbstractDiagramType clone()
- Overrides:
clonein classjava.lang.Object
-
getType
public abstract java.lang.String getType()
-
-