org.squashtest.csp.tm.domain.library
Interface Library<NODE extends LibraryNode>

All Superinterfaces:
NodeContainer<NODE>, ProjectResource, SelfClassAware
All Known Implementing Classes:
CampaignLibrary, GenericLibrary, RequirementLibrary, TestCaseLibrary

public interface Library<NODE extends LibraryNode>
extends ProjectResource, SelfClassAware, NodeContainer<NODE>


Method Summary
 void addRootContent(NODE node)
          Adds new content to the root of library.
 Long getId()
           
 Set<NODE> getRootContent()
           
 boolean hasContent()
           
 void removeRootContent(NODE node)
           
 
Methods inherited from interface org.squashtest.csp.tm.domain.project.ProjectResource
getProject, notifyAssociatedWithProject
 
Methods inherited from interface org.squashtest.csp.tm.domain.SelfClassAware
getClassName, getClassSimpleName
 
Methods inherited from interface org.squashtest.csp.tm.domain.library.NodeContainer
addContent, isContentNameAvailable
 

Method Detail

getId

Long getId()

getRootContent

Set<NODE> getRootContent()

addRootContent

void addRootContent(NODE node)
Adds new content to the root of library. Content must not be null, content must not have the same name as another content.

Parameters:
newContent -
Throws:
org.apache.commons.lang.NullArgumentException - if content is null
DuplicateNameException - if there is content with the same name

removeRootContent

void removeRootContent(NODE node)

hasContent

boolean hasContent()


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.