NODE - The type of nodes this library contains.@MappedSuperclass public abstract class GenericLibrary<NODE extends LibraryNode> extends Object implements Library<NODE>
Library implementations based on generics.| Constructor and Description |
|---|
GenericLibrary() |
| Modifier and Type | Method and Description |
|---|---|
void |
addContent(NODE node)
Adds new content to this container.
|
void |
addContent(NODE node,
int position)
Adds new content to this container at the given position.
|
AttachmentList |
getAttachmentList()
Should return the container for this object's attachments.
|
List<String> |
getContentNames() |
Library<?> |
getLibrary() |
boolean |
isContentNameAvailable(String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnotifyAssociatedWithProjectgetProjectgetClassName, getClassSimpleNameaccept, getContent, getOrderedContent, getProject, hasContent, removeContentgetIddisablePlugin, enablePlugin, getAllPluginBindings, getEnabledPlugins, getPluginBinding, isPluginEnabledpublic boolean isContentNameAvailable(String name)
isContentNameAvailable in interface NodeContainer<NODE extends LibraryNode>public void addContent(@NotNull
NODE node)
throws UnsupportedOperationException
NodeContaineraddContent in interface NodeContainer<NODE extends LibraryNode>UnsupportedOperationException - when trying to add a node to a project template.public void addContent(@NotNull
NODE node,
int position)
throws UnsupportedOperationException
NodeContaineraddContent in interface NodeContainer<NODE extends LibraryNode>UnsupportedOperationExceptionpublic Library<?> getLibrary()
getLibrary in interface ProjectResource<GenericProject>public List<String> getContentNames()
getContentNames in interface NodeContainer<NODE extends LibraryNode>public AttachmentList getAttachmentList()
AttachmentHoldernull.getAttachmentList in interface AttachmentHolderAttachmentList of this object.Copyright © 2010–2016 Henix, henix.fr. All rights reserved.