Class Imports<M extends Script>

  • Type Parameters:
    M - the actual model type

    public class Imports<M extends Script>
    extends Imports<M>
    Stores the model imports and VTL requirements for a Script.
    Author:
    Holger Eichelberger
    • 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 imports
        vtlRestrictions - 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 imports
        vtlRestrictions - 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 - if index < 0 || index >=getVtlRestrictionsCount()