A - Argument typeD - Declared statement representationE - Effective statement representation@Beta @NonNullByDefault @ThreadSafe public final class DefaultStatementDefinition<A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>> extends Object implements StatementDefinition
StatementDefinition contract. Instances of this class should be used as
well-known singletons.| Modifier and Type | Method and Description |
|---|---|
@Nullable QName |
getArgumentName()
Returns name of statement argument or null, if statement does not have argument.
|
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.
|
QName |
getStatementName()
Returns name of the statement.
|
boolean |
isArgumentYinElement()
Returns true, if argument of statement is represented as value of yin element.
|
static <A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>> |
of(QName statementName,
Class<D> declaredRepresentation,
Class<E> effectiveRepresentation) |
static <A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>> |
of(QName statementName,
Class<D> declaredRepresentation,
Class<E> effectiveRepresentation,
QName argumentName) |
static <A,D extends DeclaredStatement<A>,E extends EffectiveStatement<A,D>> |
of(QName statementName,
Class<D> declaredRepresentation,
Class<E> effectiveRepresentation,
QName argumentName,
boolean argumentYinElement) |
String |
toString() |
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)
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)
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)
public QName getStatementName()
StatementDefinitiongetStatementName in interface StatementDefinitionpublic @Nullable QName getArgumentName()
StatementDefinitiongetArgumentName in interface StatementDefinitionpublic Class<? extends DeclaredStatement<?>> getDeclaredRepresentationClass()
StatementDefinitiongetDeclaredRepresentationClass in interface StatementDefinitionpublic Class<? extends EffectiveStatement<?,?>> getEffectiveRepresentationClass()
StatementDefinitiongetEffectiveRepresentationClass in interface StatementDefinitionpublic boolean isArgumentYinElement()
StatementDefinitionisArgumentYinElement in interface StatementDefinitionCopyright © 2019 OpenDaylight. All rights reserved.