All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zhangyue.we.anoprocesser.xml.AttrReader Maven / Gradle / Ivy

The newest version!
package com.zhangyue.we.anoprocesser.xml;

import java.io.File;
import java.util.HashMap;
import java.util.Map;

/**
 * @author chengwei 2018/8/25
 */
public class AttrReader {
    private final HashMap mAttrs = new HashMap<>();
    private HashMap mAttr2Funcs;


    public AttrReader(HashMap attr2Func) {
        this.mAttr2Funcs = attr2Func;
    }

    public HashMap parse() {
        if (mAttr2Funcs != null) {
            for (Map.Entry entry : mAttr2Funcs.entrySet()) {
                mAttrs.put(entry.getKey(), new Attr(entry.getKey(), entry.getValue()));
            }
        }
        return mAttrs;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy