A
- Argument type (Void
if statement does not have argument.)D
- Class representing declared version of this statement.@Beta public abstract class AbstractSchemaEffectiveDocumentedNode<A,D extends DeclaredStatement<A>> extends AbstractEffectiveDocumentedNode<A,D>
AbstractEffectiveDocumentedNode
which can optionally support SchemaTreeAwareEffectiveStatement
.DocumentedNode.WithStatus
Modifier | Constructor and Description |
---|---|
protected |
AbstractSchemaEffectiveDocumentedNode(StmtContext<A,D,?> ctx) |
Modifier and Type | Method and Description |
---|---|
protected Optional<DataSchemaNode> |
findDataSchemaNode(QName name)
Indexing support for
DataNodeContainer.findDataChildByName(QName) . |
protected <K,V,N extends IdentifierNamespace<K,V>> |
getNamespaceContents(Class<N> namespace)
Return the statement-specific contents of specified namespace, if available.
|
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 by
maskList(ImmutableList) . |
getStatus, getUnknownSchemaNodes
getDescription, getReference, nullableDescription, nullableReference
argument, getDeclared, getStatementSource, statementDefinition
allSubstatementsOfType, effectiveSubstatements, firstEffectiveSubstatementOfType, firstSchemaNode, firstSubstatementOfType, firstSubstatementOfType, initSubstatements, initSubstatements
get, getAll, unmaskList
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getReference
findAll, findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, streamEffectiveSubstatements
protected AbstractSchemaEffectiveDocumentedNode(StmtContext<A,D,?> ctx)
protected <K,V,N extends IdentifierNamespace<K,V>> Optional<? extends Map<K,V>> getNamespaceContents(Class<N> namespace)
AbstractEffectiveStatement
getNamespaceContents
in class AbstractEffectiveStatement<A,D extends DeclaredStatement<A>>
namespace
- Requested namespaceprotected final Optional<DataSchemaNode> findDataSchemaNode(QName name)
DataNodeContainer.findDataChildByName(QName)
.protected static final @NonNull Object maskList(ImmutableList<?> list)
list
- list to maskNullPointerException
- if list is nullprotected static final <T> @NonNull ImmutableList<T> unmaskList(@NonNull Object masked, @NonNull Class<T> type)
maskList(ImmutableList)
.masked
- list to unmaskNullPointerException
- if any argument is nullClassCastException
- if masked object does not match expected classCopyright © 2020 OpenDaylight. All rights reserved.