public class ArtifactModelImpl extends ArtifactModelBase implements ModifiableArtifactModel
VALID_ARTIFACT_CONDITION
Constructor and Description |
---|
ArtifactModelImpl(ArtifactManagerImpl artifactManager,
java.util.List<? extends ArtifactImpl> originalArtifacts) |
Modifier and Type | Method and Description |
---|---|
ModifiableArtifact |
addArtifact(java.lang.String name,
ArtifactType artifactType) |
ModifiableArtifact |
addArtifact(java.lang.String name,
ArtifactType artifactType,
CompositePackagingElement<?> rootElement) |
ModifiableArtifact |
addArtifact(java.lang.String name,
ArtifactType artifactType,
CompositePackagingElement<?> rootElement,
ProjectModelExternalSource externalSource) |
void |
addListener(ArtifactListener listener) |
void |
commit() |
void |
dispose() |
ArtifactImpl |
getArtifactByOriginal(Artifact artifact) |
protected java.util.List<? extends Artifact> |
getArtifactsList() |
ArtifactImpl |
getModifiableCopy(Artifact artifact) |
ModifiableArtifact |
getOrCreateModifiableArtifact(Artifact artifact) |
Artifact |
getOriginalArtifact(Artifact artifact) |
java.util.List<ArtifactImpl> |
getOriginalArtifacts() |
boolean |
isModified() |
void |
removeArtifact(Artifact artifact) |
void |
removeListener(ArtifactListener listener) |
artifactsChanged, findArtifact, getAllArtifactsIncludingInvalid, getArtifacts, getArtifactsByType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findArtifact, getAllArtifactsIncludingInvalid, getArtifacts, getArtifactsByType
public ArtifactModelImpl(ArtifactManagerImpl artifactManager, java.util.List<? extends ArtifactImpl> originalArtifacts)
protected java.util.List<? extends Artifact> getArtifactsList()
getArtifactsList
in class ArtifactModelBase
public ModifiableArtifact addArtifact(java.lang.String name, ArtifactType artifactType)
addArtifact
in interface ModifiableArtifactModel
public ModifiableArtifact addArtifact(java.lang.String name, ArtifactType artifactType, CompositePackagingElement<?> rootElement)
addArtifact
in interface ModifiableArtifactModel
public ModifiableArtifact addArtifact(java.lang.String name, ArtifactType artifactType, CompositePackagingElement<?> rootElement, ProjectModelExternalSource externalSource)
addArtifact
in interface ModifiableArtifactModel
public void addListener(ArtifactListener listener)
addListener
in interface ModifiableArtifactModel
public void removeListener(ArtifactListener listener)
removeListener
in interface ModifiableArtifactModel
public void removeArtifact(Artifact artifact)
removeArtifact
in interface ModifiableArtifactModel
public ModifiableArtifact getOrCreateModifiableArtifact(Artifact artifact)
getOrCreateModifiableArtifact
in interface ModifiableArtifactModel
public Artifact getOriginalArtifact(Artifact artifact)
getOriginalArtifact
in interface ArtifactModel
getOriginalArtifact
in class ArtifactModelBase
public ArtifactImpl getArtifactByOriginal(Artifact artifact)
getArtifactByOriginal
in interface ArtifactModel
getArtifactByOriginal
in class ArtifactModelBase
public boolean isModified()
isModified
in interface ModifiableArtifactModel
public void commit()
commit
in interface ModifiableArtifactModel
public void dispose()
dispose
in interface ModifiableArtifactModel
public ArtifactImpl getModifiableCopy(Artifact artifact)
getModifiableCopy
in interface ModifiableArtifactModel
public java.util.List<ArtifactImpl> getOriginalArtifacts()