Package org.eclipse.aether.util.artifact
Class DelegatingArtifact
java.lang.Object
org.eclipse.aether.artifact.AbstractArtifact
org.eclipse.aether.util.artifact.DelegatingArtifact
- All Implemented Interfaces:
org.eclipse.aether.artifact.Artifact
An artifact that delegates to another artifact instance. This class serves as a base for subclasses that want to
carry additional data fields.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDelegatingArtifact(org.eclipse.aether.artifact.Artifact delegate) Creates a new artifact instance that delegates to the specified artifact. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetFile()Deprecated.getPath()getProperty(String key, String defaultValue) inthashCode()booleanprotected abstract DelegatingArtifactnewInstance(org.eclipse.aether.artifact.Artifact delegate) Creates a new artifact instance that delegates to the specified artifact.org.eclipse.aether.artifact.ArtifactDeprecated.org.eclipse.aether.artifact.Artifactorg.eclipse.aether.artifact.ArtifactsetProperties(Map<String, String> properties) org.eclipse.aether.artifact.ArtifactsetVersion(String version) toString()Methods inherited from class org.eclipse.aether.artifact.AbstractArtifact
copyProperties
-
Constructor Details
-
DelegatingArtifact
Creates a new artifact instance that delegates to the specified artifact.- Parameters:
delegate- the artifact to delegate to, must not benull
-
-
Method Details
-
newInstance
Creates a new artifact instance that delegates to the specified artifact. Subclasses should use this hook to instantiate themselves, taking along any data from the current instance that was added.- Parameters:
delegate- the artifact to delegate to, must not benull- Returns:
- the new delegating artifact, never
null
-
getGroupId
-
getArtifactId
-
getVersion
-
setVersion
- Specified by:
setVersionin interfaceorg.eclipse.aether.artifact.Artifact- Overrides:
setVersionin classorg.eclipse.aether.artifact.AbstractArtifact
-
getBaseVersion
- Specified by:
getBaseVersionin interfaceorg.eclipse.aether.artifact.Artifact- Overrides:
getBaseVersionin classorg.eclipse.aether.artifact.AbstractArtifact
-
isSnapshot
- Specified by:
isSnapshotin interfaceorg.eclipse.aether.artifact.Artifact- Overrides:
isSnapshotin classorg.eclipse.aether.artifact.AbstractArtifact
-
getClassifier
-
getExtension
-
getFile
Deprecated. -
getPath
- Specified by:
getPathin interfaceorg.eclipse.aether.artifact.Artifact- Overrides:
getPathin classorg.eclipse.aether.artifact.AbstractArtifact
-
setFile
Deprecated.- Specified by:
setFilein interfaceorg.eclipse.aether.artifact.Artifact- Overrides:
setFilein classorg.eclipse.aether.artifact.AbstractArtifact
-
setPath
- Specified by:
setPathin interfaceorg.eclipse.aether.artifact.Artifact- Overrides:
setPathin classorg.eclipse.aether.artifact.AbstractArtifact
-
getProperty
- Specified by:
getPropertyin interfaceorg.eclipse.aether.artifact.Artifact- Overrides:
getPropertyin classorg.eclipse.aether.artifact.AbstractArtifact
-
getProperties
-
setProperties
- Specified by:
setPropertiesin interfaceorg.eclipse.aether.artifact.Artifact- Overrides:
setPropertiesin classorg.eclipse.aether.artifact.AbstractArtifact
-
equals
- Overrides:
equalsin classorg.eclipse.aether.artifact.AbstractArtifact
-
hashCode
- Overrides:
hashCodein classorg.eclipse.aether.artifact.AbstractArtifact
-
toString
- Overrides:
toStringin classorg.eclipse.aether.artifact.AbstractArtifact
-