// Path: gaulois-pipe/src/main/java/fr/efl/chaine/xslt/InvalidSyntaxException.java
// public class InvalidSyntaxException extends Exception {
// 
//     public InvalidSyntaxException() {
//     }
// 
//     public InvalidSyntaxException(String message) {
//         super(message);
//     }
// 
//     public InvalidSyntaxException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public InvalidSyntaxException(Throwable cause) {
//         super(cause);
//     }
// 
//     public InvalidSyntaxException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
//         super(message, cause, enableSuppression, writableStackTrace);
//     }
//     
// }


import net.sf.saxon.s9api.QName;
import fr.efl.chaine.xslt.InvalidSyntaxException;
import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
 * This Source Code Form is subject to the terms of 
 * the Mozilla Public License, v. 2.0. If a copy of 
 * the MPL was not distributed with this file, You 
 * can obtain one at https://mozilla.org/MPL/2.0/.
 */
package fr.efl.chaine.xslt.config;



/**
 *
 * @author ext-cmarchand
 */
public class Sources implements Verifiable {
    private static final Logger LOGGER = LoggerFactory.getLogger(Sources.class);
    static final QName QNAME = new QName(Config.NS, "sources");
    static final QName ATTR_ORDERBY = new QName("orderBy");
    static final QName ATTR_SORT = new QName("sort");
    private final String orderBy, sort;
    private final List<CfgFile> files;
    private long maxFileSize = 0l;
    private Map<File,Integer> hrefCount;
    private Listener listener;

    
// Path: gaulois-pipe/src/main/java/fr/efl/chaine/xslt/InvalidSyntaxException.java
// public class InvalidSyntaxException extends Exception {
// 
//     public InvalidSyntaxException() {
//     }
// 
//     public InvalidSyntaxException(String message) {
//         super(message);
//     }
// 
//     public InvalidSyntaxException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public InvalidSyntaxException(Throwable cause) {
//         super(cause);
//     }
// 
//     public InvalidSyntaxException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
//         super(message, cause, enableSuppression, writableStackTrace);
//     }
//     
// }


// Path: gaulois-pipe/src/main/java/fr/efl/chaine/xslt/config/Sources.java
import net.sf.saxon.s9api.QName;
import fr.efl.chaine.xslt.InvalidSyntaxException;
import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * This Source Code Form is subject to the terms of 
 * the Mozilla Public License, v. 2.0. If a copy of 
 * the MPL was not distributed with this file, You 
 * can obtain one at https://mozilla.org/MPL/2.0/.
 */
package fr.efl.chaine.xslt.config;



/**
 *
 * @author ext-cmarchand
 */
public class Sources implements Verifiable {
    private static final Logger LOGGER = LoggerFactory.getLogger(Sources.class);
    static final QName QNAME = new QName(Config.NS, "sources");
    static final QName ATTR_ORDERBY = new QName("orderBy");
    static final QName ATTR_SORT = new QName("sort");
    private final String orderBy, sort;
    private final List<CfgFile> files;
    private long maxFileSize = 0l;
    private Map<File,Integer> hrefCount;
    private Listener listener;

    
    public Sources(String orderBy, String sort) throws InvalidSyntaxException {