org.apache.logging.log4j.core.config
Class Node

java.lang.Object
  extended by org.apache.logging.log4j.core.config.Node

public class Node
extends Object

A Configuration node.


Constructor Summary
Node()
           
Node(Node node)
           
Node(Node parent, String name, PluginType<?> type)
          Creates a new instance of Node and initializes it with a name and the corresponding XML element.
 
Method Summary
 Map<String,String> getAttributes()
           
 List<Node> getChildren()
           
 String getName()
           
 Object getObject()
           
 Node getParent()
           
 PluginType<?> getType()
           
 String getValue()
           
 boolean hasChildren()
           
 boolean isRoot()
           
 void setObject(Object obj)
           
 void setValue(String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Node

public Node(Node parent,
            String name,
            PluginType<?> type)
Creates a new instance of Node and initializes it with a name and the corresponding XML element.

Parameters:
parent - the node's parent.
name - the node's name.
type - The Plugin Type associated with the node.

Node

public Node()

Node

public Node(Node node)
Method Detail

getAttributes

public Map<String,String> getAttributes()

getChildren

public List<Node> getChildren()

hasChildren

public boolean hasChildren()

getValue

public String getValue()

setValue

public void setValue(String value)

getParent

public Node getParent()

getName

public String getName()

isRoot

public boolean isRoot()

setObject

public void setObject(Object obj)

getObject

public Object getObject()

getType

public PluginType<?> getType()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.