de.mindcrimeilab.xsanalyzer.rules.constraints
Class SchemaTypeConstraint

java.lang.Object
  extended by java.util.Observable
      extended by de.mindcrimeilab.xsanalyzer.rules.constraints.SchemaTypeConstraint
All Implemented Interfaces:
org.springframework.core.closure.Constraint

public class SchemaTypeConstraint
extends Observable
implements org.springframework.core.closure.Constraint

Constraint filtering schema elements depending on their type.

Version:
$Revision: 165 $
Author:
Michael Engelhardt, $Author: agony $

Constructor Summary
SchemaTypeConstraint()
           
SchemaTypeConstraint(Accessor accessor)
           
 
Method Summary
 void setFilter(short type, boolean filtered)
          Enable/disable filter for given type.
 boolean test(Object argument)
           
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaTypeConstraint

public SchemaTypeConstraint()

SchemaTypeConstraint

public SchemaTypeConstraint(Accessor accessor)
Method Detail

test

public boolean test(Object argument)
Specified by:
test in interface org.springframework.core.closure.Constraint

setFilter

public void setFilter(short type,
                      boolean filtered)
Enable/disable filter for given type.

Parameters:
type - to filter
filtered - true for filtering otherwise false


Copyright © 2010. All Rights Reserved.