Package org.apache.maven.classrealm
Class ArtifactClassRealmConstituent
- java.lang.Object
-
- org.apache.maven.classrealm.ArtifactClassRealmConstituent
-
- All Implemented Interfaces:
ClassRealmConstituent
class ArtifactClassRealmConstituent extends java.lang.Object implements ClassRealmConstituent
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.aether.artifact.Artifact
artifact
-
Constructor Summary
Constructors Constructor Description ArtifactClassRealmConstituent(org.eclipse.aether.artifact.Artifact artifact)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getArtifactId()
Gets the artifact id of the constituent's artifact.java.lang.String
getClassifier()
Gets the classifier of the constituent's artifact.java.io.File
getFile()
Gets the file of the constituent's artifact.java.lang.String
getGroupId()
Gets the group id of the constituent's artifact.java.lang.String
getType()
Gets the type of the constituent's artifact.java.lang.String
getVersion()
Gets the version of the constituent's artifact.java.lang.String
toString()
-
-
-
Method Detail
-
getGroupId
public java.lang.String getGroupId()
Description copied from interface:ClassRealmConstituent
Gets the group id of the constituent's artifact.- Specified by:
getGroupId
in interfaceClassRealmConstituent
- Returns:
- The group id, never
null
.
-
getArtifactId
public java.lang.String getArtifactId()
Description copied from interface:ClassRealmConstituent
Gets the artifact id of the constituent's artifact.- Specified by:
getArtifactId
in interfaceClassRealmConstituent
- Returns:
- The artifact id, never
null
.
-
getType
public java.lang.String getType()
Description copied from interface:ClassRealmConstituent
Gets the type of the constituent's artifact.- Specified by:
getType
in interfaceClassRealmConstituent
- Returns:
- The type, never
null
.
-
getClassifier
public java.lang.String getClassifier()
Description copied from interface:ClassRealmConstituent
Gets the classifier of the constituent's artifact.- Specified by:
getClassifier
in interfaceClassRealmConstituent
- Returns:
- The classifier or an empty string, never
null
.
-
getVersion
public java.lang.String getVersion()
Description copied from interface:ClassRealmConstituent
Gets the version of the constituent's artifact.- Specified by:
getVersion
in interfaceClassRealmConstituent
- Returns:
- The version, never
null
.
-
getFile
public java.io.File getFile()
Description copied from interface:ClassRealmConstituent
Gets the file of the constituent's artifact.- Specified by:
getFile
in interfaceClassRealmConstituent
- Returns:
- The file, never
null
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-