org.apache.commons.convert1.util
Class BasicInheritor

java.lang.Object
  extended by org.apache.commons.convert1.util.BasicInheritor
All Implemented Interfaces:
Inheritor

public class BasicInheritor
extends Object
implements Inheritor

An inheritence sequence. The target class is first, followed by its superclass and its interfaces. Then the lookup recurses through the superclass and interfaces with the same strategy. It is ensured that java.lang.Object is last in the sequence.


Constructor Summary
BasicInheritor()
           
BasicInheritor(Class clazz)
           
 
Method Summary
 Class getTarget()
          The Class upon which to generate a sequence.
 Iterator iterator()
          Returns a sequence of Class objects.
 void setTarget(Class clazz)
          Specify the Class upon which to generate a sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicInheritor

public BasicInheritor()

BasicInheritor

public BasicInheritor(Class clazz)
Method Detail

setTarget

public void setTarget(Class clazz)
Description copied from interface: Inheritor
Specify the Class upon which to generate a sequence.

Specified by:
setTarget in interface Inheritor

getTarget

public Class getTarget()
Description copied from interface: Inheritor
The Class upon which to generate a sequence.

Specified by:
getTarget in interface Inheritor

iterator

public Iterator iterator()
Description copied from interface: Inheritor
Returns a sequence of Class objects. The sequence must begin with the target and end with java.lang.Object.

Specified by:
iterator in interface Inheritor


Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.