com.nirima.jenkins.repo.build
Class DirectoryRepositoryItem

java.lang.Object
  extended by com.nirima.jenkins.repo.AbstractRepositoryElement
      extended by com.nirima.jenkins.repo.build.DirectoryRepositoryItem
All Implemented Interfaces:
RepositoryDirectory, RepositoryElement
Direct Known Subclasses:
PopulateOnDemandDirectoryRepositoryItem

public class DirectoryRepositoryItem
extends AbstractRepositoryElement
implements RepositoryDirectory

Represent a directory


Field Summary
protected  Map<String,RepositoryElement> items
           
protected  String name
           
 
Fields inherited from class com.nirima.jenkins.repo.AbstractRepositoryElement
parent
 
Constructor Summary
DirectoryRepositoryItem(RepositoryDirectory parent, String name)
           
 
Method Summary
protected  RepositoryElement add(RepositoryElement dirElement, boolean allowOverwrite)
           
 RepositoryElement getChild(String element)
           
 Collection<? extends RepositoryElement> getChildren()
           
protected  Map<String,RepositoryElement> getItems()
           
 String getName()
           
 void insert(RepositoryContent content, String path, boolean allowOverwrite)
           
 
Methods inherited from class com.nirima.jenkins.repo.AbstractRepositoryElement
getParent, getPath, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.nirima.jenkins.repo.RepositoryElement
getParent, getPath, setParent
 

Field Detail

items

protected Map<String,RepositoryElement> items

name

protected String name
Constructor Detail

DirectoryRepositoryItem

public DirectoryRepositoryItem(RepositoryDirectory parent,
                               String name)
Method Detail

getName

public String getName()
Specified by:
getName in interface RepositoryElement
Specified by:
getName in class AbstractRepositoryElement

getItems

protected Map<String,RepositoryElement> getItems()

getChildren

public Collection<? extends RepositoryElement> getChildren()
Specified by:
getChildren in interface RepositoryDirectory

insert

public void insert(RepositoryContent content,
                   String path,
                   boolean allowOverwrite)

add

protected RepositoryElement add(RepositoryElement dirElement,
                                boolean allowOverwrite)

getChild

public RepositoryElement getChild(String element)
Specified by:
getChild in interface RepositoryDirectory


Copyright © 2004-2011. All Rights Reserved.