public abstract class AbstractEffectiveDocumentedNode<A,D extends DeclaredStatement<A>> extends AbstractEffectiveDocumentedNodeWithoutStatus<A,D> implements DocumentedNode.WithStatus
DocumentedNode.WithStatus
Modifier | Constructor and Description |
---|---|
protected |
AbstractEffectiveDocumentedNode(StmtContext<A,D,?> ctx)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Status |
getStatus()
Returns status of the instance of the type
SchemaNode . |
ImmutableList<UnknownSchemaNode> |
getUnknownSchemaNodes()
Returns unknown schema nodes which belongs to this instance.
|
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) . |
getDescription, getReference, nullableDescription, nullableReference
argument, getDeclared, getStatementSource, statementDefinition
allSubstatementsOfType, effectiveSubstatements, firstEffectiveSubstatementOfType, firstSchemaNode, firstSubstatementOfType, firstSubstatementOfType, initSubstatements, initSubstatements
get, getAll, getNamespaceContents, unmaskList
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getReference
findAll, findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, streamEffectiveSubstatements
protected AbstractEffectiveDocumentedNode(StmtContext<A,D,?> ctx)
ctx
- context of statement.public final Status getStatus()
DocumentedNode.WithStatus
SchemaNode
.getStatus
in interface DocumentedNode.WithStatus
status
substatementpublic final ImmutableList<UnknownSchemaNode> getUnknownSchemaNodes()
DocumentedNode
getUnknownSchemaNodes
in interface DocumentedNode
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.