/** * Returns the plugin definition for a given UI element. * * @param clazz The class of the UI element. * @return The associated plugin definition, or null if not found. */ public PluginDefinition get(Class<? extends ElementBase> clazz) { return classRegistry.get(clazz); }
@Override public IIconLibrary get(String library) { return super.get(library == null ? defaultLibrary : library); }
@Override public IIconLibrary get(String library) { return super.get(library == null ? getDefaultLibrary() : library); }
/** * Returns the item associated with the specified key, or null if not found. * * @param clazz The class whose serializer is sought. * @return The context serializer. */ @Override public ISerializer<?> get(Class<?> clazz) { ISerializer<?> contextSerializer = super.get(clazz); if (contextSerializer != null) { return contextSerializer; } for (ISerializer<?> item : this) { if (item.getType().isAssignableFrom(clazz)) { return item; } } return null; }
/** * Returns the AliasType given the key, creating and registering it if it does not already * exist. * * @param key Unique key of alias type. * @return The alias type (never null). */ @Override public AliasType get(String key) { key = key.toUpperCase(); AliasType type = super.get(key); if (type == null) { register(type = new AliasType(key)); } return type; }
@SuppressWarnings({ "unchecked", "rawtypes" }) @Override public PropertyType get(String key) { PropertyType propType = super.get(key);