Package com.sworddance.util

Examples of com.sworddance.util.ApplicationIllegalArgumentException


            }
        }
        FlowPropertyDefinition current = this.propertyDefinitions.get(flowPropertyDefinition.getName());
        if ( current != null ) {
            if ( !flowPropertyDefinition.merge(current) ) {
                throw new ApplicationIllegalArgumentException(flowPropertyDefinition,": cannot be merged with ",current);
            }
        }
        this.propertyDefinitions.put(flowPropertyDefinition.getName(), flowPropertyDefinition);
    }
View Full Code Here


            Boolean condition = getCondition();
            Boolean hidden = getHidden();
            if ( hidden != null ) {
                showValue = !hidden;
                if (condition != null && condition != showValue) {
                    throw new ApplicationIllegalArgumentException(
                        "show and hidden parameters are contradicting each other -- really should only specify one or the other.");
                }
            } else {
                showValue = condition;
            }
View Full Code Here

    protected PropertyMethodChain addPropertyMethodChainIfAbsent(Class<?> clazz, ConcurrentMap<String, PropertyMethodChain> propMap, String propertyName, boolean readOnly)
        throws ApplicationIllegalArgumentException {
        if (!propMap.containsKey(propertyName)) {
            PropertyMethodChain propertyMethodChain = newPropertyMethodChain(clazz, propertyName, readOnly);
            if ( propertyMethodChain == null) {
                throw new ApplicationIllegalArgumentException(clazz, " has no property named '",propertyName,"'");
            }
            propMap.putIfAbsent(propertyName, propertyMethodChain);
        }
        return propMap.get(propertyName);
    }
View Full Code Here

     * @param result
     */
    @Override
    protected void putOriginalValues(String propertyName, Object result) {
        if (propertyName == null) {
            throw new ApplicationIllegalArgumentException( "propertyName cannot be null");
        }
        this.getOriginalValuesMap().put(propertyName, result==null?NullObject:result);
    }
View Full Code Here

        this.getOriginalValuesMap().put(propertyName, result==null?NullObject:result);
    }
    @Override
    protected void putNewValues(String propertyName, Object result) {
        if (propertyName == null) {
            throw new ApplicationIllegalArgumentException( "propertyName cannot be null");
        }
        this.getNewValues().put(propertyName, result==null?NullObject:result);
    }
View Full Code Here

TOP

Related Classes of com.sworddance.util.ApplicationIllegalArgumentException

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.