Package com.sun.enterprise.tools.common.validation.constraints.data

Examples of com.sun.enterprise.tools.common.validation.constraints.data.Constraints


     * Constraints File. Constraints File provide information about the
     * <code>Constraint</code>s i.e. Constraint class name, Constraint
     * constructor arguments & thier types.
     */
    private void constructConstraints() {
        Constraints customConstraints = null;
        Constraints defaultConstraints = null;
       
        String constraintsFile =                    
            System.getProperty("constraints.file");                     //NOI18N
        ///System.out.println(consFile);
        if(constraintsFile != null){
            customConstraints = getConstraints(constraintsFile);
        }
       
        if(defaultConstraintsFile != null){
            defaultConstraints = getConstraints(defaultConstraintsFile);
        }
       
        if(customConstraints != null){
            if(defaultConstraints != null){
                int count = defaultConstraints.sizeCheckInfo();
                CheckInfo checkInfo = null;
                CheckInfo checkInfoClone = null;
                for(int i=0; i<count; i++){
                    checkInfo = defaultConstraints.getCheckInfo(i);
                    ///String str = checkInfo.dumpBeanNode();
                    checkInfoClone = (CheckInfo) checkInfo.clone();
                    ///System.out.println(checkInfoClone.dumpBeanNode());
                    customConstraints.addCheckInfo(checkInfoClone);
                }
View Full Code Here


     * given Constraints File. Returns null, in case of failure.
     */
    private Constraints getConstraints(String constraintsFile){
        URL url = null;
        InputStream inputStream = null;
        Constraints constraints = null;

        if(constraintsFile != null){
            inputStream = getInputStream(constraintsFile);
        }

View Full Code Here

TOP

Related Classes of com.sun.enterprise.tools.common.validation.constraints.data.Constraints

Copyright © 2018 www.massapicom. 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.