package org.opendaylight.yangtools.yang.parser.spi.meta;
import com.google.common.base.Preconditions;
+import javax.annotation.Nonnull;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
this.type = Preconditions.checkNotNull(publicDefinition);
}
+ @Nonnull
@Override
public final QName getStatementName() {
return type.getStatementName();
return type.getArgumentName();
}
+ @Nonnull
@Override
public final Class<? extends DeclaredStatement<?>> getDeclaredRepresentationClass() {
return type.getDeclaredRepresentationClass();
}
+ @Nonnull
@Override
- public final Class<? extends DeclaredStatement<?>> getEffectiveRepresentationClass() {
+ public final Class<? extends EffectiveStatement<?,?>> getEffectiveRepresentationClass() {
return type.getEffectiveRepresentationClass();
}
*
*/
@Override
- public void onLinkageDeclared(StmtContext.Mutable<A, D, E> stmt) throws InferenceException, SourceException {
+ public void onPreLinkageDeclared(StmtContext.Mutable<A, D, E> stmt) {
// NOOP for most implementations
}
*
*/
@Override
- public void onStatementDefinitionDeclared(StmtContext.Mutable<A, D, E> stmt) throws InferenceException,
- SourceException {
+ public void onLinkageDeclared(StmtContext.Mutable<A, D, E> stmt) throws SourceException {
// NOOP for most implementations
}
*
*/
@Override
- public void onFullDefinitionDeclared(StmtContext.Mutable<A, D, E> stmt) throws InferenceException, SourceException {
+ public void onStatementDefinitionDeclared(StmtContext.Mutable<A, D, E> stmt) throws SourceException {
// NOOP for most implementations
}
+ /**
+ *
+ * {@inheritDoc}
+ *
+ * Subclasses of this class may override this method to perform actions on
+ * this event or register modification action using
+ * {@link StmtContext.Mutable#newInferenceAction(ModelProcessingPhase)}.
+ *
+ */
+ @Override
+ public void onFullDefinitionDeclared(StmtContext.Mutable<A, D, E> stmt) throws SourceException {
+ // NOOP for most implementations
+ }
+
+ @Override
+ public boolean isArgumentYinElement() {
+ return getPublicView().isArgumentYinElement();
+ }
}