Package org.apache.cocoon.acting

Examples of org.apache.cocoon.acting.ValidatorActionResult


                                     INPUTXML_TYPE_ATTRIBUTE,
                                     INPUTXML_TYPE_ATTRIBUTE,
                                     "CDATA", attr.getValue(INPUTXML_TYPE_ATTRIBUTE));
            }

            ValidatorActionResult validationResult = null;
            if (validationResultMap != null && validationResultMap.get(fieldname) != null) {
                validationResult = (ValidatorActionResult)validationResultMap.get(fieldname);
                newattr.addAttribute("",
                                     INPUTXML_VALIDATIONRESULT_ATTRIBUTE,
                                     INPUTXML_VALIDATIONRESULT_ATTRIBUTE,
                                     "CDATA", validationResult.toString());
            }

            super.startTransformingElement("", name, name, newattr); // remove namespace
            this.startRecording();
View Full Code Here


            if (aName == null) {
                super.startElement(uri, name, raw, attr);
            } else {
                if (this.prefix != null) aName = this.prefix + aName;
                if (this.suffix != null) aName = aName + this.suffix;
                ValidatorActionResult validation = XSPFormValidatorHelper.getParamResult(this.objectModel, aName);
                String when = attr.getValue("when");
                String when_ge = attr.getValue("when-ge");
               
                if ((when != null && when.equals((String)validatorResults.get(validation))) ||
                    (when_ge != null && validation.ge((ValidatorActionResult)
                                                      validatorResultLabel.get(when_ge,ValidatorActionResult.MAXERROR)))
                    ) {
                    AttributesImpl attributes=null;
                    if (attr instanceof AttributesImpl) {
                        attributes = (AttributesImpl) attr;
View Full Code Here

     * @param name Request parameter's name
     * @see org.apache.cocoon.acting.ValidatorActionResult
     */
    public static ValidatorActionResult getParamResult(Map objectModel,
                                                       String name) {
        ValidatorActionResult result = ValidatorActionResult.NOTPRESENT;
        Map param_result = (Map) getResults(objectModel);
        if (param_result != null) {
            result = (ValidatorActionResult) param_result.get(name);
        }
        return (result != null? result : ValidatorActionResult.NOTPRESENT);
View Full Code Here

     *
     * @param objectModel The Map objectModel
     * @see org.apache.cocoon.acting.ValidatorActionResult
     */
    public ValidatorActionResult getParamResult(Map objectModel) {
        ValidatorActionResult result = ValidatorActionResult.NOTPRESENT;
        Map param_result = (Map) getResults(objectModel);
        if (param_result != null) {
            result = (ValidatorActionResult) param_result.get(current_parameter);
        }
        return (result != null? result : ValidatorActionResult.NOTPRESENT);
View Full Code Here

    ValidatorActionResult getParamResult (
                          Map objectModel,
                          String name
                          )
    {
    ValidatorActionResult result = ValidatorActionResult.NOTPRESENT;
    Map param_result = (Map) getResults(objectModel);
    if (param_result != null ) {
        result = (ValidatorActionResult) param_result.get(name);
    }
    return result;
View Full Code Here

    public
    ValidatorActionResult getParamResult (
                          Map objectModel
                          )
    {
    ValidatorActionResult result = ValidatorActionResult.NOTPRESENT;
    Map param_result = (Map) getResults(objectModel);
    if (param_result != null ) {
        result = (ValidatorActionResult) param_result.get(current_parameter);
    }
    return result;
View Full Code Here

    ValidatorActionResult getParamResult (
                          Map objectModel,
                          String name
                          )
    {
    ValidatorActionResult result = ValidatorActionResult.NOTPRESENT;
    Map param_result = (Map) getResults(objectModel);
    if (param_result != null ) {
        result = (ValidatorActionResult) param_result.get(name);
    }
    return result;
View Full Code Here

    public
    ValidatorActionResult getParamResult (
                          Map objectModel
                          )
    {
    ValidatorActionResult result = ValidatorActionResult.NOTPRESENT;
    Map param_result = (Map) getResults(objectModel);
    if (param_result != null ) {
        result = (ValidatorActionResult) param_result.get(current_parameter);
    }
    return result;
View Full Code Here

        } else {
            String aName = attr.getValue("name");
            if (aName == null) {
                this.relayStartElement(uri, name, raw, attr);
            } else {
                ValidatorActionResult validation =
                    FormValidatorHelper.getParamResult(this.objectModel, aName);
                String when = attr.getValue("when");
                String when_ge = attr.getValue("when-ge");

                if ((when != null && when.equals(validatorResults.get(validation)))
                    || (when_ge != null
                        && validation.ge(
                            (ValidatorActionResult) validatorResultLabel.get(
                                when_ge,
                                ValidatorActionResult.MAXERROR)))) {
                    AttributesImpl attributes = null;
                    if (attr instanceof AttributesImpl) {
View Full Code Here

        } else {
            String aName = attr.getValue("name");
            if (aName == null) {
                this.relayStartElement(uri, name, raw, attr);
            } else {
                ValidatorActionResult validation =
                    FormValidatorHelper.getParamResult(this.objectModel, aName);
                String when = attr.getValue("when");
                String when_ge = attr.getValue("when-ge");

                if ((when != null && when.equals(validatorResults.get(validation)))
                    || (when_ge != null
                        && validation.ge(
                            (ValidatorActionResult) validatorResultLabel.get(
                                when_ge,
                                ValidatorActionResult.MAXERROR)))) {
                    AttributesImpl attributes = null;
                    if (attr instanceof AttributesImpl) {
View Full Code Here

TOP

Related Classes of org.apache.cocoon.acting.ValidatorActionResult

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.