Class ModelInfo
java.lang.Object
de.iip_ecosphere.platform.configuration.ModelInfo
General introspective information about the (meta-)model.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanReturns whetherfoldercontains a file with namefile.static StringgetCommentSafe(net.ssehub.easy.varModel.model.ModelElement elt) Returns the comment ofelt.static StringgetFileName(net.ssehub.easy.varModel.model.Project prj) Returns the conventional file name of a project.static LocaleReturns the actual local.static booleanhasComment(net.ssehub.easy.varModel.model.ModelElement elt) Returns whetherelthas a comment/description.static booleanisMetaProject(net.ssehub.easy.varModel.model.Project prj) Returns whetherprjis a meta project, i.e., one defining the IIPEcosphere meta model.
-
Field Details
-
metaProjects
-
-
Constructor Details
-
ModelInfo
public ModelInfo()
-
-
Method Details
-
getFileName
Returns the conventional file name of a project.- Parameters:
prj- the project- Returns:
- the file name
-
isMetaProject
public static boolean isMetaProject(net.ssehub.easy.varModel.model.Project prj) Returns whetherprjis a meta project, i.e., one defining the IIPEcosphere meta model.- Parameters:
prj- the project to check- Returns:
truefor meta project,falseif it is no meta but probably a configuration project.
-
contains
Returns whetherfoldercontains a file with namefile.- Parameters:
folder- the folderfile- the file name- Returns:
trueiffoldercontains a file with namefile,falseelse
-
hasComment
public static boolean hasComment(net.ssehub.easy.varModel.model.ModelElement elt) Returns whetherelthas a comment/description.- Parameters:
elt- the element to look for- Returns:
- the comment
- See Also:
-
getCommentSafe
Returns the comment ofelt.- Parameters:
elt- the comment- Returns:
- the comment, may be empty for none
-
getLocale
Returns the actual local.- Returns:
- the locale
-