public class GHDirectory extends Object implements Directory
| Modifier and Type | Field and Description |
|---|---|
protected String |
location |
protected Map<String,DataAccess> |
map |
protected Map<String,DAType> |
types |
| Constructor and Description |
|---|
GHDirectory(String _location,
DAType defaultType) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all contained objects from the directory and releases its resources.
|
Directory |
create() |
DataAccess |
find(String name)
Tries to find the object with that name if not existent it creates one and associates the
location with it.
|
DataAccess |
find(String name,
DAType type) |
Collection<DataAccess> |
getAll()
Returns all created directories.
|
ByteOrder |
getByteOrder() |
DAType |
getDefaultType() |
String |
getLocation() |
boolean |
isStoring() |
Directory |
put(String name,
DAType type) |
void |
remove(DataAccess da)
Removes the specified object from the directory.
|
String |
toString() |
protected final String location
protected Map<String,DataAccess> map
public ByteOrder getByteOrder()
getByteOrder in interface Directorypublic DataAccess find(String name)
Directorypublic DataAccess find(String name, DAType type)
public void clear()
Directorypublic void remove(DataAccess da)
Directorypublic DAType getDefaultType()
getDefaultType in interface Directorypublic boolean isStoring()
public Collection<DataAccess> getAll()
Directorypublic String getLocation()
getLocation in interface DirectoryCopyright © 2012–2018. All rights reserved.