Package com.gammastream.validity

Examples of com.gammastream.validity.GSVAttribute.rules()


                    errorMessage = "There is already a rule named: "+ selectedRule().ruleName();
                    error=true;
                    return null;
                }
            }else{
                NSMutableArray temp = new NSMutableArray(att.rules());
                if(temp.count()!=0)
                    temp.removeObject(selectedRule());
                GSVRule ru=null;
                for(int s=0;s<temp.count();s++){
                    ru = (GSVRule)temp.objectAtIndex(s);
View Full Code Here


    //returns list of Rules for attribute
    public NSArray rules() {
        try{
            GSVEntity entity = session.model().entityNamed(this.selectedAttribute().entity().name());
            GSVAttribute att = entity.attributeNamed(this.selectedAttribute().name());
            return att.rules();
        }catch(Exception e){
            return null;
        }
    }
View Full Code Here

        }
        GSVAttribute att = entity.attributeNamed(this.currentAttribute.name());
        if(att==null){
            return 0;
        }
        return att.rules().count();
    }

    public GSVRule newRule(GSVRule copyRule){
        GSVRule rule = new GSVRule(copyRule.ruleName(),copyRule.cName(),copyRule.mName(),"","");
        rule.setParameters(copyRule.parameters());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.