Class DefaultSource

java.lang.Object
ch.kk7.confij.source.defaults.DefaultSource
All Implemented Interfaces:
ConfijSource

public class DefaultSource
extends java.lang.Object
implements ConfijSource
This is a special ConfigSource since it does not simply override existing values. It rather extends them, by introducing missing nodes and setting default values (all taken from code and not from external).
  • Constructor Summary

    Constructors
    Constructor Description
    DefaultSource()  
  • Method Summary

    Modifier and Type Method Description
    void override​(ConfijNode rootNode)  
    protected void overrideBranch​(ConfijNode confijBranch)  
    protected void overrideLeaf​(ConfijNode leafNode)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultSource

      public DefaultSource()
  • Method Details

    • override

      public void override​(ConfijNode rootNode)
      Specified by:
      override in interface ConfijSource
    • overrideLeaf

      protected void overrideLeaf​(ConfijNode leafNode)
    • overrideBranch

      protected void overrideBranch​(ConfijNode confijBranch)