Package org.apache.cocoon.woody.formmodel.AggregateFieldDefinition

Examples of org.apache.cocoon.woody.formmodel.AggregateFieldDefinition.SplitMapping


            PatternMatcher matcher = new Perl5Matcher();
            if (matcher.matches(value, getAggregateFieldDefinition().getSplitPattern())) {
                MatchResult matchResult = matcher.getMatch();
                Iterator iterator = getAggregateFieldDefinition().getSplitMappingsIterator();
                while (iterator.hasNext()) {
                    SplitMapping splitMapping = (SplitMapping)iterator.next();
                    String result = matchResult.group(splitMapping.getGroup());

                    // Fields can have a non-string datatype, going to the readFromRequest
                    Field field = (Field)fieldsById.get(splitMapping.getFieldId());
                    field.readFromRequest(result);
                }
            } else {
                resetFieldsValues();
            }
View Full Code Here


                PatternMatcher matcher = new Perl5Matcher();
                if (matcher.matches(enteredValue, aggregateDefinition.getSplitPattern())) {
                    MatchResult matchResult = matcher.getMatch();
                    Iterator iterator = aggregateDefinition.getSplitMappingsIterator();
                    while (iterator.hasNext()) {
                        SplitMapping splitMapping = (SplitMapping)iterator.next();
                        String result = matchResult.group(splitMapping.getGroup());
                        // Since we know the fields are guaranteed to have a string datatype, we
                        // can set the value immediately, instead of going to the readFromRequest
                        // (which would also require us to create wrapper FormContext and Request
                        // objects)
                        ((Field)fieldsById.get(splitMapping.getFieldId())).setValue(result);
                    }
                } else {
                    // set values of the fields to null
                    Iterator fieldsIt = fields.iterator();
                    while (fieldsIt.hasNext()) {
View Full Code Here

                PatternMatcher matcher = new Perl5Matcher();
                if (matcher.matches(enteredValue, definition.getSplitPattern())) {
                    MatchResult matchResult = matcher.getMatch();
                    Iterator iterator = definition.getSplitMappingsIterator();
                    while (iterator.hasNext()) {
                        SplitMapping splitMapping = (SplitMapping)iterator.next();
                        String result = matchResult.group(splitMapping.getGroup());
                        // Since we know the fields are guaranteed to have a string datatype, we
                        // can set the value immediately, instead of going to the readFromRequest
                        // (which would also require us to create wrapper FormContext and Request
                        // objects)
                        ((Field)fieldsById.get(splitMapping.getFieldId())).setValue(result);
                    }
                } else {
                    // set values of the fields to null
                    Iterator fieldsIt = fields.iterator();
                    while (fieldsIt.hasNext()) {
View Full Code Here

            PatternMatcher matcher = new Perl5Matcher();
            if (matcher.matches(enteredValue, definition.getSplitPattern())) {
                MatchResult matchResult = matcher.getMatch();
                Iterator iterator = definition.getSplitMappingsIterator();
                while (iterator.hasNext()) {
                    SplitMapping splitMapping = (SplitMapping)iterator.next();
                    String result = matchResult.group(splitMapping.getGroup());
                    // Since we know the fields are guaranteed to have a string datatype, we
                    // can set the value immediately, instead of going to the readFromRequest
                    // (which would also require us to create wrapper FormContext and Request
                    // objects)
                    ((Field)fieldsById.get(splitMapping.getFieldId())).setValue(result);
                }
            } else {
                // set values of the fields to null
                Iterator fieldsIt = fields.iterator();
                while (fieldsIt.hasNext()) {
View Full Code Here

            PatternMatcher matcher = new Perl5Matcher();
            if (matcher.matches(value, getAggregateFieldDefinition().getSplitPattern())) {
                MatchResult matchResult = matcher.getMatch();
                Iterator iterator = getAggregateFieldDefinition().getSplitMappingsIterator();
                while (iterator.hasNext()) {
                    SplitMapping splitMapping = (SplitMapping)iterator.next();
                    String result = matchResult.group(splitMapping.getGroup());

                    // Fields can have a non-string datatype, going to the readFromRequest
                    Field field = (Field)fieldsById.get(splitMapping.getFieldId());
                    field.readFromRequest(result);
                }
            } else {
                resetFieldsValues();
            }
View Full Code Here

            PatternMatcher matcher = new Perl5Matcher();
            if (matcher.matches(value, getAggregateFieldDefinition().getSplitPattern())) {
                MatchResult matchResult = matcher.getMatch();
                Iterator iterator = getAggregateFieldDefinition().getSplitMappingsIterator();
                while (iterator.hasNext()) {
                    SplitMapping splitMapping = (SplitMapping)iterator.next();
                    String result = matchResult.group(splitMapping.getGroup());

                    // Fields can have a non-string datatype, going to the readFromRequest
                    Field field = (Field)fieldsById.get(splitMapping.getFieldId());
                    field.readFromRequest(result);
                }
            } else {
                resetFieldsValues();
            }
View Full Code Here

                PatternMatcher matcher = new Perl5Matcher();
                if (matcher.matches(enteredValue, definition.getSplitPattern())) {
                    MatchResult matchResult = matcher.getMatch();
                    Iterator iterator = definition.getSplitMappingsIterator();
                    while (iterator.hasNext()) {
                        SplitMapping splitMapping = (SplitMapping)iterator.next();
                        String result = matchResult.group(splitMapping.getGroup());
                        // Since we know the fields are guaranteed to have a string datatype, we
                        // can set the value immediately, instead of going to the readFromRequest
                        // (which would also require us to create wrapper FormContext and Request
                        // objects)
                        ((Field)fieldsById.get(splitMapping.getFieldId())).setValue(result);
                    }
                } else {
                    // set values of the fields to null
                    Iterator fieldsIt = fields.iterator();
                    while (fieldsIt.hasNext()) {
View Full Code Here

            PatternMatcher matcher = new Perl5Matcher();
            if (matcher.matches(enteredValue, definition.getSplitPattern())) {
                MatchResult matchResult = matcher.getMatch();
                Iterator iterator = definition.getSplitMappingsIterator();
                while (iterator.hasNext()) {
                    SplitMapping splitMapping = (SplitMapping)iterator.next();
                    String result = matchResult.group(splitMapping.getGroup());
                    // Since we know the fields are guaranteed to have a string datatype, we
                    // can set the value immediately, instead of going to the readFromRequest
                    // (which would also require us to create wrapper FormContext and Request
                    // objects)
                    ((Field)fieldsById.get(splitMapping.getFieldId())).setValue(result);
                }
            } else {
                // set values of the fields to null
                Iterator fieldsIt = fields.iterator();
                while (fieldsIt.hasNext()) {
View Full Code Here

TOP

Related Classes of org.apache.cocoon.woody.formmodel.AggregateFieldDefinition.SplitMapping

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.