Class AbstractEffectiveContainerSchemaNode<D extends DeclaredStatement<QName>>
- java.lang.Object
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveStatement<A,D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.EffectiveStatementBase<A,D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.DeclaredEffectiveStatementBase<A,D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveDocumentedNodeWithoutStatus<A,D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveDocumentedNode<A,D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractSchemaEffectiveDocumentedNode<A,D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveDocumentedDataNodeContainer<QName,D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveSimpleDataNodeContainer<D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveMustConstraintAwareSimpleDataNodeContainer<D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveContainerSchemaNode<D>
-
- All Implemented Interfaces:
ActionNodeContainer
,AddedByUsesAware
,AugmentationTarget
,ContainerSchemaNode
,CopyableNode
,DataNodeContainer
,DataSchemaNode
,DocumentedNode
,DocumentedNode.WithStatus
,EffectiveStatement<QName,D>
,ModelStatement<QName>
,MustConstraintAware
,NotificationNodeContainer
,SchemaNode
,ActionNodeContainerCompat<QName,D>
,NotificationNodeContainerCompat<QName,D>
,SchemaTreeAwareEffectiveStatement<QName,D>
,WhenConditionAware
- Direct Known Subclasses:
AbstractEffectiveOperationContainerSchemaNode
@Deprecated(forRemoval=true) public abstract class AbstractEffectiveContainerSchemaNode<D extends DeclaredStatement<QName>> extends AbstractEffectiveMustConstraintAwareSimpleDataNodeContainer<D> implements ContainerSchemaNode, ActionNodeContainerCompat<QName,D>, NotificationNodeContainerCompat<QName,D>
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
DocumentedNode.WithStatus
-
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.model.api.stmt.SchemaTreeAwareEffectiveStatement
SchemaTreeAwareEffectiveStatement.Namespace<T extends SchemaTreeEffectiveStatement<?>>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractEffectiveContainerSchemaNode(StmtContext<QName,D,?> ctx)
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected static @NonNull Object
maskList(ImmutableList<?> list)
Utility method for squashing singleton lists into single objects.protected static <T> @NonNull ImmutableList<T>
unmaskList(@NonNull Object masked, @NonNull Class<T> type)
Utility method for recovering singleton lists squashed bymaskList(ImmutableList)
.-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveMustConstraintAwareSimpleDataNodeContainer
getMustConstraints
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveSimpleDataNodeContainer
getAvailableAugmentations, getPath, getQName, getWhenCondition, isAddedByUses, isAugmenting, isConfiguration, resetAugmenting
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveDocumentedDataNodeContainer
findDataChildByName, getChildNodes, getGroupings, getTypeDefinitions, getUses
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractSchemaEffectiveDocumentedNode
derivedSet, findDataSchemaNode, getNamespaceContents
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveDocumentedNode
getStatus, getUnknownSchemaNodes
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveDocumentedNodeWithoutStatus
getDescription, getReference, nullableDescription, nullableReference
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.DeclaredEffectiveStatementBase
argument, getDeclared, getStatementSource, statementDefinition
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.EffectiveStatementBase
allSubstatementsOfType, effectiveSubstatements, firstEffectiveSubstatementOfType, firstSchemaNode, firstSubstatementOfType, firstSubstatementOfType, initSubstatements
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveStatement
get, getAll, unmaskList
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.ActionNodeContainer
getActions
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.stmt.compat.ActionNodeContainerCompat
findAction
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.AddedByUsesAware
isAddedByUses
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.AugmentationTarget
getAvailableAugmentations
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode
isPresenceContainer
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.CopyableNode
isAugmenting
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DataNodeContainer
findDataChildByName, findDataChildByName, findDataTreeChild, findDataTreeChild, findDataTreeChild, getChildNodes, getDataChildByName, getGroupings, getTypeDefinitions, getUses
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DataSchemaNode
isConfiguration
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
getDescription, getReference, getUnknownSchemaNodes
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus
getStatus
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement
effectiveSubstatements, findAll, findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, get, getAll, getDeclared, streamEffectiveSubstatements
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.meta.ModelStatement
argument, getStatementSource, statementDefinition
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.MustConstraintAware
getMustConstraints
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.NotificationNodeContainer
getNotifications
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.stmt.compat.NotificationNodeContainerCompat
findNotification
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.SchemaNode
getPath, getQName
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.stmt.SchemaTreeAwareEffectiveStatement
findSchemaTreeNode
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.WhenConditionAware
getWhenCondition
-
-
-
-
Constructor Detail
-
AbstractEffectiveContainerSchemaNode
protected AbstractEffectiveContainerSchemaNode(StmtContext<QName,D,?> ctx)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
maskList
protected static final @NonNull Object maskList(ImmutableList<?> list)
Utility method for squashing singleton lists into single objects. This is a CPU/mem trade-off, which we are usually willing to make: for the cost of an instanceof check we can save one object and re-create it when needed. The inverse operation is #unmaskSubstatements(Object)}.- Parameters:
list
- list to mask- Returns:
- Masked list
- Throws:
NullPointerException
- if list is null
-
unmaskList
protected static final <T> @NonNull ImmutableList<T> unmaskList(@NonNull Object masked, @NonNull Class<T> type)
Utility method for recovering singleton lists squashed bymaskList(ImmutableList)
.- Parameters:
masked
- list to unmask- Returns:
- Unmasked list
- Throws:
NullPointerException
- if any argument is nullClassCastException
- if masked object does not match expected class
-
-