public class DirectoryRepositoryItem extends AbstractRepositoryElement implements RepositoryDirectory
Modifier and Type | Field and Description |
---|---|
protected String |
description |
protected Map<String,RepositoryElement> |
items |
protected String |
name |
parent
Constructor and Description |
---|
DirectoryRepositoryItem(RepositoryDirectory parent,
String name) |
Modifier and Type | Method and Description |
---|---|
protected RepositoryElement |
add(RepositoryElement dirElement,
boolean allowOverwrite) |
RepositoryElement |
getChild(String element) |
Collection<? extends RepositoryElement> |
getChildren() |
String |
getDescription() |
protected Map<String,RepositoryElement> |
getItems() |
String |
getName() |
void |
insert(RepositoryContent content,
String path,
boolean allowOverwrite) |
void |
setDescription(String description) |
void |
setName(String name) |
String |
toString() |
getParent, getPath, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParent, getPath, setParent
protected Map<String,RepositoryElement> items
protected String name
protected String description
public DirectoryRepositoryItem(RepositoryDirectory parent, String name)
public String getName()
getName
in interface RepositoryElement
getName
in class AbstractRepositoryElement
public String getDescription()
getDescription
in interface RepositoryElement
public void setName(String name)
public void setDescription(String description)
protected Map<String,RepositoryElement> getItems()
public Collection<? extends RepositoryElement> getChildren()
getChildren
in interface RepositoryDirectory
public void insert(RepositoryContent content, String path, boolean allowOverwrite)
protected RepositoryElement add(RepositoryElement dirElement, boolean allowOverwrite)
public RepositoryElement getChild(String element)
getChild
in interface RepositoryDirectory
Copyright © 2016–2022. All rights reserved.