public abstract class AbstractEffectiveSimpleDataNodeContainer<D extends DeclaredStatement<QName>> extends AbstractEffectiveDocumentedDataNodeContainer<QName,D> implements AugmentationTarget, DataSchemaNode
DocumentedNode.WithStatus
Modifier | Constructor and Description |
---|---|
protected |
AbstractEffectiveSimpleDataNodeContainer(StmtContext<QName,D,?> ctx) |
Modifier and Type | Method and Description |
---|---|
Set<AugmentationSchemaNode> |
getAvailableAugmentations()
Returns augmentations targeting this element.
|
SchemaPath |
getPath()
Returns the schema path of the instance of the type
SchemaNode . |
QName |
getQName()
Returns QName of the instance of the type
SchemaNode . |
Optional<RevisionAwareXPath> |
getWhenCondition()
Returns when statement.
|
boolean |
isAddedByUses()
Deprecated.
|
boolean |
isAugmenting()
Deprecated.
|
boolean |
isConfiguration()
Returns
true if the data represents configuration data,
otherwise returns false . |
protected static @NonNull Object |
maskList(ImmutableList<?> list)
Utility method for squashing singleton lists into single objects.
|
void |
resetAugmenting()
Deprecated.
This method is a violation of immutable contract and is a side-effect of bad/incomplete lifecycle,
which needs to be fixed. Do not introduce new callers. This deficiency is tracked in YANGTOOLS-724.
|
protected static <T> @NonNull ImmutableList<T> |
unmaskList(@NonNull Object masked,
@NonNull Class<T> type)
Utility method for recovering singleton lists squashed by
maskList(ImmutableList) . |
findDataChildByName, getChildNodes, getGroupings, getTypeDefinitions, getUses
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
findDataChildByName, findDataTreeChild, findDataTreeChild, findDataTreeChild, getDataChildByName
findAll, findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, streamEffectiveSubstatements
protected AbstractEffectiveSimpleDataNodeContainer(StmtContext<QName,D,?> ctx)
public QName getQName()
SchemaNode
SchemaNode
.getQName
in interface SchemaNode
public SchemaPath getPath()
SchemaNode
SchemaNode
.getPath
in interface SchemaNode
@Deprecated public boolean isAugmenting()
CopyableNode
true
if this node was added by augmentation,
otherwise returns false
.isAugmenting
in interface CopyableNode
true
if this node was added by augmentation,
otherwise returns false
@Deprecated public boolean isAddedByUses()
AddedByUsesAware
true
if this node was added by uses statement,
otherwise returns false
.isAddedByUses
in interface AddedByUsesAware
true
if this node was added by uses statement,
otherwise returns false
public boolean isConfiguration()
DataSchemaNode
true
if the data represents configuration data,
otherwise returns false
.isConfiguration
in interface DataSchemaNode
true
if the data represents configuration data,
otherwise returns false
public Set<AugmentationSchemaNode> getAvailableAugmentations()
AugmentationTarget
getAvailableAugmentations
in interface AugmentationTarget
public final Optional<RevisionAwareXPath> getWhenCondition()
WhenConditionAware
If when condition is present node defined by the parent data definition statement is only valid when the returned XPath expression conceptually evaluates to "true" for a particular instance, then the node defined by the parent data definition statement is valid; otherwise, it is not.
getWhenCondition
in interface WhenConditionAware
@Deprecated public final void resetAugmenting()
isAugmenting()
to false.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.