Class DefaultStatementDefinition<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>
java.lang.Object
org.opendaylight.yangtools.yang.model.api.meta.AbstractStatementDefinition
org.opendaylight.yangtools.yang.model.api.meta.DefaultStatementDefinition<A,D,E>
- Type Parameters:
A
- Argument typeD
- Declared statement representationE
- Effective statement representation
- All Implemented Interfaces:
Immutable
,StatementDefinition
@Beta
@NonNullByDefault
public final class DefaultStatementDefinition<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>
extends AbstractStatementDefinition
Default implementation of the
StatementDefinition
contract. Instances of this class should be used as
well-known singletons.- Author:
- Robert Varga
-
Method Summary
Modifier and TypeMethodDescriptionprotected MoreObjects.ToStringHelper
Class
<? extends DeclaredStatement<?>> Returns class which represents declared version of statement associated with this definition.Class
<? extends EffectiveStatement<?, ?>> Returns class which represents derived behaviour from supplied statement.static <A,
D extends DeclaredStatement<A>, E extends EffectiveStatement<A, D>>
DefaultStatementDefinition<A, D, E> static <A,
D extends DeclaredStatement<A>, E extends EffectiveStatement<A, D>>
DefaultStatementDefinition<A, D, E> of
(QName statementName, Class<D> declaredRepresentation, Class<E> effectiveRepresentation, QName argumentName) static <A,
D extends DeclaredStatement<A>, E extends EffectiveStatement<A, D>>
DefaultStatementDefinition<A, D, E> of
(QName statementName, Class<D> declaredRepresentation, Class<E> effectiveRepresentation, QName argumentName, boolean argumentYinElement) Methods inherited from class org.opendaylight.yangtools.yang.model.api.meta.AbstractStatementDefinition
getArgumentDefinition, getStatementName, toString
-
Method Details
-
of
public static <A,D extends DeclaredStatement<A>, DefaultStatementDefinition<A,E extends EffectiveStatement<A, D>> D, ofE> (QName statementName, Class<D> declaredRepresentation, Class<E> effectiveRepresentation) -
of
public static <A,D extends DeclaredStatement<A>, DefaultStatementDefinition<A,E extends EffectiveStatement<A, D>> D, ofE> (QName statementName, Class<D> declaredRepresentation, Class<E> effectiveRepresentation, QName argumentName) -
of
public static <A,D extends DeclaredStatement<A>, DefaultStatementDefinition<A,E extends EffectiveStatement<A, D>> D, ofE> (QName statementName, Class<D> declaredRepresentation, Class<E> effectiveRepresentation, QName argumentName, boolean argumentYinElement) -
getDeclaredRepresentationClass
Description copied from interface:StatementDefinition
Returns class which represents declared version of statement associated with this definition. This class should be an interface which provides convenience access to declared substatements.- Returns:
- class which represents declared version of statement associated with this definition.
-
getEffectiveRepresentationClass
Description copied from interface:StatementDefinition
Returns class which represents derived behaviour from supplied statement. This class should be an interface which defines convenience access to statement properties, namespace items and substatements.- Returns:
- class which represents effective version of statement associated with this definition
-
addToStringAttributes
- Overrides:
addToStringAttributes
in classAbstractStatementDefinition
-