org.openpermis.policy.bean.visitor
Class UniquePartBeanCheckVisitor

java.lang.Object
  extended by org.openpermis.policy.bean.visitor.UniquePartBeanCheckVisitor
All Implemented Interfaces:
PartBeanVisitor

public class UniquePartBeanCheckVisitor
extends Object
implements PartBeanVisitor

Checks the uniqueness of all part beans of a given type.

Since:
0.9.0

Constructor Summary
UniquePartBeanCheckVisitor(PartBean root)
          Creates a new unique part check visitor.
 
Method Summary
 boolean checkUniqueness(Class<? extends PartBean> type)
          Checks the uniqueness of all part beans of the given type.
 void visit(PartBean part)
          Visits a part bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniquePartBeanCheckVisitor

public UniquePartBeanCheckVisitor(PartBean root)
Creates a new unique part check visitor.

Parameters:
root - to start visitor from.
Since:
0.9.0
Method Detail

checkUniqueness

public boolean checkUniqueness(Class<? extends PartBean> type)
Checks the uniqueness of all part beans of the given type.

Returns:
true if all part beans of the given type are unique.
Since:
0.9.0

visit

public void visit(PartBean part)
Description copied from interface: PartBeanVisitor
Visits a part bean.

Specified by:
visit in interface PartBeanVisitor
Parameters:
part - the PartBean to visit.
Since:
0.9.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG