org.apache.commons.betwixt.schema
Class CyclicBean

java.lang.Object
  extended by org.apache.commons.betwixt.schema.CyclicBean

public class CyclicBean
extends java.lang.Object

This is a bean specifically designed to test cyclic references. The idea is that there's a count that counts every time getFriend gets called and throws a RuntimeException if the count gets too high.

Author:
Apache Commons Team, Apache Software Foundation

Constructor Summary
CyclicBean(java.lang.String name)
           
 
Method Summary
 void addLayer(CyclicLayer aLayer)
           
 java.util.Vector getLayers()
           
 java.lang.String getName()
           
 void setLayers(java.util.Vector vLayers)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CyclicBean

public CyclicBean(java.lang.String name)
Method Detail

getLayers

public java.util.Vector getLayers()

setLayers

public void setLayers(java.util.Vector vLayers)

addLayer

public void addLayer(CyclicLayer aLayer)

getName

public java.lang.String getName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 2002-2008 The Apache Software Foundation. All Rights Reserved.