pl.edu.agh.cast.data.model.copier
Class CopyableImpl<E extends IElement>

java.lang.Object
  extended by pl.edu.agh.cast.data.model.copier.CopyableImpl<E>
Type Parameters:
E - the type of contained elements
All Implemented Interfaces:
ICopyable<E>

public class CopyableImpl<E extends IElement>
extends Object
implements ICopyable<E>

Implementation of ICopyable interface.

Author:
AGH CAST Team
See Also:
ICopyable

Constructor Summary
CopyableImpl(IElementCopier<E> defaultCopier)
          Constructor.
CopyableImpl(IElementCopier<E> defaultCopier, Collection<IElementCopier<E>> copiers)
          Constructor.
 
Method Summary
 Collection<IElementCopier<E>> getCopiers()
          Returns a collection of compatible element copiers.
 IElementCopier<E> getDefaultCopier()
          Returns the default element copier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyableImpl

public CopyableImpl(IElementCopier<E> defaultCopier)
Constructor.

Parameters:
defaultCopier - the default copier

CopyableImpl

public CopyableImpl(IElementCopier<E> defaultCopier,
                    Collection<IElementCopier<E>> copiers)
Constructor.

Parameters:
defaultCopier - the default copier
copiers - collection of copiers
Method Detail

getCopiers

public Collection<IElementCopier<E>> getCopiers()
Returns a collection of compatible element copiers.

Specified by:
getCopiers in interface ICopyable<E extends IElement>
Returns:
a collection of compatible element copiers
See Also:
ICopyable.getCopiers()

getDefaultCopier

public IElementCopier<E> getDefaultCopier()
Returns the default element copier.

Specified by:
getDefaultCopier in interface ICopyable<E extends IElement>
Returns:
the default element copier
See Also:
ICopyable.getDefaultCopier()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.