Examples of ParameterName


Examples of cc.co.evenprime.bukkit.nocheat.actions.ParameterName

            if(parts2.length != 2) {
                messageParts.add(message);
            }
            // Found a matching closing brace
            else {
                ParameterName w = ParameterName.get(parts2[0]);

                if(w != null) {
                    // Found an existing wildcard inbetween the braces
                    messageParts.add(parts[0]);
                    messageParts.add(w);
View Full Code Here

Examples of fr.neatmonster.nocheatplus.actions.ParameterName

            // Found no matching closing brace.
            if (parts2.length != 2)
                messageParts.add(message);
            else {
                final ParameterName w = ParameterName.get(parts2[0].toLowerCase());

                if (w != null) {
                  needsParameters = true;
                    // Found an existing wildcard in between the braces.
                    messageParts.add(parts[0]);
View Full Code Here

Examples of net.sourceforge.stripes.controller.ParameterName

        if (value != null) {
            // find the action bean class we're dealing with
            Class<? extends ActionBean> beanClass = tag.getParentFormTag().getActionBeanClass();
            if (beanClass != null) {
                ValidationMetadata validate = config.getValidationMetadataProvider()
                        .getValidationMetadata(beanClass, new ParameterName(tag.getName()));
                if (validate != null && validate.encrypted()) {
                    String[] copy = new String[value.length];
                    for (int i = 0; i < copy.length; i++) {
                        copy[i] = CryptoUtil.decrypt(value[i]);
                    }
View Full Code Here

Examples of net.sourceforge.stripes.controller.ParameterName

        if (errors == null) {
            errors = new ArrayList<ValidationError>();
            put(field, errors);
        }

        error.setFieldName( new ParameterName(field).getStrippedName() );
        errors.add(error);
    }
View Full Code Here

Examples of net.sourceforge.stripes.controller.ParameterName

     * @param errors the list of validation errors for the field
     * @return the previous errors for the field, or null if there were none
     */
    @Override
    public List<ValidationError> put(String field, List<ValidationError> errors) {
        String strippedName = new ParameterName(field).getStrippedName();

        for (ValidationError error : errors) {
            error.setFieldName(strippedName);
        }

View Full Code Here

Examples of net.sourceforge.stripes.controller.ParameterName

                }
            }

            // check validation for encryption flag
            return StripesFilter.getConfiguration().getValidationMetadataProvider()
                    .getValidationMetadata(beanClass, new ParameterName(name));
        }
        else {
            return null;
        }
    }
View Full Code Here

Examples of net.sourceforge.stripes.controller.ParameterName

    public static String getLocalizedFieldName(String fieldName,
                                               String actionPath,
                                               Class<? extends ActionBean> beanclass,
                                               Locale locale) {

        ParameterName parameterName = new ParameterName(fieldName);
        String strippedName = parameterName.getStrippedName();
        String localizedValue = null;
        ResourceBundle bundle = null;

        try {
            bundle = StripesFilter.getConfiguration().getLocalizationBundleFactory()
View Full Code Here

Examples of net.sourceforge.stripes.controller.ParameterName

        Set<String> fields = new HashSet<String>();
       
        if (form != null) {
            for (String field : form.getRegisteredFields()) {
                fields.add(new ParameterName(field).getStrippedName());
            }
        }

        if ((this.fields != null) && (this.fields.trim().length() > 0))
            fields.addAll(Arrays.asList(this.fields.split(",")));
View Full Code Here

Examples of net.sourceforge.stripes.controller.ParameterName

        if (value != null) {
            // find the action bean class we're dealing with
            Class<? extends ActionBean> beanClass = tag.getParentFormTag().getActionBeanClass();
            if (beanClass != null) {
                ValidationMetadata validate = config.getValidationMetadataProvider()
                        .getValidationMetadata(beanClass, new ParameterName(tag.getName()));
                if (validate != null && validate.encrypted()) {
                    String[] copy = new String[value.length];
                    for (int i = 0; i < copy.length; i++) {
                        copy[i] = CryptoUtil.decrypt(value[i]);
                    }
View Full Code Here

Examples of net.sourceforge.stripes.controller.ParameterName

        Set<String> fields = new HashSet<String>();
       
        if (form != null) {
            for (String field : form.getRegisteredFields()) {
                fields.add(new ParameterName(field).getStrippedName());
            }
        }

        if ((this.fields != null) && (this.fields.trim().length() > 0))
            fields.addAll(Arrays.asList(this.fields.split(",")));
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.