/*
 * Decompiled with CFR 0_110.
 * 
 * Could not load the following classes:
 *  java.lang.Object
 *  java.lang.String
 *  java.util.Hashtable
 */
package com.google.code.microlog4android.repository;

import com.google.code.microlog4android.Level;
import com.google.code.microlog4android.Logger;
import com.google.code.microlog4android.repository.AbstractRepositoryNode;
import com.google.code.microlog4android.repository.CommonLoggerRepository;
import com.google.code.microlog4android.repository.DefaultLoggerRepository;
import java.util.Hashtable;

public class MicrologRepositoryNode
extends AbstractRepositoryNode {
    private Hashtable<String, MicrologRepositoryNode> children = new Hashtable(17);
    private Logger logger;
    private MicrologRepositoryNode parent = null;

    public MicrologRepositoryNode(String string2, Logger logger) {
        this.name = string2;
        this.logger = logger;
    }

    public MicrologRepositoryNode(String string2, Logger logger, MicrologRepositoryNode micrologRepositoryNode) {
        this.name = string2;
        this.logger = logger;
        this.parent = micrologRepositoryNode;
    }

    public MicrologRepositoryNode(String string2, MicrologRepositoryNode micrologRepositoryNode) {
        this.name = string2;
        this.parent = micrologRepositoryNode;
        this.logger = new Logger(string2);
        this.logger.setCommonRepository(DefaultLoggerRepository.INSTANCE);
    }

    public void addChild(MicrologRepositoryNode micrologRepositoryNode) {
        this.children.put((Object)micrologRepositoryNode.getName(), (Object)micrologRepositoryNode);
    }

    public MicrologRepositoryNode getChildNode(String string2) {
        return (MicrologRepositoryNode)this.children.get((Object)string2);
    }

    public Logger getLogger() {
        return this.logger;
    }

    public MicrologRepositoryNode getParent() {
        return this.parent;
    }

    public void resetLogger() {
        this.children.clear();
        this.logger.resetLogger();
        this.logger.setLevel(Level.DEBUG);
    }

    public void setParent(MicrologRepositoryNode micrologRepositoryNode) {
        this.parent = micrologRepositoryNode;
    }
}

