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
ModifierConstructorDescriptionprotected
DelegatingArtifact
(org.eclipse.aether.artifact.Artifact delegate) Creates a new artifact instance that delegates to the specified artifact. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getFile()
Deprecated.getPath()
getProperty
(String key, String defaultValue) int
hashCode()
boolean
protected abstract DelegatingArtifact
newInstance
(org.eclipse.aether.artifact.Artifact delegate) Creates a new artifact instance that delegates to the specified artifact.org.eclipse.aether.artifact.Artifact
Deprecated.org.eclipse.aether.artifact.Artifact
org.eclipse.aether.artifact.Artifact
setProperties
(Map<String, String> properties) org.eclipse.aether.artifact.Artifact
setVersion
(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:
setVersion
in interfaceorg.eclipse.aether.artifact.Artifact
- Overrides:
setVersion
in classorg.eclipse.aether.artifact.AbstractArtifact
-
getBaseVersion
- Specified by:
getBaseVersion
in interfaceorg.eclipse.aether.artifact.Artifact
- Overrides:
getBaseVersion
in classorg.eclipse.aether.artifact.AbstractArtifact
-
isSnapshot
- Specified by:
isSnapshot
in interfaceorg.eclipse.aether.artifact.Artifact
- Overrides:
isSnapshot
in classorg.eclipse.aether.artifact.AbstractArtifact
-
getClassifier
-
getExtension
-
getFile
Deprecated. -
getPath
- Specified by:
getPath
in interfaceorg.eclipse.aether.artifact.Artifact
- Overrides:
getPath
in classorg.eclipse.aether.artifact.AbstractArtifact
-
setFile
Deprecated.- Specified by:
setFile
in interfaceorg.eclipse.aether.artifact.Artifact
- Overrides:
setFile
in classorg.eclipse.aether.artifact.AbstractArtifact
-
setPath
- Specified by:
setPath
in interfaceorg.eclipse.aether.artifact.Artifact
- Overrides:
setPath
in classorg.eclipse.aether.artifact.AbstractArtifact
-
getProperty
- Specified by:
getProperty
in interfaceorg.eclipse.aether.artifact.Artifact
- Overrides:
getProperty
in classorg.eclipse.aether.artifact.AbstractArtifact
-
getProperties
-
setProperties
- Specified by:
setProperties
in interfaceorg.eclipse.aether.artifact.Artifact
- Overrides:
setProperties
in classorg.eclipse.aether.artifact.AbstractArtifact
-
equals
- Overrides:
equals
in classorg.eclipse.aether.artifact.AbstractArtifact
-
hashCode
- Overrides:
hashCode
in classorg.eclipse.aether.artifact.AbstractArtifact
-
toString
- Overrides:
toString
in classorg.eclipse.aether.artifact.AbstractArtifact
-