nz.ac.waikato.mcennis.rat.graph.descriptors
Class PropertyRestriction

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.graph.descriptors.PropertyRestriction
All Implemented Interfaces:
SyntaxChecker, SyntaxObject

public class PropertyRestriction
extends java.lang.Object
implements SyntaxObject


Constructor Summary
PropertyRestriction()
           
 
Method Summary
 boolean check(Parameter type)
           
 boolean check(Property type)
           
 boolean check(Property property, java.util.List value)
           
 boolean check(Property type, java.lang.Object o)
           
 boolean check(java.lang.String type, java.util.List value)
           
 boolean check(java.lang.String type, java.lang.Object value)
           
 PropertyRestriction duplicate()
           
 java.lang.Class getClassType()
           
 int getMaxCount()
           
 int getMinCount()
           
 PropertyQuery getTest()
           
 void setClassType(java.lang.Class classType)
           
 void setDefaultRestriction(PropertyRestriction restriction)
           
 void setMaxCount(int maxCount)
           
 void setMinCount(int minCount)
           
 void setPropertyQuery(PropertyQuery test)
           
 void setRestriction(java.lang.String type, PropertyRestriction restriction)
           
 void setTest(PropertyQuery test)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyRestriction

public PropertyRestriction()
Method Detail

setPropertyQuery

public void setPropertyQuery(PropertyQuery test)

check

public boolean check(Property type,
                     java.lang.Object o)
Specified by:
check in interface SyntaxChecker

check

public boolean check(Property type)
Specified by:
check in interface SyntaxChecker

check

public boolean check(Parameter type)
Specified by:
check in interface SyntaxChecker

getMaxCount

public int getMaxCount()
Specified by:
getMaxCount in interface SyntaxChecker

setMaxCount

public void setMaxCount(int maxCount)
Specified by:
setMaxCount in interface SyntaxObject

getMinCount

public int getMinCount()
Specified by:
getMinCount in interface SyntaxChecker

setMinCount

public void setMinCount(int minCount)
Specified by:
setMinCount in interface SyntaxObject

getTest

public PropertyQuery getTest()
Specified by:
getTest in interface SyntaxObject

setTest

public void setTest(PropertyQuery test)
Specified by:
setTest in interface SyntaxObject

getClassType

public java.lang.Class getClassType()
Specified by:
getClassType in interface SyntaxChecker

setClassType

public void setClassType(java.lang.Class classType)
Specified by:
setClassType in interface SyntaxObject

duplicate

public PropertyRestriction duplicate()
Specified by:
duplicate in interface SyntaxObject

setRestriction

public void setRestriction(java.lang.String type,
                           PropertyRestriction restriction)
Specified by:
setRestriction in interface SyntaxObject

setDefaultRestriction

public void setDefaultRestriction(PropertyRestriction restriction)
Specified by:
setDefaultRestriction in interface SyntaxObject

check

public boolean check(Property property,
                     java.util.List value)
Specified by:
check in interface SyntaxChecker

check

public boolean check(java.lang.String type,
                     java.lang.Object value)
Specified by:
check in interface SyntaxChecker

check

public boolean check(java.lang.String type,
                     java.util.List value)
Specified by:
check in interface SyntaxChecker

Get Relational Analysis Toolkit at SourceForge.net. Fast, secure and Free Open Source software downloads