public abstract class AbstractEffectiveSchemaNode<D extends DeclaredStatement<QName>> extends AbstractSchemaEffectiveDocumentedNode<QName,D> implements SchemaNode
DocumentedNode.WithStatus
Modifier | Constructor and Description |
---|---|
protected |
AbstractEffectiveSchemaNode(StmtContext<QName,D,?> ctx) |
Modifier and Type | Method and Description |
---|---|
SchemaPath |
getPath()
Returns the schema path of the instance of the type
SchemaNode . |
QName |
getQName()
Returns QName of the instance of the type
SchemaNode . |
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) . |
findDataSchemaNode, getNamespaceContents
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
getStatus
getDescription, getReference, getUnknownSchemaNodes
findAll, findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, streamEffectiveSubstatements
protected AbstractEffectiveSchemaNode(StmtContext<QName,D,?> ctx)
public final QName getQName()
SchemaNode
SchemaNode
.getQName
in interface SchemaNode
public final SchemaPath getPath()
SchemaNode
SchemaNode
.getPath
in interface SchemaNode
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.