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.Cloneable
DiagramType
-
-
Constructor Summary
Constructors Constructor Description AbstractDiagramType()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AbstractDiagramType
clone()
abstract java.lang.String
getStandardType()
abstract java.lang.String
getType()
abstract boolean
isTypeOf(java.lang.String type)
boolean
isTypeOf(java.util.List<java.lang.String> types)
Checks if diagram type is of given diagram type (analogy ofinstanceof
operator)
-
-
-
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 ofinstanceof
operator)- Parameters:
types
- the list of diagram type string representation.- Returns:
true
if 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:
clone
in classjava.lang.Object
-
getType
public abstract java.lang.String getType()
-
getStandardType
public abstract java.lang.String getStandardType()
-
-