org.apache.wicket.util.lang.Args类的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(122)

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

Args介绍

[英]Class with methods for asserting conditions on arguments.
[中]使用用于断言参数条件的方法初始化。

代码示例

代码示例来源: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: apache/wicket

public Property(ClassReference<?> owner, String name)
{
  Args.notNull(owner, "owner");
  Args.notEmpty(name, "name");
  this.owner = owner;
  this.name = name;
}

代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core

/**
 * adds the {@link BootstrapBaseBehavior} from given {@link Component}
 *
 * @param component The component to add the behavior to.
 */
public static void addTo(final Component component) {
  Args.notNull(component, "component");
  component.add(INSTANCE);
}

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

public WebSocketRequestHandler(final Component component, final IWebSocketConnection connection)
{
  this.page = Args.notNull(component, "component").getPage();
  this.connection = Args.notNull(connection, "connection");
}

代码示例来源:origin: de.agilecoders.wicket/bootstrap

/**
 * removes the {@link BootstrapBaseBehavior} from given {@link Component}
 *
 * @param component The component to remove the behavior from.
 */
public static void removeFrom(final Component component) {
  Args.notNull(component, "component");
  component.remove(INSTANCE);
}

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

public DefaultAuthenticationStrategy(final String cookieKey, final String encryptionKey)
{
  this.cookieKey = Args.notEmpty(cookieKey, "cookieKey");
  this.encryptionKey = Args.notEmpty(encryptionKey, "encryptionKey");
}

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

public WebSocketRequestHandler(final Component component, final IWebSocketConnection connection)
{
  this.page = Args.notNull(component, "component").getPage();
  this.connection = Args.notNull(connection, "connection");
}

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

/**
 * @param dataType
 *            the type of the data in the Ajax response.
 * @return {@code this} object for chaining
 */
public AjaxRequestAttributes setDataType(final String dataType)
{
  this.dataType = Args.notEmpty(dataType, "dataType");
  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: de.agilecoders.wicket/wicket-bootstrap-core

@Override
  public boolean isActive(final Component button) {
    Args.notNull(button, "button");

    return button.getPage().getClass().equals(getPageClass());
  }
}

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

public AbstractBookmarkableMapper(String mountPath, IPageParametersEncoder pageParametersEncoder)
{
  Args.notEmpty(mountPath, "mountPath");
  this.pageParametersEncoder = Args.notNull(pageParametersEncoder, "pageParametersEncoder");
  mountSegments = getMountSegments(mountPath);
  pathSegments = getPathSegments(mountSegments);
}

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

/**
 * @param dataType
 *            the type of the data in the Ajax response.
 * @return {@code this} object for chaining
 */
public AjaxRequestAttributes setDataType(final String dataType)
{
  this.dataType = Args.notEmpty(dataType, "dataType");
  return this;
}

代码示例来源: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: apache/wicket

public AbstractBookmarkableMapper(String mountPath, IPageParametersEncoder pageParametersEncoder)
{
  Args.notEmpty(mountPath, "mountPath");
  this.pageParametersEncoder = Args.notNull(pageParametersEncoder, "pageParametersEncoder");
  mountSegments = getMountSegments(mountPath);
  pathSegments = getPathSegments(mountSegments);
}

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

/**
 * Construct.
 * 
 * @param event
 *      the event this behavior will be attached to
 */
public AjaxEventBehavior(String event)
{
  Args.notEmpty(event, "event");
  this.event = event;
}

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

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

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

public DefaultAuthenticationStrategy(final String cookieKey, final String encryptionKey)
{
  this.cookieKey = Args.notEmpty(cookieKey, "cookieKey");
  this.encryptionKey = Args.notEmpty(encryptionKey, "encryptionKey");
}

代码示例来源: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 event
 *      the event this behavior will be attached to
 */
public AjaxEventBehavior(String event)
{
  Args.notEmpty(event, "event");
  this.event = event;
}

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

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

相关文章

微信公众号

最新文章

更多