Class ArtifactInfo

java.lang.Object
org.apache.maven.index.ArtifactInfoRecord
org.apache.maven.index.ArtifactInfo
All Implemented Interfaces:
Serializable

public class ArtifactInfo extends ArtifactInfoRecord
ArtifactInfo holds the values known about an repository artifact. This is a simple Value Object kind of stuff. Phasing out.
Author:
Jason van Zyl, Eugene Kuleshov
See Also:
  • Field Details

    • ROOT_GROUPS

      public static final String ROOT_GROUPS
      See Also:
    • ROOT_GROUPS_VALUE

      public static final String ROOT_GROUPS_VALUE
      See Also:
    • ROOT_GROUPS_LIST

      public static final String ROOT_GROUPS_LIST
      See Also:
    • ALL_GROUPS

      public static final String ALL_GROUPS
      See Also:
    • ALL_GROUPS_VALUE

      public static final String ALL_GROUPS_VALUE
      See Also:
    • ALL_GROUPS_LIST

      public static final String ALL_GROUPS_LIST
      See Also:
    • UINFO

      public static final String UINFO
      Unique groupId, artifactId, version, classifier, extension (or packaging). Stored, indexed untokenized
    • DELETED

      public static final String DELETED
      Field that contains UINFO value for deleted artifact
    • GROUP_ID

      public static final String GROUP_ID
      GroupId. Not stored, indexed untokenized
    • ARTIFACT_ID

      public static final String ARTIFACT_ID
      ArtifactId. Not stored, indexed tokenized
    • VERSION

      public static final String VERSION
      Version. Not stored, indexed tokenized
    • PACKAGING

      public static final String PACKAGING
      Packaging. Not stored, indexed untokenized
    • CLASSIFIER

      public static final String CLASSIFIER
      Classifier. Not stored, indexed untokenized
    • INFO

      public static final String INFO
      Info: packaging, lastModified, size, sourcesExists, javadocExists, signatureExists. Stored, not indexed.
    • NAME

      public static final String NAME
      Name. Stored, not indexed
    • DESCRIPTION

      public static final String DESCRIPTION
      Description. Stored, not indexed
    • LAST_MODIFIED

      public static final String LAST_MODIFIED
      Last modified. Stored, not indexed
    • SHA1

      public static final String SHA1
      SHA1. Stored, indexed untokenized
    • NAMES

      public static final String NAMES
      Class names Stored compressed, indexed tokenized
    • PLUGIN_PREFIX

      public static final String PLUGIN_PREFIX
      Plugin prefix. Stored, not indexed
    • PLUGIN_GOALS

      public static final String PLUGIN_GOALS
      Plugin goals. Stored, not indexed
    • BUNDLE_SYMBOLIC_NAME

      public static final String BUNDLE_SYMBOLIC_NAME
      Since:
      1.4.2
    • BUNDLE_VERSION

      public static final String BUNDLE_VERSION
      Since:
      1.4.2
    • BUNDLE_EXPORT_PACKAGE

      public static final String BUNDLE_EXPORT_PACKAGE
      Since:
      1.4.2
    • BUNDLE_PROVIDE_CAPABILITY

      public static final String BUNDLE_PROVIDE_CAPABILITY
      OSGI Provide-Capability header
      Since:
      5.1.2
    • BUNDLE_REQUIRE_CAPABILITY

      public static final String BUNDLE_REQUIRE_CAPABILITY
      OSGI Provide-Capability header
      Since:
      5.1.2
    • VERSION_COMPARATOR

      public static final Comparator<ArtifactInfo> VERSION_COMPARATOR
    • REPOSITORY_VERSION_COMPARATOR

      public static final Comparator<ArtifactInfo> REPOSITORY_VERSION_COMPARATOR
    • CONTEXT_VERSION_COMPARATOR

      public static final Comparator<ArtifactInfo> CONTEXT_VERSION_COMPARATOR
  • Constructor Details

    • ArtifactInfo

      public ArtifactInfo()
    • ArtifactInfo

      public ArtifactInfo(String repository, String groupId, String artifactId, String version, String classifier, String extension)
  • Method Details

    • getArtifactVersion

      public org.eclipse.aether.version.Version getArtifactVersion()
    • getLuceneScore

      public float getLuceneScore()
    • setLuceneScore

      public void setLuceneScore(float score)
    • getUinfo

      public String getUinfo()
    • getRootGroup

      public String getRootGroup()
    • calculateGav

      public Gav calculateGav()
    • getAttributes

      public Map<String,String> getAttributes()
    • getMatchHighlights

      public List<MatchHighlight> getMatchHighlights()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getFields

      public Collection<Field> getFields()
    • getFieldValue

      public String getFieldValue(Field field)
      This method will disappear, once we drop ArtifactInfo.
      Parameters:
      field -
      Returns:
    • setFieldValue

      public ArtifactInfo setFieldValue(Field field, String value)
    • nvl

      public static String nvl(String v)
    • renvl

      public static String renvl(String v)
    • lst2str

      public static String lst2str(Collection<String> list)
    • str2lst

      public static List<String> str2lst(String str)
    • getFileName

      public String getFileName()
    • setFileName

      public void setFileName(String fileName)
    • getFileExtension

      public String getFileExtension()
    • setFileExtension

      public void setFileExtension(String fileExtension)
    • getGroupId

      public String getGroupId()
    • setGroupId

      public void setGroupId(String groupId)
    • getArtifactId

      public String getArtifactId()
    • setArtifactId

      public void setArtifactId(String artifactId)
    • getVersion

      public String getVersion()
    • setVersion

      public void setVersion(String version)
    • setArtifactVersion

      public void setArtifactVersion(org.eclipse.aether.version.Version artifactVersion)
    • getClassifier

      public String getClassifier()
    • setClassifier

      public void setClassifier(String classifier)
    • getPackaging

      public String getPackaging()
    • setPackaging

      public void setPackaging(String packaging)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getLastModified

      public long getLastModified()
    • setLastModified

      public void setLastModified(long lastModified)
    • getSize

      public long getSize()
    • setSize

      public void setSize(long size)
    • getMd5

      public String getMd5()
    • setMd5

      public void setMd5(String md5)
    • getSha1

      public String getSha1()
    • setSha1

      public void setSha1(String sha1)
    • getSourcesExists

      public ArtifactAvailability getSourcesExists()
    • setSourcesExists

      public void setSourcesExists(ArtifactAvailability sourcesExists)
    • getJavadocExists

      public ArtifactAvailability getJavadocExists()
    • setJavadocExists

      public void setJavadocExists(ArtifactAvailability javadocExists)
    • getSignatureExists

      public ArtifactAvailability getSignatureExists()
    • setSignatureExists

      public void setSignatureExists(ArtifactAvailability signatureExists)
    • getClassNames

      public String getClassNames()
    • setClassNames

      public void setClassNames(String classNames)
    • getRepository

      public String getRepository()
    • setRepository

      public void setRepository(String repository)
    • getPath

      public String getPath()
    • setPath

      public void setPath(String path)
    • getRemoteUrl

      public String getRemoteUrl()
    • setRemoteUrl

      public void setRemoteUrl(String remoteUrl)
    • getContext

      public String getContext()
    • setContext

      public void setContext(String context)
    • getPrefix

      public String getPrefix()
    • setPrefix

      public void setPrefix(String prefix)
    • getGoals

      public List<String> getGoals()
    • setGoals

      public void setGoals(List<String> goals)
    • getBundleVersion

      public String getBundleVersion()
    • setBundleVersion

      public void setBundleVersion(String bundleVersion)
    • getBundleSymbolicName

      public String getBundleSymbolicName()
    • setBundleSymbolicName

      public void setBundleSymbolicName(String bundleSymbolicName)
    • getBundleExportPackage

      public String getBundleExportPackage()
    • setBundleExportPackage

      public void setBundleExportPackage(String bundleExportPackage)
    • getBundleExportService

      public String getBundleExportService()
    • setBundleExportService

      public void setBundleExportService(String bundleExportService)
    • getBundleDescription

      public String getBundleDescription()
    • setBundleDescription

      public void setBundleDescription(String bundleDescription)
    • getBundleName

      public String getBundleName()
    • setBundleName

      public void setBundleName(String bundleName)
    • getBundleLicense

      public String getBundleLicense()
    • setBundleLicense

      public void setBundleLicense(String bundleLicense)
    • getBundleDocUrl

      public String getBundleDocUrl()
    • setBundleDocUrl

      public void setBundleDocUrl(String bundleDocUrl)
    • getBundleImportPackage

      public String getBundleImportPackage()
    • setBundleImportPackage

      public void setBundleImportPackage(String bundleImportPackage)
    • getBundleRequireBundle

      public String getBundleRequireBundle()
    • setBundleRequireBundle

      public void setBundleRequireBundle(String bundleRequireBundle)
    • getVersionScheme

      public org.eclipse.aether.version.VersionScheme getVersionScheme()
    • setFields

      public void setFields(List<Field> fields)
    • getBundleProvideCapability

      public String getBundleProvideCapability()
    • setBundleProvideCapability

      public void setBundleProvideCapability(String bundleProvideCapability)
    • getBundleRequireCapability

      public String getBundleRequireCapability()
    • setBundleRequireCapability

      public void setBundleRequireCapability(String bundleRequireCapability)
    • getSha256

      public String getSha256()
    • setSha256

      public void setSha256(String sha256)
    • getBundleFragmentHost

      public String getBundleFragmentHost()
    • setBundleFragmentHost

      public void setBundleFragmentHost(String bundleFragmentHost)
    • getBundleRequiredExecutionEnvironment

      public String getBundleRequiredExecutionEnvironment()
    • setBundleRequiredExecutionEnvironment

      public void setBundleRequiredExecutionEnvironment(String bundleRequiredExecutionEnvironment)