Class BaseNodeItemContainerHierarchicalWithName<I extends io.github.mmm.code.api.item.CodeItem>
java.lang.Object
io.github.mmm.code.base.item.BaseItem
io.github.mmm.code.base.item.BaseMutableItem
io.github.mmm.code.base.node.BaseNodeItem
io.github.mmm.code.base.node.BaseNodeItemContainer<I>
io.github.mmm.code.base.node.BaseNodeItemContainerWithName<I>
io.github.mmm.code.base.node.BaseNodeItemContainerHierarchicalWithName<I>
- Type Parameters:
I- the type of the containedCodeItem.
- All Implemented Interfaces:
io.github.mmm.code.api.CodeWithContext, io.github.mmm.code.api.item.CodeItem, io.github.mmm.code.api.item.CodeMutableItem, io.github.mmm.code.api.node.CodeNode, io.github.mmm.code.api.node.CodeNodeContainer<I>, io.github.mmm.code.api.node.CodeNodeItem, io.github.mmm.code.api.node.CodeNodeItemContainer<I>, io.github.mmm.code.api.node.CodeNodeItemContainerHierarchical<I>, io.github.mmm.code.api.node.CodeNodeItemContainerHierarchicalWithName<I>, io.github.mmm.code.api.node.CodeNodeItemContainerWithName<I>, io.github.mmm.code.api.object.CodeMutable, Iterable<I>
- Direct Known Subclasses:
BaseNestedTypes
public abstract class BaseNodeItemContainerHierarchicalWithName<I extends io.github.mmm.code.api.item.CodeItem>
extends BaseNodeItemContainerWithName<I>
implements io.github.mmm.code.api.node.CodeNodeItemContainerHierarchicalWithName<I>
Base implementation of
CodeNodeItemContainerHierarchicalWithName.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Field Summary
Fields inherited from interface io.github.mmm.code.api.item.CodeItem
DEFAULT_INDENT, DEFAULT_NEWLINE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThe constructor.BaseNodeItemContainerHierarchicalWithName(BaseNodeItemContainerHierarchicalWithName<I> template, io.github.mmm.code.api.copy.CodeCopyMapper mapper) The copy-constructor. -
Method Summary
Methods inherited from class BaseNodeItemContainerWithName
get, getDeclared, getDeclaredMethods inherited from class BaseNodeItemContainer
add, addInternal, clear, doSetImmutable, ensureParent, getByName, getDeclared, getItemCopyType, getKey, getList, getMap, isKeepListView, isNamed, isSystemImmutable, remove, renameMethods inherited from class BaseNodeItem
doInitialize, getContainerItem, getContainerItemDeclared, getContext, getLanguage, getSource, toPathStringMethods inherited from class BaseMutableItem
doCopyNode, doCopyNodeUnsafe, doMapList, doneInitialize, getDefaultCopyMapper, getDefaultEncoding, getReflectiveObject, getSourceCodeObject, initialize, initialize, isImmutable, isInitialized, isInitializing, isSystemImmutable, makeImmutable, makeImmutable, setImmutable, setImmutableIfNotSystemImmutable, verifyMutalbe, writeItemMethods inherited from class BaseItem
doWrite, getOwningType, getSourceCode, getSpaces, toString, writeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.mmm.code.api.item.CodeItem
getLanguage, getSourceCode, write, write, write, write, write, writeMethods inherited from interface io.github.mmm.code.api.object.CodeMutable
isImmutable, isMutableMethods inherited from interface io.github.mmm.code.api.item.CodeMutableItem
getReflectiveObject, setImmutableMethods inherited from interface io.github.mmm.code.api.node.CodeNodeContainer
getDeclared, isEmpty, iteratorMethods inherited from interface io.github.mmm.code.api.node.CodeNodeItemContainer
copy, getParent, removeMethods inherited from interface io.github.mmm.code.api.node.CodeNodeItemContainerHierarchical
getAllMethods inherited from interface io.github.mmm.code.api.node.CodeNodeItemContainerHierarchicalWithName
copyMethods inherited from interface io.github.mmm.code.api.node.CodeNodeItemContainerWithName
add, copy, get, getDeclared, getDeclaredOrCreate, getOrCreate, getRequiredMethods inherited from interface io.github.mmm.code.api.CodeWithContext
getContext, getSourceMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
BaseNodeItemContainerHierarchicalWithName
protected BaseNodeItemContainerHierarchicalWithName()The constructor. -
BaseNodeItemContainerHierarchicalWithName
public BaseNodeItemContainerHierarchicalWithName(BaseNodeItemContainerHierarchicalWithName<I> template, io.github.mmm.code.api.copy.CodeCopyMapper mapper) The copy-constructor.- Parameters:
template- theBaseNodeItemContainerHierarchicalWithNameto copy.mapper- theCodeCopyMapper.
-
-
Method Details
-
get
- Overrides:
getin classBaseNodeItemContainerWithName<I extends io.github.mmm.code.api.item.CodeItem>- Parameters:
name- thenameof the requestedCodeItem.init-trueto ensure this container isinitialized,falseotherwise.- Returns:
- the
CodeItemfromdeclared itemswith the givennameornullif no such item exists.
-