Class APkg
java.lang.Object
de.monticore.generating.templateengine.reporting.artifacts.model.APkg
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanMaps fullName of Element (Element.getFullName()) to ElementMaps name of subpackage to subpackage -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
subPkgs
Maps name of subpackage to subpackage -
elements
Maps fullName of Element (Element.getFullName()) to Element -
containsNonFileElement
protected boolean containsNonFileElement
-
-
Constructor Details
-
APkg
public APkg()
-
-
Method Details
-
addElement
Add the provided element to this package. It can only exist one element per fullName (Element.getFullName())- Parameters:
e-
-
getElements
-
getQualifiedName
- Returns:
- The QualifiedName (Name without FileExtension)
-
addSubPkg
-
getSubPkgs
- Returns:
-
hasElements
public boolean hasElements()- Returns:
-
getPkg
returns the APkg representing the path. If path is empty, the this, if no package for the given path exists, create all required Pkgs.- Parameters:
path-- Returns:
-
resolve
Resolves the associated element and increments the number of calls for this element;- Parameters:
packageName-simpleName-extension-- Returns:
- the associated element or null if such an element does not exist
-
resolveAncestorWithElements
- Returns:
- the next ancestor pkg which has elements, or null such pkg does not exist.
-
containsNonFileElement
public boolean containsNonFileElement()- Returns:
- containsNonFileElement
-