Package org.jitterbit.integration.data.structure.text

Examples of org.jitterbit.integration.data.structure.text.TextValidatorFactory


final class FixedWidthFieldTableModelValidator {

    private final TextStructureValidator validator;

    FixedWidthFieldTableModelValidator(final FixedWidthFieldTableModel model) {
        TextValidatorFactory factory = new TextValidatorFactory();
        validator = factory.createFixedFieldValidator(new Iterable<Field>() {

            @Override
            public Iterator<Field> iterator() {
                return model.getFieldIterator();
            }
View Full Code Here


        this.model = model;
    }

    @Override
    protected TextStructureValidator getValidator() {
        TextValidatorFactory factory = new TextValidatorFactory();
        return factory.createFieldValidator(new Iterable<Field>() {

            @Override
            public Iterator<Field> iterator() {
                return model.getFieldIterator();
            }
View Full Code Here

        this.model = model;
    }

    @Override
    protected TextStructureValidator getValidator() {
        TextValidatorFactory factory = new TextValidatorFactory();
        return factory.createSegmentValidator(new Iterable<Segment>() {

            @Override
            public Iterator<Segment> iterator() {
                return model.getSegmentIterator();
            }
View Full Code Here

            // When a new document is created, it can be validated without its
            // structure having been set.
            fatal(DocumentMessages.getString("TextDocumentValidator.NoStructure"));
            return;
        }
        TextValidatorFactory validatorFactory = new TextValidatorFactory();
        if (structure instanceof SimpleTextStructure) {
            validateFields((SimpleTextStructure) structure, validatorFactory);
        } else {
            validateComplexStructure((ComplexTextStructure) structure, validatorFactory);
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.structure.text.TextValidatorFactory

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.