@OpenApi public class DiagramType extends java.lang.Object implements java.lang.Cloneable, DiagramTypeConstants
DiagramType class represents the diagram typeCONTENT_DIAGRAM, DEPENDENCY_MATRIX, GENERIC_TABLE, GLOSSARY_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 and Description |
|---|
DiagramType(java.lang.String type)
Constructs diagram type according given diagram type string representation.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
static DiagramType |
createDiagramType(java.lang.String type)
Creates diagram type of given type string representation.
|
static java.util.List<java.lang.String> |
getAllDiagramTypes()
Returns list of all diagram types.
|
static java.util.List<java.lang.String> |
getCreatableDiagramTypes()
Returns list of available to create (creatable) diagram types.
|
static DiagramType |
getDiagramType(Diagram diagram)
Return diagram type for a given diagram
|
java.lang.String |
getRootType()
Returns root type of this diagram type.
|
java.lang.String |
getType()
Returns the diagram type string representation
|
static boolean |
isCreatableDiagramType(java.lang.String type)
Check, whether diagram type is creatable.
|
boolean |
isEqualType(DiagramType type)
Checks if diagram type is equal to given diagram type.
|
boolean |
isEqualType(java.lang.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 of
instanceof operator) |
boolean |
isTypeOf(java.util.List<java.lang.String> types)
Checks if diagram type is of given diagram type (analogy of
instanceof operator) |
boolean |
isTypeOf(java.lang.String type)
Checks if diagram type is of given diagram type (analogy of
instanceof operator) |
void |
setType(java.lang.String type)
Sets the diagram type, according given diagram type string representation
|
@OpenApi public DiagramType(java.lang.String type)
type - diagram type string representationcreateDiagramType(String),
DiagramTypeConstants,
getAllDiagramTypes(),
getCreatableDiagramTypes()@OpenApi public static DiagramType getDiagramType(Diagram diagram)
diagram - diagram@OpenApi public void setType(java.lang.String type)
type - diagram type string representationDiagramTypeConstants,
getAllDiagramTypes(),
getCreatableDiagramTypes()@OpenApi public java.lang.String getType()
DiagramTypeConstants,
getAllDiagramTypes()@OpenApi public boolean isEqualType(DiagramType type)
type - diagram typetrue if this diagram type is equal to given diagram type; otherwise - false.isTypeOf(DiagramType)@OpenApi public boolean isEqualType(java.lang.String type)
type - diagram type string representationtrue if this diagram type is equal to given diagram type; otherwise - false.DiagramTypeConstants,
getAllDiagramTypes(),
isTypeOf(String)@OpenApi public boolean isTypeOf(DiagramType type)
instanceof operator)type - diagram type.true if this diagram type is a 'subtype' of given diagram type or
equal to given diagram type; otherwise - false.isTypeOf(String)@OpenApi public boolean isTypeOf(java.util.List<java.lang.String> types)
instanceof operator)types - the list of diagram type string representation.true if this diagram type is a 'subtype' of at least one given diagram type or
equal to at least one given diagram type; othwerwise - false.DiagramTypeConstants,
getAllDiagramTypes(),
isTypeOf(DiagramType)@OpenApi public boolean isTypeOf(java.lang.String type)
instanceof operator)type - diagram type string representation.true if this diagram type is a 'subtype' of given diagram type or
equal to given diagram type; otherwise - false.DiagramTypeConstants,
getAllDiagramTypes(),
isTypeOf(DiagramType)@OpenApi public java.lang.String getRootType()
@OpenApi public java.lang.Object clone()
clone in class java.lang.Object@OpenApi public static java.util.List<java.lang.String> getAllDiagramTypes()
getCreatableDiagramTypes()@OpenApi public static java.util.List<java.lang.String> getCreatableDiagramTypes()
getAllDiagramTypes()@OpenApi public static DiagramType createDiagramType(java.lang.String type)
type - diagram type string representationDiagramTypeConstants@OpenApi public static boolean isCreatableDiagramType(java.lang.String type)
type - diagram type string representationDiagramTypeConstants