Class Metadata

    • Constructor Detail

      • Metadata

        public Metadata()
    • Method Detail

      • addPlugin

        public void addPlugin​(Plugin plugin)
        Method addPlugin.
        Parameters:
        plugin - a plugin object.
      • clone

        public Metadata clone()
        Method clone.
        Overrides:
        clone in class Object
        Returns:
        Metadata
      • getArtifactId

        public String getArtifactId()
        Get the artifactId when this directory represents "groupId/artifactId" or "groupId/artifactId/version".
        Returns:
        String
      • getGroupId

        public String getGroupId()
        Get the groupId when this directory represents "groupId/artifactId" or "groupId/artifactId/version".
        Returns:
        String
      • getModelEncoding

        public String getModelEncoding()
        Get the modelEncoding field.
        Returns:
        String
      • getModelVersion

        public String getModelVersion()
        Get the version of the underlying metadata model.
        Returns:
        String
      • getPlugins

        public List<Plugin> getPlugins()
        Method getPlugins.
        Returns:
        List
      • getVersion

        public String getVersion()
        Get the base version (ie. ending in -SNAPSHOT) when this directory represents a "groupId/artifactId/version" for a SNAPSHOT.
        Returns:
        String
      • getVersioning

        public Versioning getVersioning()
        Get versioning information when this directory represents "groupId/artifactId" or "groupId/artifactId/version".
        Returns:
        Versioning
      • removePlugin

        public void removePlugin​(Plugin plugin)
        Method removePlugin.
        Parameters:
        plugin - a plugin object.
      • setArtifactId

        public void setArtifactId​(String artifactId)
        Set the artifactId when this directory represents "groupId/artifactId" or "groupId/artifactId/version".
        Parameters:
        artifactId - a artifactId object.
      • setGroupId

        public void setGroupId​(String groupId)
        Set the groupId when this directory represents "groupId/artifactId" or "groupId/artifactId/version".
        Parameters:
        groupId - a groupId object.
      • setModelEncoding

        public void setModelEncoding​(String modelEncoding)
        Set the modelEncoding field.
        Parameters:
        modelEncoding - a modelEncoding object.
      • setModelVersion

        public void setModelVersion​(String modelVersion)
        Set the version of the underlying metadata model.
        Parameters:
        modelVersion - a modelVersion object.
      • setPlugins

        public void setPlugins​(List<Plugin> plugins)
        Set the set of plugins when this directory represents a "groupId".
        Parameters:
        plugins - a plugins object.
      • setVersion

        public void setVersion​(String version)
        Set the base version (ie. ending in -SNAPSHOT) when this directory represents a "groupId/artifactId/version" for a SNAPSHOT.
        Parameters:
        version - a version object.
      • setVersioning

        public void setVersioning​(Versioning versioning)
        Set versioning information when this directory represents "groupId/artifactId" or "groupId/artifactId/version".
        Parameters:
        versioning - a versioning object.
      • merge

        public boolean merge​(Metadata sourceMetadata)