Class AbstractDeclaredEffectiveStatement<A,D extends DeclaredStatement<A>>
java.lang.Object
org.opendaylight.yangtools.yang.model.api.meta.AbstractEffectiveStatement<A,D>
org.opendaylight.yangtools.yang.model.spi.meta.AbstractDeclaredEffectiveStatement<A,D>
- Type Parameters:
A- Argument type (Emptyif statement does not have argument.)D- Class representing declared version of this statement.
- All Implemented Interfaces:
EffectiveStatement<A,,D> ModelStatement<A>
- Direct Known Subclasses:
AbstractDeclaredEffectiveStatement.Default,AbstractDeclaredEffectiveStatement.WithSchemaTree,AbstractEffectiveUnknownSchmemaNode
@Beta
public abstract non-sealed class AbstractDeclaredEffectiveStatement<A,D extends DeclaredStatement<A>>
extends AbstractEffectiveStatement<A,D>
Base stateless superclass for statements which (logically) always have an associated
DeclaredStatement. This
is notably not true for all case statements, some of which may actually be implied.
Note implementations are not strictly required to make the declared statement available, they are free to throw
UnsupportedOperationException from getDeclared(), rendering any services relying on declared
statement to be not available.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA stateful version ofAbstractDeclaredEffectiveStatement, which holds (and requires) a declared statement.static classAn extra building block on top ofAbstractDeclaredEffectiveStatement.Default, which is wiringAbstractDeclaredEffectiveStatement.DefaultArgument.argument()to the declared statement.static classA building block on top ofAbstractDeclaredEffectiveStatement.Default, which adds an explicit argument value, which is not related to the context.static classStateful version ofAbstractDeclaredEffectiveStatement.WithDataTree.static classStateful version ofAbstractDeclaredEffectiveStatement.WithSchemaTree.static classBase stateless superclass forDataTreeAwareEffectiveStatements.static classBase stateless superclass formSchemaTreeAwareEffectiveStatements. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.common.base.MoreObjects.ToStringHelperaddToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper arg0) protected static @NonNull Map<QName,DataTreeEffectiveStatement<?>> createDataTreeNamespace(Collection<SchemaTreeEffectiveStatement<?>> schemaTreeStatements, Map<QName, SchemaTreeEffectiveStatement<?>> schemaTreeNamespace) protected static @NonNull Map<QName,SchemaTreeEffectiveStatement<?>> createSchemaTreeNamespace(Collection<? extends EffectiveStatement<?, ?>> substatements) Create a Map containing the contents of the schema tree.protected static @NonNull HashMap<QName,TypedefEffectiveStatement> createTypedefNamespace(Collection<? extends EffectiveStatement<?, ?>> substatements) com.google.common.collect.ImmutableList<? extends EffectiveStatement<?,?>> final booleanabstract @NonNull Dfinal inthashCode()protected static <T extends SchemaTreeEffectiveStatement<?>>
@NonNull Map<QName,T> immutableNamespaceOf(Map<QName, T> map) protected static final ObjectmaskList(com.google.common.collect.ImmutableList<?> arg0) protected static final ObjectmaskSet(com.google.common.collect.ImmutableSet<?> arg0) final StringtoString()protected static final <T extends Object>
com.google.common.collect.ImmutableList<T>unmaskList(Object arg0, Class<T> arg1) protected static final <T extends Object>
com.google.common.collect.ImmutableSet<T>Methods inherited from class org.opendaylight.yangtools.yang.model.api.meta.AbstractEffectiveStatement
filterOptional, findValue, unmaskListMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement
collectEffectiveSubstatements, findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, statementOrigin, streamEffectiveSubstatementsMethods inherited from interface org.opendaylight.yangtools.yang.model.api.meta.ModelStatement
argument, statementDefinition
-
Constructor Details
-
AbstractDeclaredEffectiveStatement
public AbstractDeclaredEffectiveStatement()
-
-
Method Details
-
getDeclared
-
effectiveSubstatements
public com.google.common.collect.ImmutableList<? extends EffectiveStatement<?,?>> effectiveSubstatements() -
createSchemaTreeNamespace
protected static @NonNull Map<QName,SchemaTreeEffectiveStatement<?>> createSchemaTreeNamespace(Collection<? extends EffectiveStatement<?, ?>> substatements) Create a Map containing the contents of the schema tree. Retur- Parameters:
substatements- Substatements to index- Returns:
- Index of the schema tree as a mutable Map
- Throws:
NullPointerException- ifsubstatementsis null
-
createDataTreeNamespace
protected static @NonNull Map<QName,DataTreeEffectiveStatement<?>> createDataTreeNamespace(Collection<SchemaTreeEffectiveStatement<?>> schemaTreeStatements, Map<QName, SchemaTreeEffectiveStatement<?>> schemaTreeNamespace) -
immutableNamespaceOf
protected static <T extends SchemaTreeEffectiveStatement<?>> @NonNull Map<QName,T> immutableNamespaceOf(Map<QName, T> map) -
createTypedefNamespace
protected static @NonNull HashMap<QName,TypedefEffectiveStatement> createTypedefNamespace(Collection<? extends EffectiveStatement<?, ?>> substatements) -
hashCode
public final int hashCode() -
equals
-
toString
-
addToStringAttributes
protected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper arg0) -
maskList
-
unmaskList
-
maskSet
-
unmaskSet
-