Class AbstractEffectiveOperationDefinition<D extends DeclaredStatement<QName>>
- java.lang.Object
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveStatement<A,D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.EffectiveStatementBase<A,D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.DeclaredEffectiveStatementBase<A,D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveDocumentedNodeWithoutStatus<A,D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveDocumentedNode<A,D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractSchemaEffectiveDocumentedNode<QName,D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveSchemaNode<D>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveOperationDefinition<D>
-
- All Implemented Interfaces:
DocumentedNode
,DocumentedNode.WithStatus
,EffectiveStatement<QName,D>
,ModelStatement<QName>
,OperationDefinition
,SchemaNode
@Deprecated(forRemoval=true) public abstract class AbstractEffectiveOperationDefinition<D extends DeclaredStatement<QName>> extends AbstractEffectiveSchemaNode<D> implements OperationDefinition
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
DocumentedNode.WithStatus
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractEffectiveOperationDefinition(StmtContext<QName,D,?> ctx)
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Set<GroupingDefinition>
getGroupings()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the set of grouping statements declared under this operation.ContainerSchemaNode
getInput()
Deprecated, for removal: This API element is subject to removal in a future version.Returns definition of input parameters for this operation.ContainerSchemaNode
getOutput()
Deprecated, for removal: This API element is subject to removal in a future version.Returns definition of output parameters for this operation.Set<TypeDefinition<?>>
getTypeDefinitions()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the set of type definitions declared under this operation.protected static @NonNull Object
maskList(ImmutableList<?> list)
Utility method for squashing singleton lists into single objects.String
toString()
Deprecated, for removal: This API element is subject to removal in a future version.protected static <T> @NonNull ImmutableList<T>
unmaskList(@NonNull Object masked, @NonNull Class<T> type)
Utility method for recovering singleton lists squashed bymaskList(ImmutableList)
.-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveSchemaNode
getPath, getQName
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractSchemaEffectiveDocumentedNode
derivedSet, findDataSchemaNode, getNamespaceContents
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveDocumentedNode
getStatus, getUnknownSchemaNodes
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveDocumentedNodeWithoutStatus
getDescription, getReference, nullableDescription, nullableReference
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.DeclaredEffectiveStatementBase
argument, getDeclared, getStatementSource, statementDefinition
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.EffectiveStatementBase
allSubstatementsOfType, effectiveSubstatements, firstEffectiveSubstatementOfType, firstSchemaNode, firstSubstatementOfType, firstSubstatementOfType, initSubstatements
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveStatement
get, getAll, 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
getDescription, getReference, getUnknownSchemaNodes
-
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
findAll, findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, streamEffectiveSubstatements
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.SchemaNode
getPath, getQName
-
-
-
-
Constructor Detail
-
AbstractEffectiveOperationDefinition
protected AbstractEffectiveOperationDefinition(StmtContext<QName,D,?> ctx)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
getInput
public final ContainerSchemaNode getInput()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OperationDefinition
Returns definition of input parameters for this operation.- Specified by:
getInput
in interfaceOperationDefinition
- Returns:
- Definition of input parameters for this operation. The substatements of input define nodes under the operation's input node.
-
getOutput
public final ContainerSchemaNode getOutput()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OperationDefinition
Returns definition of output parameters for this operation.- Specified by:
getOutput
in interfaceOperationDefinition
- Returns:
- Definition of output parameters for this operation. The substatements of output define nodes under the operation's output node.
-
getTypeDefinitions
public final Set<TypeDefinition<?>> getTypeDefinitions()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OperationDefinition
Returns the set of type definitions declared under this operation.- Specified by:
getTypeDefinitions
in interfaceOperationDefinition
- Returns:
- Set of type definitions declared under this operation.
-
getGroupings
public final Set<GroupingDefinition> getGroupings()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OperationDefinition
Returns the set of grouping statements declared under this operation.- Specified by:
getGroupings
in interfaceOperationDefinition
- Returns:
- Set of grouping statements declared under this operation.
-
toString
public final String toString()
Deprecated, for removal: This API element is subject to removal in a future version.
-
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
-
-