Class BaseNodeItemContainerWithName<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>
- 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.CodeNodeItemContainerWithName<I>, io.github.mmm.code.api.object.CodeMutable, Iterable<I>
- Direct Known Subclasses:
BaseNodeItemContainerFlatWithName, BaseNodeItemContainerHierarchicalWithName
public abstract class BaseNodeItemContainerWithName<I extends io.github.mmm.code.api.item.CodeItem>
extends BaseNodeItemContainer<I>
implements io.github.mmm.code.api.node.CodeNodeItemContainerWithName<I>
Base implementation of
CodeNodeItemContainerWithName.- 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.BaseNodeItemContainerWithName(BaseNodeItemContainerWithName<I> template, io.github.mmm.code.api.copy.CodeCopyMapper mapper) The copy-constructor. -
Method Summary
Methods 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.CodeNodeItemContainerWithName
add, copy, getDeclaredOrCreate, getOrCreate, getRequiredMethods inherited from interface io.github.mmm.code.api.CodeWithContext
getContext, getSourceMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
BaseNodeItemContainerWithName
protected BaseNodeItemContainerWithName()The constructor. -
BaseNodeItemContainerWithName
public BaseNodeItemContainerWithName(BaseNodeItemContainerWithName<I> template, io.github.mmm.code.api.copy.CodeCopyMapper mapper) The copy-constructor.- Parameters:
template- theBaseNodeItemContainerWithNameto copy.mapper- theCodeCopyMapper.
-
-
Method Details
-
get
-
get
- Parameters:
name- thenameof the requestedCodeItem.init-trueto ensure this container isinitialized,falseotherwise.- Returns:
- the
CodeItemfromdeclared itemswith the givennameornullif no such item exists.
-
getDeclared
-
getDeclared
- Parameters:
name- thenameof the requestedCodeItem.init-trueto ensure this container isinitialized,falseotherwise.- Returns:
- the
CodeItemfrom thedeclared itemswith the givennameornullif no such item exists.
-