Class DefaultModelBuildingResult

    • Field Detail

      • effectiveModel

        private Model effectiveModel
      • modelIds

        private java.util.List<java.lang.String> modelIds
      • rawModels

        private java.util.Map<java.lang.String,​Model> rawModels
      • activePomProfiles

        private java.util.Map<java.lang.String,​java.util.List<Profile>> activePomProfiles
      • activeExternalProfiles

        private java.util.List<Profile> activeExternalProfiles
    • Constructor Detail

      • DefaultModelBuildingResult

        DefaultModelBuildingResult()
    • Method Detail

      • getModelIds

        public java.util.List<java.lang.String> getModelIds()
        Description copied from interface: ModelBuildingResult
        Gets the sequence of model identifiers that denote the lineage of models from which the effective model was constructed. Model identifiers have the form <groupId>:<artifactId>:<version>. The first identifier from the list denotes the model on which the model builder was originally invoked. The last identifier will always be an empty string that by definition denotes the super POM.
        Specified by:
        getModelIds in interface ModelBuildingResult
        Returns:
        The model identifiers from the lineage of models, never null.
      • getRawModel

        public Model getRawModel()
        Description copied from interface: ModelBuildingResult
        Gets the raw model as it was read from the input model source. Apart from basic validation, the raw model has not undergone any updates by the model builder, e.g. reflects neither inheritance nor interpolation.
        Specified by:
        getRawModel in interface ModelBuildingResult
        Returns:
        The raw model, never null.
      • getRawModel

        public Model getRawModel​(java.lang.String modelId)
        Description copied from interface: ModelBuildingResult
        Gets the specified raw model as it was read from a model source. Apart from basic validation, a raw model has not undergone any updates by the model builder, e.g. reflects neither inheritance nor interpolation. The model identifier should be from the collection obtained by ModelBuildingResult.getModelIds(). As a special case, an empty string can be used as the identifier for the super POM.
        Specified by:
        getRawModel in interface ModelBuildingResult
        Parameters:
        modelId - The identifier of the desired raw model, must not be null.
        Returns:
        The raw model or null if the specified model id does not refer to a known model.
      • getActivePomProfiles

        public java.util.List<Profile> getActivePomProfiles​(java.lang.String modelId)
        Description copied from interface: ModelBuildingResult
        Gets the profiles from the specified model that were active during model building. The model identifier should be from the collection obtained by ModelBuildingResult.getModelIds(). As a special case, an empty string can be used as the identifier for the super POM.
        Specified by:
        getActivePomProfiles in interface ModelBuildingResult
        Parameters:
        modelId - The identifier of the model whose active profiles should be retrieved, must not be null.
        Returns:
        The active profiles of the model or an empty list if none or null if the specified model id does not refer to a known model.