/** * See {@link StatementSupport#getPublicView()}. */ @Override public StatementDefinition getPublicDefinition() { return definition().getPublicView(); }
/** * Ends declared section of current node. */ void endDeclared(final ModelProcessingPhase phase) { definition().onDeclarationFinished(this, phase); }
@Override protected void checkLocalNamespaceAllowed(final Class<? extends IdentifierNamespace<?, ?>> type) { definition().checkNamespaceAllowed(type); }
SubstatementContext(final StatementContextBase<A, D, E> original, final StatementContextBase<?, ?, ?> parent, final CopyType copyType, final QNameModule targetModule) { super(original, copyType); this.parent = requireNonNull(parent); this.argument = targetModule == null ? original.getStatementArgument() : original.definition().adaptArgumentValue(original, targetModule); }
@Override public D buildDeclared() { checkArgument(completedPhase == ModelProcessingPhase.FULL_DECLARATION || completedPhase == ModelProcessingPhase.EFFECTIVE_MODEL); if (declaredInstance == null) { declaredInstance = definition().getFactory().createDeclared(this); } return declaredInstance; }
@Override public E buildEffective() { if (effectiveInstance == null) { effectiveInstance = definition().getFactory().createEffective(this); } return effectiveInstance; }
def = checkNotNull(current.definition().getAsUnknownStatementDefinition(def), "Unable to create unknown statement definition of yang statement %s in unknown statement %s", def, current);