Package org.eclipse.tycho.p2.metadata
Class ArtifactFacadeProxy
- java.lang.Object
-
- org.eclipse.tycho.p2.metadata.ArtifactFacadeProxy
-
- All Implemented Interfaces:
IArtifactFacade
- Direct Known Subclasses:
WrappedArtifact
public abstract class ArtifactFacadeProxy extends java.lang.Object implements IArtifactFacade
Abstract proxy class for implementors who wish to modify some aspects of a facade. implementor should consider the following:- override
Object.toString()
to give a meaningful description of how this is different from the original and also include the proxied toString() value if suitable - override
hashCode()
andequals(Object)
in a way that is consistent with constructing the same facade with equal parameters lead to equal objects - prefer final unmodifiable class whenever possible so it is safe to use them across threads or sets
-
-
Field Summary
Fields Modifier and Type Field Description protected IArtifactFacade
proxy
-
Constructor Summary
Constructors Constructor Description ArtifactFacadeProxy(IArtifactFacade proxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getArtifactId()
java.lang.String
getClassifier()
java.lang.String
getGroupId()
java.io.File
getLocation()
java.lang.String
getPackagingType()
java.lang.String
getVersion()
int
hashCode()
-
-
-
Field Detail
-
proxy
protected final IArtifactFacade proxy
-
-
Constructor Detail
-
ArtifactFacadeProxy
public ArtifactFacadeProxy(IArtifactFacade proxy)
-
-
Method Detail
-
getLocation
public java.io.File getLocation()
- Specified by:
getLocation
in interfaceIArtifactFacade
-
getGroupId
public java.lang.String getGroupId()
- Specified by:
getGroupId
in interfaceIArtifactFacade
-
getArtifactId
public java.lang.String getArtifactId()
- Specified by:
getArtifactId
in interfaceIArtifactFacade
-
getClassifier
public java.lang.String getClassifier()
- Specified by:
getClassifier
in interfaceIArtifactFacade
-
getVersion
public java.lang.String getVersion()
- Specified by:
getVersion
in interfaceIArtifactFacade
-
getPackagingType
public java.lang.String getPackagingType()
- Specified by:
getPackagingType
in interfaceIArtifactFacade
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-