Class ModelElementTypeFinder.ModelElementDescription
- java.lang.Object
-
- net.ssehub.easy.varModel.model.filter.ModelElementTypeFinder.ModelElementDescription
-
- Enclosing class:
- ModelElementTypeFinder
public class ModelElementTypeFinder.ModelElementDescription extends java.lang.ObjectThis inner class is used as return type of the outerModelElementTypeFinderthat stores the relevant information (name, type, and class) of the model element found in aProject. This information can be used to identify this model element in an IVML-file for efficiently by searching only the relevant part of the corresponding parse tree.- Author:
- kroeher
-
-
Field Summary
Fields Modifier and Type Field Description private ModelElementTypeFinder.ClassTypeelementClassStores the class the model element is an instance of.private java.lang.StringelementNameStores the name of the model element.private java.lang.StringelementTypeStores the type of the model element.
-
Constructor Summary
Constructors Constructor Description ModelElementDescription(java.lang.String name, java.lang.String type, ModelElementTypeFinder.ClassType clazz)Constructs anModelElementTypeFinder.ModelElementDescriptionthat provides the name, type and class of a model element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelElementTypeFinder.ClassTypegetElementClass()Returns the class of the model element thisModelElementTypeFinder.ModelElementDescriptiondescribes.java.lang.StringgetElementName()Returns the name of the model element thisModelElementTypeFinder.ModelElementDescriptiondescribes.java.lang.StringgetElementType()Returns the type of the model element thisModelElementTypeFinder.ModelElementDescriptiondescribes.
-
-
-
Field Detail
-
elementName
private java.lang.String elementName
Stores the name of the model element.
-
elementType
private java.lang.String elementType
Stores the type of the model element.
-
elementClass
private ModelElementTypeFinder.ClassType elementClass
Stores the class the model element is an instance of.
-
-
Constructor Detail
-
ModelElementDescription
public ModelElementDescription(java.lang.String name, java.lang.String type, ModelElementTypeFinder.ClassType clazz)Constructs anModelElementTypeFinder.ModelElementDescriptionthat provides the name, type and class of a model element.- Parameters:
name- the name of the model element as aStringtype- the type of the model element as aStringclazz- the class the model element is an instance of as aString
-
-
Method Detail
-
getElementName
public java.lang.String getElementName()
Returns the name of the model element thisModelElementTypeFinder.ModelElementDescriptiondescribes.- Returns:
- the name of the model element as a
String
-
getElementType
public java.lang.String getElementType()
Returns the type of the model element thisModelElementTypeFinder.ModelElementDescriptiondescribes.- Returns:
- the type of the model element as a
String
-
getElementClass
public ModelElementTypeFinder.ClassType getElementClass()
Returns the class of the model element thisModelElementTypeFinder.ModelElementDescriptiondescribes.- Returns:
- the
ModelElementTypeFinder.ClassTypethe the model element is an instance of
-
-