org.opensc.util
Class DestroyableChild

java.lang.Object
  extended by org.opensc.util.DestroyableChild
All Implemented Interfaces:
Destroyable
Direct Known Subclasses:
DestroyableHolder, PKCS11Object

public class DestroyableChild
extends Object
implements Destroyable

A class, that is a destroyable and a child of a DestroybleParent.

Author:
wglas

Constructor Summary
DestroyableChild()
          Constructs a child with no parent.
DestroyableChild(DestroyableParent parent)
          Constructs a child for a given parent.
 
Method Summary
 void destroy()
           
 DestroyableParent getParent()
           
 boolean isDestroyed()
           
protected  void unlink()
          Used internally by DEstroyableHodler.destroy in order tp avoid double acces to a Colletion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DestroyableChild

public DestroyableChild()
Constructs a child with no parent.


DestroyableChild

public DestroyableChild(DestroyableParent parent)
Constructs a child for a given parent.

Method Detail

unlink

protected final void unlink()
Used internally by DEstroyableHodler.destroy in order tp avoid double acces to a Colletion.


destroy

public void destroy()
             throws DestroyFailedException
Specified by:
destroy in interface Destroyable
Throws:
DestroyFailedException

isDestroyed

public boolean isDestroyed()
Specified by:
isDestroyed in interface Destroyable

getParent

public DestroyableParent getParent()
Returns:
Returns the parent.