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
,MutationBehaviour<Immutable>
,StatementDefinition
@Beta @NonNullByDefault public final class DefaultStatementDefinition<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>> extends AbstractStatementDefinition
Default implementation of theStatementDefinition
contract. Instances of this class should be used as well-known singletons.- Author:
- Robert Varga
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MoreObjects.ToStringHelper
addToStringAttributes(MoreObjects.ToStringHelper helper)
Class<? extends DeclaredStatement<?>>
getDeclaredRepresentationClass()
Returns class which represents declared version of statement associated with this definition.Class<? extends EffectiveStatement<?,?>>
getEffectiveRepresentationClass()
Returns class which represents derived behaviour from supplied statement.static <A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>>
DefaultStatementDefinition<A,D,E>of(QName statementName, Class<D> declaredRepresentation, Class<E> effectiveRepresentation)
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 Detail
-
of
public static <A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>> DefaultStatementDefinition<A,D,E> of(QName statementName, Class<D> declaredRepresentation, Class<E> effectiveRepresentation)
-
of
public 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)
-
of
public 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)
-
getDeclaredRepresentationClass
public Class<? extends DeclaredStatement<?>> 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
public Class<? extends EffectiveStatement<?,?>> 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
protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper helper)
- Overrides:
addToStringAttributes
in classAbstractStatementDefinition
-
-