public class LibraryPackagingElement extends ComplexPackagingElement<LibraryPackagingElement>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LIBRARY_LEVEL_ATTRIBUTE |
static java.lang.String |
LIBRARY_NAME_ATTRIBUTE |
static java.lang.String |
MODULE_NAME_ATTRIBUTE |
Constructor and Description |
---|
LibraryPackagingElement() |
LibraryPackagingElement(java.lang.String level,
java.lang.String libraryName,
java.lang.String moduleName) |
Modifier and Type | Method and Description |
---|---|
PackagingElementPresentation |
createPresentation(ArtifactEditorContext context) |
Library |
findLibrary(PackagingElementResolvingContext context) |
PackagingElementOutputKind |
getFilesKind(PackagingElementResolvingContext context) |
static PackagingElementOutputKind |
getKindForLibrary(Library library) |
java.lang.String |
getLevel() |
java.lang.String |
getLibraryName() |
java.lang.String |
getModuleName() |
LibraryPackagingElement |
getState() |
java.util.List<? extends PackagingElement<?>> |
getSubstitution(PackagingElementResolvingContext context,
ArtifactType artifactType) |
boolean |
isEqualTo(PackagingElement<?> element) |
void |
loadState(LibraryPackagingElement state)
This method is called when new component state is loaded.
|
void |
setLevel(java.lang.String level) |
void |
setLibraryName(java.lang.String libraryName) |
void |
setModuleName(java.lang.String moduleName) |
java.lang.String |
toString() |
getType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initializeComponent, noStateLoaded
public static final java.lang.String LIBRARY_NAME_ATTRIBUTE
public static final java.lang.String MODULE_NAME_ATTRIBUTE
public static final java.lang.String LIBRARY_LEVEL_ATTRIBUTE
public LibraryPackagingElement()
public LibraryPackagingElement(java.lang.String level, java.lang.String libraryName, java.lang.String moduleName)
public java.util.List<? extends PackagingElement<?>> getSubstitution(PackagingElementResolvingContext context, ArtifactType artifactType)
getSubstitution
in class ComplexPackagingElement<LibraryPackagingElement>
public PackagingElementOutputKind getFilesKind(PackagingElementResolvingContext context)
getFilesKind
in class PackagingElement<LibraryPackagingElement>
public PackagingElementPresentation createPresentation(ArtifactEditorContext context)
createPresentation
in class PackagingElement<LibraryPackagingElement>
public boolean isEqualTo(PackagingElement<?> element)
isEqualTo
in class PackagingElement<LibraryPackagingElement>
public LibraryPackagingElement 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(LibraryPackagingElement state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public java.lang.String getLevel()
public void setLevel(java.lang.String level)
public java.lang.String getLibraryName()
public void setLibraryName(java.lang.String libraryName)
public java.lang.String getModuleName()
public void setModuleName(java.lang.String moduleName)
public java.lang.String toString()
toString
in class java.lang.Object
public Library findLibrary(PackagingElementResolvingContext context)
public static PackagingElementOutputKind getKindForLibrary(Library library)