Class MavenArtifact

    • Constructor Detail

      • MavenArtifact

        public MavenArtifact()
        Initializes the string with length 0.
      • MavenArtifact

        public MavenArtifact​(String s)
        Initializes the object with the string to parse.
        Parameters:
        s - the string to parse
      • MavenArtifact

        public MavenArtifact​(String groupId,
                             String artifactId,
                             String version)
        Initializes the object with the artifact coordinates.
        Parameters:
        groupId - the group ID
        artifactId - the artifact ID
        version - the version
    • Method Detail

      • isValid

        public boolean isValid​(String value)
        Checks whether the string value is a valid presentation for this class.
        Overrides:
        isValid in class AbstractBaseString
        Parameters:
        value - the string value to check
        Returns:
        true if non-null
      • getPart

        protected String getPart​(int index)
        Returns the specified part of the coordinate triplet.
        Parameters:
        index - the index from the triplet to return
        Returns:
        the value or empty string if invalid string or index
      • groupIdValue

        public String groupIdValue()
        Returns the group ID part, if possible.
        Returns:
        the group ID
      • artifactIdValue

        public String artifactIdValue()
        Returns the artifact ID part, if possible.
        Returns:
        the artifact ID
      • versionValue

        public String versionValue()
        Returns the version part, if possible.
        Returns:
        the version
      • getTipText

        public String getTipText()
        Returns a tool tip for the GUI editor (ignored if null is returned).
        Specified by:
        getTipText in class AbstractBaseString
        Returns:
        the tool tip