Class SourcedSection
- java.lang.Object
-
- cc.carm.lib.configuration.source.section.AbstractMapSection<SourcedSection>
-
- cc.carm.lib.configuration.source.section.SourcedSection
-
- All Implemented Interfaces:
ConfigureSection
public class SourcedSection extends AbstractMapSection<SourcedSection>
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull ConfigureSource<? extends SourcedSection,?,?>source-
Fields inherited from class cc.carm.lib.configuration.source.section.AbstractMapSection
data, parent, path
-
-
Constructor Summary
Constructors Constructor Description SourcedSection(@NotNull ConfigureSource<? extends SourcedSection,?,?> source, @NotNull java.util.Map<?,?> raw, @Nullable SourcedSection parent, @NotNull java.lang.String path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull SourcedSectioncreateSection(@NotNull java.lang.String path, @NotNull java.util.Map<?,?> data)Creates a newConfigureSectionwith specified values.charpathSeparator()Get the path separator for the section.static @NotNull SourcedSectionroot(@NotNull ConfigureSource<? extends SourcedSection,?,?> source)static @NotNull SourcedSectionroot(@NotNull ConfigureSource<? extends SourcedSection,?,?> source, @Nullable java.util.Map<?,?> raw)@NotNull SourcedSectionself()@NotNull ConfigureSource<? extends SourcedSection,?,?>source()-
Methods inherited from class cc.carm.lib.configuration.source.section.AbstractMapSection
asMap, contains, data, get, getKeys, getValues, isEmpty, mappingKeys, mappingValues, migrate, parent, path, remove, set, size
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cc.carm.lib.configuration.source.section.ConfigureSection
childPath, computeSection, computeSection, computeSection, computeSection, containsValue, createSection, createSection, createSection, forEach, fullPath, get, get, get, get, getBoolean, getBoolean, getByte, getByte, getByteList, getChar, getChar, getCharList, getCollection, getDouble, getDouble, getDoubleList, getFloat, getFloat, getFloatList, getInt, getInt, getIntegerList, getList, getList, getLong, getLong, getLongList, getSection, getShort, getShort, getString, getString, getStringList, isBoolean, isByte, isChar, isDouble, isFloat, isInt, isList, isLong, isRoot, isSection, isShort, isString, isType, keys, stream, stream, stream, values
-
-
-
-
Field Detail
-
source
@NotNull protected final @NotNull ConfigureSource<? extends SourcedSection,?,?> source
-
-
Constructor Detail
-
SourcedSection
public SourcedSection(@NotNull @NotNull ConfigureSource<? extends SourcedSection,?,?> source, @NotNull @NotNull java.util.Map<?,?> raw, @Nullable @Nullable SourcedSection parent, @NotNull @NotNull java.lang.String path)
-
-
Method Detail
-
root
@NotNull public static @NotNull SourcedSection root(@NotNull @NotNull ConfigureSource<? extends SourcedSection,?,?> source)
-
root
@NotNull public static @NotNull SourcedSection root(@NotNull @NotNull ConfigureSource<? extends SourcedSection,?,?> source, @Nullable @Nullable java.util.Map<?,?> raw)
-
source
@NotNull public @NotNull ConfigureSource<? extends SourcedSection,?,?> source()
-
pathSeparator
public char pathSeparator()
Description copied from interface:ConfigureSectionGet the path separator for the section.- Returns:
- The path separator
-
self
@NotNull public @NotNull SourcedSection self()
- Specified by:
selfin classAbstractMapSection<SourcedSection>
-
createSection
@NotNull public @NotNull SourcedSection createSection(@NotNull @NotNull java.lang.String path, @NotNull @NotNull java.util.Map<?,?> data)
Description copied from interface:ConfigureSectionCreates a newConfigureSectionwith specified values.The
ConfigureSection.parent()of the new section will be this section.This section will not be saved until
ConfigureSection.set(String, Object)is called.If you want to create and use a section and set it to this section, use
ConfigureSection.computeSection(String).- Specified by:
createSectionin interfaceConfigureSection- Specified by:
createSectionin classAbstractMapSection<SourcedSection>data- The data to be used to create section.- Returns:
- Newly created section
-
-