/** Returns the widget of the specified class name. * * @param widgetClass the name of the widget class (JavaScript class), * including the package name. * @exception DefinitionNotFoundException is thrown if the definition * is not found * @since 5.0.0 */ public WidgetDefinition getWidgetDefinition(String widgetClass) { final WidgetDefinition wgtdef = getWidgetDefinitionIfAny(widgetClass); if (wgtdef == null) throw new DefinitionNotFoundException("Widget definition not found: " + widgetClass); return wgtdef; }
/** Returns {@link ComponentDefinition} of the specified name. * * <p>Note: anonymous shadow element definition won't be returned by * this method. * * @param name the name of the shadow element definition. * @exception DefinitionNotFoundException is thrown if the definition * is not found */ public ComponentDefinition getShadowDefinition(String name) { final ComponentDefinition compdef = _shadowdefs.get(name); if (compdef == null) throw new DefinitionNotFoundException("Shadow element definition not found: " + name); return compdef; }
/** Returns {@link ComponentDefinition} of the specified class. * * <p>Note: anonymous shadow element definition won't be returned by * this method. * * @param klass the class that implements the shadow element. * @exception DefinitionNotFoundException is thrown if the definition * is not found * @since 8.0.0 */ public ComponentDefinition getShadowDefinition(Class klass) { final ComponentDefinition compdef = _shadowdefs.get(klass); if (compdef == null) throw new DefinitionNotFoundException("Shadow element definition not found: " + klass); return compdef; }
/** Returns {@link ComponentDefinition} of the specified name. * * <p>Note: anonymous component definition won't be returned by * this method. * * @param name the name of the component definition. * @exception DefinitionNotFoundException is thrown if the definition * is not found */ public ComponentDefinition getComponentDefinition(String name) { final ComponentDefinition compdef = _compdefs.get(name); if (compdef == null) throw new DefinitionNotFoundException("Component definition not found: " + name); return compdef; }
/** Returns {@link ComponentDefinition} of the specified class. * * <p>Note: anonymous component definition won't be returned by * this method. * * @param klass the class that implements the component. * @exception DefinitionNotFoundException is thrown if the definition * is not found */ public ComponentDefinition getComponentDefinition(Class klass) { final ComponentDefinition compdef = _compdefs.get(klass); if (compdef == null) throw new DefinitionNotFoundException("Component definition not found: " + klass); return compdef; }
/** Returns the language definition by specifying an extension. * * @param ext the extension, e.g., "zul". * If null, "zul" is assumed. * @exception DefinitionNotFoundException is thrown if the definition * is not found */ public static final LanguageDefinition getByExtension(String ext) { init(); if (ext == null) ext = "zul"; final LanguageDefinition langdef; synchronized (_ldefsByExt) { langdef = _ldefsByExt.get(ext); } if (langdef == null) throw new DefinitionNotFoundException("Language not found for extension " + ext); return langdef; }
throw new DefinitionNotFoundException(ZK_NAMESPACE + " is reserved. Use it only with reserved elements and attributes, such as zscript and attribute"); else throw new DefinitionNotFoundException("Language not found: " + name); return langdef;
throw new DefinitionNotFoundException();
compdef = complangdef.getDynamicTagDefinition(); if (compdef == null) throw new DefinitionNotFoundException( message("Component definition not found: " + nm + " in " + complangdef, el)); compInfo = new ComponentInfo(parent, compdef, nm);