org.apache.wicket.util.lang.Args.notNull()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(73)

本文整理了Java中org.apache.wicket.util.lang.Args.notNull()方法的一些代码示例,展示了Args.notNull()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Args.notNull()方法的具体详情如下:
包路径:org.apache.wicket.util.lang.Args
类名称:Args
方法名:notNull

Args.notNull介绍

[英]Checks argument is not null
[中]Checks参数不为null

代码示例

代码示例来源:origin: org.apache.wicket/wicket-core

/**
 * @param jQueryReference
 *            a reference to the JQuery JavaScript library used as backing library for
 *            wicket-event and wicket-ajax
 * @return {@code this} object for chaining
 */
public JavaScriptLibrarySettings setJQueryReference(ResourceReference jQueryReference)
{
  this.jQueryReference = Args.notNull(jQueryReference, "jQueryReference");
  return this;
}

代码示例来源:origin: org.apache.wicket/wicket-core

/**
 * Sets the format of this resource
 * 
 * @param format
 *            The format (jpg, png or gif..)
 */
public synchronized final void setFormat(String format)
{
  Args.notNull(format, "format");
  this.format = format;
}

代码示例来源:origin: org.apache.wicket/wicket-core

/**
 * Constructor.
 *
 * @param errorMessage
 *      the custom error message that will be rendered by a custom FeedbackPanel
 */
public RawValidationError(final Serializable errorMessage)
{
  this.errorMessage = Args.notNull(errorMessage, "errorMessage");
}

代码示例来源:origin: org.apache.wicket/wicket-core

/**
 * Constructor.
 *
 * @param application
 *          The application instance
 */
public DefaultPageManagerProvider(Application application)
{
  this.application = Args.notNull(application, "application");
}

代码示例来源:origin: org.apache.wicket/wicket-core

/**
 * Creates a new instance
 * @param request
 *      The request to use when responding
 * @param delegate
 *      The request handler to delegate responding to
 */
public RequestSettingRequestHandler(Request request, IRequestHandler delegate)
{
  this.request = Args.notNull(request, "request");
  this.delegate = Args.notNull(delegate,"delegate");
}

代码示例来源:origin: org.apache.wicket/wicket-core

/**
 * Construct.
 * 
 * @param context
 */
public AbstractPageManager(IPageManagerContext context)
{
  this.context = Args.notNull(context, "context");
}

代码示例来源:origin: org.apache.wicket/wicket-core

/**
 * Construct.
 * 
 * @param pageParametersEncoder
 * @param cachingStrategy
 */
public BasicResourceReferenceMapper(IPageParametersEncoder pageParametersEncoder,
  Supplier<? extends IResourceCachingStrategy> cachingStrategy)
{
  this.pageParametersEncoder = Args.notNull(pageParametersEncoder, "pageParametersEncoder");
  this.cachingStrategy = cachingStrategy;
}

代码示例来源:origin: org.apache.wicket/wicket-core

/**
 * 
 * @param pageClass
 */
private void setPageClass(Class<? extends IRequestablePage> pageClass)
{
  Args.notNull(pageClass, "pageClass");
  this.pageClass = pageClass;
}

代码示例来源:origin: org.apache.wicket/wicket-core

/**
 * Create and initialize the resource loader.
 * 
 * @param initializers
 *            initializers
 */
public InitializerStringResourceLoader(List<IInitializer> initializers)
{
  this.initializers = Args.notNull(initializers, "initializers");
}

代码示例来源:origin: apache/wicket

/**
 * 
 * @param pageRendererProvider
 */
public final Application setPageRendererProvider(final IPageRendererProvider pageRendererProvider)
{
  Args.notNull(pageRendererProvider, "pageRendererProvider");
  this.pageRendererProvider = pageRendererProvider;
  return this;
}

代码示例来源:origin: apache/wicket

public Entry(final String sessionId, final IManageablePage page)
{
  this.sessionId = Args.notNull(sessionId, "sessionId");
  this.page = Args.notNull(page, "page");
}

代码示例来源:origin: apache/wicket

/**
 * Construct.
 * 
 * @param pageParametersEncoder
 * @param cachingStrategy
 */
public BasicResourceReferenceMapper(IPageParametersEncoder pageParametersEncoder,
  Supplier<? extends IResourceCachingStrategy> cachingStrategy)
{
  this.pageParametersEncoder = Args.notNull(pageParametersEncoder, "pageParametersEncoder");
  this.cachingStrategy = cachingStrategy;
}

代码示例来源:origin: apache/wicket

/**
 * Constructor. Creates a model for all feedback messages on the page.
 * 
 * @param pageResolvingComponent
 *            The component where the page will be get from for which messages will be displayed
 *            usually the same page as the one feedbackpanel is attached to
 */
public FeedbackMessagesModel(Component pageResolvingComponent)
{
  Args.notNull(pageResolvingComponent, "pageResolvingComponent");
  this.pageResolvingComponent = pageResolvingComponent;
}

代码示例来源:origin: org.apache.wicket/wicket-core

/**
 * Adds script to the ones which are executed after the component replacement.
 *
 * @param javascript
 *      the javascript to execute
 */
public final void appendJavaScript(final CharSequence javascript)
{
  Args.notNull(javascript, "javascript");
  appendJavaScripts.add(javascript);
}

代码示例来源:origin: org.apache.wicket/wicket-core

/**
 * Adds script to the ones which are executed before the component replacement.
 *
 * @param javascript
 *      the javascript to execute
 */
public final void prependJavaScript(CharSequence javascript)
{
  Args.notNull(javascript, "javascript");
  prependJavaScripts.add(javascript);
}

代码示例来源:origin: org.apache.wicket/wicket-core

/**
 * Constructor. File name used will be the result of <code>file.getName()</code>
 * 
 * @param id
 *            component id
 * @param file
 *            file to stream to client
 */
public DownloadLink(String id, File file)
{
  this(id, new Model<File>(Args.notNull(file, "file")));
}

代码示例来源:origin: apache/wicket

/**
 * Adds script to the ones which are executed after the component replacement.
 *
 * @param javascript
 *      the javascript to execute
 */
public final void appendJavaScript(final CharSequence javascript)
{
  Args.notNull(javascript, "javascript");
  appendJavaScripts.add(javascript);
}

代码示例来源:origin: org.apache.wicket/wicket-core

protected Key(Cookie cookie)
{
  Args.notNull(cookie, "cookie");
  name = cookie.getName();
  path = cookie.getPath();
  domain = cookie.getDomain();
}

代码示例来源:origin: org.apache.wicket/wicket-core

/**
 * Constructor
 */
ServletPartFileItem(Part part)
{
  Args.notNull(part, "part");
  this.part = part;
  String contentType = part.getContentType();
  this.isFormField = contentType == null;
}

代码示例来源:origin: apache/wicket

/**
   *
   * @param data
   *          The serialized view of the page
   * @return page data deserialized
   */
  protected IManageablePage deserializePage(final byte[] data)
  {
    Args.notNull(data, "data");

    return (IManageablePage) pageSerializer.deserialize(data);
  }
}

相关文章

最新文章

更多