private void checkImplementationContainer( final ImplementationContainer container) throws ADLException { Implementation impl = container.getImplementation(); if (impl != null) { String className = impl.getClassName(); if (className == null) { throw new ADLException("Implementation class name missing", (Node) impl); } } }
public Component visit(final List<Node> path, final ComponentContainer node, final Map<Object, Object> context) throws ADLException, TaskException { final Implementation impl = castNodeError(node, ImplementationContainer.class).getImplementation(); if (impl == null) { throw new CompilerError(GenericErrors.INTERNAL_ERROR, "This visitor is only applicable for primitive component."); } return createImplementationTask(node, impl); }
if (container instanceof ImplementationContainer) { ImplementationContainer ic = (ImplementationContainer) container; Implementation i = ic.getImplementation(); if (i != null) { implementation = i.getClassName();