Class Imports<M extends Script>
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.common.Imports<M>
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.Imports<M>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ModelImport<Template>>vtlRestrictions
-
Constructor Summary
Constructors Constructor Description Imports()Constructor for serializer.Imports(java.util.List<ModelImport<M>> imports, java.util.List<ModelImport<Template>> vtlRestrictions)Creates an imports instance.Imports(Imports<M> imports, java.util.List<ModelImport<Template>> vtlRestrictions)Creates an imports instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelImport<Template>getVtlRestriction(int index)Returns the specified VTL restriction.intgetVtlRestrictionsCount()Returns the number of VTL restrictions.-
Methods inherited from class net.ssehub.easy.instantiation.core.model.common.Imports
add, getImport, getImport, getImportsCount
-
-
-
-
Field Detail
-
vtlRestrictions
private java.util.List<ModelImport<Template>> vtlRestrictions
-
-
Constructor Detail
-
Imports
Imports()
Constructor for serializer.
-
Imports
public Imports(java.util.List<ModelImport<M>> imports, java.util.List<ModelImport<Template>> vtlRestrictions)
Creates an imports instance.- Parameters:
imports- the actual importsvtlRestrictions- the VTL restrictions (may be null)
-
Imports
public Imports(Imports<M> imports, java.util.List<ModelImport<Template>> vtlRestrictions)
Creates an imports instance.- Parameters:
imports- the actual importsvtlRestrictions- the VTL restrictions (may be null)
-
-
Method Detail
-
getVtlRestrictionsCount
public int getVtlRestrictionsCount()
Returns the number of VTL restrictions.- Returns:
- the number of VTL restrictions
-
getVtlRestriction
public ModelImport<Template> getVtlRestriction(int index)
Returns the specified VTL restriction.- Parameters:
index- the 0-based index of the VTL restriction- Returns:
- the specified model import
- Throws:
java.lang.IndexOutOfBoundsException- ifindex < 0 || index >=getVtlRestrictionsCount()
-
-