Class ModelInfo
- java.lang.Object
-
- de.iip_ecosphere.platform.configuration.ModelInfo
-
public class ModelInfo extends java.lang.ObjectGeneral introspective information about the (meta-)model.- Author:
- Holger Eichelberger, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<net.ssehub.easy.varModel.model.Project,java.lang.Boolean>metaProjects
-
Constructor Summary
Constructors Constructor Description ModelInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static booleancontains(java.io.File folder, java.lang.String file)Returns whetherfoldercontains a file with namefile.static java.lang.StringgetCommentSafe(net.ssehub.easy.varModel.model.ModelElement elt)Returns the comment ofelt.static java.lang.StringgetFileName(net.ssehub.easy.varModel.model.Project prj)Returns the conventional file name of a project.static java.util.LocalegetLocale()Returns 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.
-
-
-
Method Detail
-
getFileName
public static java.lang.String getFileName(net.ssehub.easy.varModel.model.Project prj)
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
private static boolean contains(java.io.File folder, java.lang.String file)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(ModelElement)
-
getCommentSafe
public static java.lang.String getCommentSafe(net.ssehub.easy.varModel.model.ModelElement elt)
Returns the comment ofelt.- Parameters:
elt- the comment- Returns:
- the comment, may be empty for none
-
getLocale
public static java.util.Locale getLocale()
Returns the actual local.- Returns:
- the locale
-
-