Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
wlfxb - a library for creating and processing of TCF data streams. Copyright (C) Yana Panchenko. This file is part of wlfxb. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
package eu.clarin.weblicht.wlfxb.ed.xb;
public enum ExternalDataLayerTag {
    /*
     * New layers should be added in such an order that they are enumerated
     * after the layers they reference and before the layers that are
     * referencing them. The order here will also be the order in TCF output.
     */
    private static final Map<StringExternalDataLayerTagxmlNameToLayerTagMap =
            new HashMap<StringExternalDataLayerTag>() {
                {
                    for (ExternalDataLayerTag layerTag : ExternalDataLayerTag.values()) {
                        put(layerTag.xmlNamelayerTag);
                    }
                }
            };
    private static final Map<Class<? extends ExternalDataLayer>, ExternalDataLayerTagclassToLayerTagMap =
            new HashMap<Class<? extends ExternalDataLayer>, ExternalDataLayerTag>() {
                {
                    for (ExternalDataLayerTag layerTag : ExternalDataLayerTag.values()) {
                        put(layerTag.getLayerClass(), layerTag);
                    }
                }
            };
    private static final ExternalDataLayerTag[] layersOrder;
    static {
         = new ExternalDataLayerTag[ExternalDataLayerTag.values().length];
        for (ExternalDataLayerTag layerTag : ExternalDataLayerTag.values()) {
            [layerTag.ordinal()] = layerTag;
        }
    }
    private final String xmlName;
    private final Class<? extends ExternalDataLayerlayerClass;
    ExternalDataLayerTag(String nameClass<? extends ExternalDataLayerlayerClass) {
        this. = name;
        this. = layerClass;
    }
    public final String getXmlName() {
        return ;
    }
    public final Class<? extends ExternalDataLayergetLayerClass() {
        return ;
    }
    public static ExternalDataLayerTag getFromXmlName(String xmlName) {
        return .get(xmlName);
    }
    public static List<ExternalDataLayerTagorderedLayerTags() {
        return Arrays.asList();
    }
    public static ExternalDataLayerTag getFromClass(Class<? extends ExternalDataLayercl) {
        return .get(cl);
    }
New to GrepCode? Check out our FAQ X