org.at4j.tar.builder
Class DirectoryViewDirectoryAdapter

java.lang.Object
  extended by org.at4j.tar.builder.DirectoryViewDirectoryAdapter
All Implemented Interfaces:
DirectoryAdapter<DirectoryView>

public class DirectoryViewDirectoryAdapter
extends Object
implements DirectoryAdapter<DirectoryView>

This object adapts a DirectoryView object to the DirectoryAdapter interface.

Since:
1.0
Author:
Karl Gustafsson

Constructor Summary
DirectoryViewDirectoryAdapter(DirectoryView d)
          Create a new adapter.
 
Method Summary
 DirectoryView getAdapted()
          This method is used by the TarEntryStrategy to get the adapted directory representation if no other method defined in this interface (of which there currently are none) fits its needs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryViewDirectoryAdapter

public DirectoryViewDirectoryAdapter(DirectoryView d)
Create a new adapter.

Parameters:
d - The directory to adapt.
Method Detail

getAdapted

public DirectoryView getAdapted()
Description copied from interface: DirectoryAdapter
This method is used by the TarEntryStrategy to get the adapted directory representation if no other method defined in this interface (of which there currently are none) fits its needs.

Specified by:
getAdapted in interface DirectoryAdapter<DirectoryView>
Returns:
The adapted directory entity.