Class UnknownEffectiveStatementBase<A,D extends UnknownStatement<A>>
- java.lang.Object
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveStatement<A,D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractDeclaredEffectiveStatement<A,D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveDocumentedNodeWithStatus<A,D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.UnknownEffectiveStatementBase<A,D>
-
- All Implemented Interfaces:
AddedByUsesAware
,CopyableNode
,DocumentedNode
,DocumentedNode.WithStatus
,EffectiveStatement<A,D>
,ModelStatement<A>
,SchemaNode
,UnknownSchemaNode
,EffectiveStatementMixins.DocumentedNodeMixin<A,D>
- Direct Known Subclasses:
AnyxmlSchemaLocationEffectiveStatementImpl
public abstract class UnknownEffectiveStatementBase<A,D extends UnknownStatement<A>> extends AbstractEffectiveDocumentedNodeWithStatus<A,D> implements UnknownSchemaNode
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractDeclaredEffectiveStatement
AbstractDeclaredEffectiveStatement.Default<A,D extends DeclaredStatement<A>>, AbstractDeclaredEffectiveStatement.DefaultArgument<A,D extends DeclaredStatement<A>>, AbstractDeclaredEffectiveStatement.DefaultDataNodeContainer<A,D extends DeclaredStatement<A>>, AbstractDeclaredEffectiveStatement.DefaultWithArgument<A,D extends DeclaredStatement<A>>, AbstractDeclaredEffectiveStatement.DefaultWithDataTree<A,D extends DeclaredStatement<A>,E extends DataTreeAwareEffectiveStatement<A,D>>, AbstractDeclaredEffectiveStatement.DefaultWithSchemaTree<A,D extends DeclaredStatement<A>,E extends SchemaTreeAwareEffectiveStatement<A,D>>, AbstractDeclaredEffectiveStatement.WithDataTree<A,D extends DeclaredStatement<A>,E extends DataTreeAwareEffectiveStatement<A,D>>, AbstractDeclaredEffectiveStatement.WithSchemaTree<A,D extends DeclaredStatement<A>,E extends SchemaTreeAwareEffectiveStatement<A,D>>
-
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
DocumentedNode.WithStatus
-
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.parser.rfc7950.stmt.EffectiveStatementMixins.DocumentedNodeMixin
EffectiveStatementMixins.DocumentedNodeMixin.WithStatus<A,D extends DeclaredStatement<A>>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UnknownEffectiveStatementBase(A argument, @NonNull D declared, @NonNull ImmutableList<? extends EffectiveStatement<?,?>> substatements, StmtContext<A,D,?> ctx)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ExtensionDefinition
getExtensionDefinition()
Get extension definition which identifies this node.String
getNodeParameter()
Returns name of the unknown node.QName
getNodeType()
Returns QName instance with the name of the unknown node.boolean
isAddedByUses()
Deprecated.boolean
isAugmenting()
Deprecated.protected static @NonNull Object
maskList(ImmutableList<?> list)
Utility method for squashing singleton lists into single objects.protected static @NonNull Object
maskSet(ImmutableSet<?> set)
String
toString()
protected static <T> @NonNull ImmutableList<T>
unmaskList(@NonNull Object masked, @NonNull Class<T> type)
Utility method for recovering singleton lists squashed bymaskList(ImmutableList)
.protected static <T> @NonNull ImmutableSet<? extends T>
unmaskSet(@NonNull Object masked, @NonNull Class<T> type)
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveDocumentedNodeWithStatus
allSubstatementsOfType, argument, effectiveSubstatements, firstSubstatementOfType, firstSubstatementOfType, getDeclared, getStatus
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractDeclaredEffectiveStatement
getStatementSource
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveStatement
get, getAll, getNamespaceContents, unmaskList
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus
getStatus
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement
findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, get, getAll, streamEffectiveSubstatements
-
Methods inherited from interface org.opendaylight.yangtools.yang.parser.rfc7950.stmt.EffectiveStatementMixins.DocumentedNodeMixin
getDescription, getReference, getUnknownSchemaNodes
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.meta.ModelStatement
getStatementSource, statementDefinition
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.SchemaNode
getPath, getQName
-
-
-
-
Constructor Detail
-
UnknownEffectiveStatementBase
protected UnknownEffectiveStatementBase(A argument, @NonNull D declared, @NonNull ImmutableList<? extends EffectiveStatement<?,?>> substatements, StmtContext<A,D,?> ctx)
-
-
Method Detail
-
isAugmenting
@Deprecated public boolean isAugmenting()
Deprecated.Description copied from interface:CopyableNode
Returnstrue
if this node was added by augmentation, otherwise returnsfalse
.- Specified by:
isAugmenting
in interfaceCopyableNode
- Returns:
true
if this node was added by augmentation, otherwise returnsfalse
-
getNodeType
public QName getNodeType()
Description copied from interface:UnknownSchemaNode
Returns QName instance with the name of the unknown node.- Specified by:
getNodeType
in interfaceUnknownSchemaNode
- Returns:
- QName with name the name of the unknown node.
-
getNodeParameter
public String getNodeParameter()
Description copied from interface:UnknownSchemaNode
Returns name of the unknown node.- Specified by:
getNodeParameter
in interfaceUnknownSchemaNode
- Returns:
- string with the name of unknown node.
-
isAddedByUses
@Deprecated public boolean isAddedByUses()
Deprecated.Description copied from interface:AddedByUsesAware
Returnstrue
if this node was added by uses statement, otherwise returnsfalse
.- Specified by:
isAddedByUses
in interfaceAddedByUsesAware
- Returns:
true
if this node was added by uses statement, otherwise returnsfalse
-
getExtensionDefinition
public ExtensionDefinition getExtensionDefinition()
Description copied from interface:UnknownSchemaNode
Get extension definition which identifies this node.- Specified by:
getExtensionDefinition
in interfaceUnknownSchemaNode
- Returns:
- extension definition if exists, null otherwise
-
maskList
protected static final @NonNull Object maskList(ImmutableList<?> list)
Utility method for squashing singleton lists into single objects. This is a CPU/mem trade-off, which we are usually willing to make: for the cost of an instanceof check we can save one object and re-create it when needed. The inverse operation is #unmaskSubstatements(Object)}.- Parameters:
list
- list to mask- Returns:
- Masked list
- Throws:
NullPointerException
- if list is null
-
unmaskList
protected static final <T> @NonNull ImmutableList<T> unmaskList(@NonNull Object masked, @NonNull Class<T> type)
Utility method for recovering singleton lists squashed bymaskList(ImmutableList)
.- Parameters:
masked
- list to unmask- Returns:
- Unmasked list
- Throws:
NullPointerException
- if any argument is nullClassCastException
- if masked object does not match expected class
-
maskSet
protected static final @NonNull Object maskSet(ImmutableSet<?> set)
-
unmaskSet
protected static final <T> @NonNull ImmutableSet<? extends T> unmaskSet(@NonNull Object masked, @NonNull Class<T> type)
-
-