public class ArtifactPackagingElement extends ComplexPackagingElement<ArtifactPackagingElement.ArtifactPackagingElementState>
Modifier and Type | Class and Description |
---|---|
static class |
ArtifactPackagingElement.ArtifactPackagingElementState |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARTIFACT_NAME_ATTRIBUTE |
Constructor and Description |
---|
ArtifactPackagingElement(Project project) |
ArtifactPackagingElement(Project project,
ArtifactPointer artifactPointer) |
Modifier and Type | Method and Description |
---|---|
PackagingElementPresentation |
createPresentation(ArtifactEditorContext context) |
Artifact |
findArtifact(PackagingElementResolvingContext context) |
java.lang.String |
getArtifactName() |
ArtifactPackagingElement.ArtifactPackagingElementState |
getState() |
java.util.List<? extends PackagingElement<?>> |
getSubstitution(PackagingElementResolvingContext context,
ArtifactType artifactType) |
boolean |
isEqualTo(PackagingElement<?> element) |
void |
loadState(ArtifactPackagingElement.ArtifactPackagingElementState state)
This method is called when new component state is loaded.
|
java.lang.String |
toString() |
getFilesKind, getType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initializeComponent, noStateLoaded
public static final java.lang.String ARTIFACT_NAME_ATTRIBUTE
public ArtifactPackagingElement(Project project)
public ArtifactPackagingElement(Project project, ArtifactPointer artifactPointer)
public java.util.List<? extends PackagingElement<?>> getSubstitution(PackagingElementResolvingContext context, ArtifactType artifactType)
getSubstitution
in class ComplexPackagingElement<ArtifactPackagingElement.ArtifactPackagingElementState>
public PackagingElementPresentation createPresentation(ArtifactEditorContext context)
createPresentation
in class PackagingElement<ArtifactPackagingElement.ArtifactPackagingElementState>
public ArtifactPackagingElement.ArtifactPackagingElementState getState()
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(ArtifactPackagingElement.ArtifactPackagingElementState state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isEqualTo(PackagingElement<?> element)
isEqualTo
in class PackagingElement<ArtifactPackagingElement.ArtifactPackagingElementState>
public Artifact findArtifact(PackagingElementResolvingContext context)
public java.lang.String getArtifactName()