public class DirectoryPackagingElement extends CompositeElementWithManifest<DirectoryPackagingElement>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME_ATTRIBUTE |
Constructor and Description |
---|
DirectoryPackagingElement() |
DirectoryPackagingElement(java.lang.String directoryName) |
Modifier and Type | Method and Description |
---|---|
PackagingElementPresentation |
createPresentation(ArtifactEditorContext context) |
java.lang.String |
getDirectoryName() |
java.lang.String |
getName() |
DirectoryPackagingElement |
getState() |
boolean |
isEqualTo(PackagingElement<?> element) |
void |
loadState(DirectoryPackagingElement state)
This method is called when new component state is loaded.
|
void |
rename(java.lang.String newName) |
void |
setDirectoryName(java.lang.String directoryName) |
java.lang.String |
toString() |
addFirstChild, addOrFindChild, addOrFindChildren, canBeRenamed, findCompositeChild, getChildren, moveChild, removeAllChildren, removeChild, removeChildren
getFilesKind, getType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initializeComponent, noStateLoaded
public static final java.lang.String NAME_ATTRIBUTE
public DirectoryPackagingElement()
public DirectoryPackagingElement(java.lang.String directoryName)
public PackagingElementPresentation createPresentation(ArtifactEditorContext context)
createPresentation
in class PackagingElement<DirectoryPackagingElement>
public DirectoryPackagingElement getState()
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDirectoryName()
public void setDirectoryName(java.lang.String directoryName)
public void rename(java.lang.String newName)
public java.lang.String getName()
public boolean isEqualTo(PackagingElement<?> element)
isEqualTo
in class PackagingElement<DirectoryPackagingElement>
public void loadState(DirectoryPackagingElement state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)