@Beta public abstract class AbstractEffectiveDocumentedNodeWithoutStatus<A,D extends DeclaredStatement<A>> extends DeclaredEffectiveStatementBase<A,D> implements DocumentedNode
DocumentedNode.WithStatus
Modifier | Constructor and Description |
---|---|
protected |
AbstractEffectiveDocumentedNodeWithoutStatus(StmtContext<A,D,?> ctx) |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getDescription()
Returns the value of the argument of YANG
description keyword. |
Optional<String> |
getReference()
Returns the value of the argument of YANG
reference keyword. |
protected static @NonNull Object |
maskList(ImmutableList<?> list)
Utility method for squashing singleton lists into single objects.
|
protected @Nullable String |
nullableDescription() |
protected @Nullable String |
nullableReference() |
protected static <T> @NonNull ImmutableList<T> |
unmaskList(@NonNull Object masked,
@NonNull Class<T> type)
Utility method for recovering singleton lists squashed by
maskList(ImmutableList) . |
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
getUnknownSchemaNodes
findAll, findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, streamEffectiveSubstatements
protected AbstractEffectiveDocumentedNodeWithoutStatus(StmtContext<A,D,?> ctx)
public final Optional<String> getDescription()
DocumentedNode
description
keyword.getDescription
in interface DocumentedNode
public final Optional<String> getReference()
DocumentedNode
reference
keyword.getReference
in interface DocumentedNode
protected final @Nullable String nullableDescription()
protected final @Nullable String nullableReference()
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.