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

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

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

Args.notEmpty介绍

[英]Checks argument is not empty (not null and has a non-whitespace character)
[中]Checks参数不为空(不为null且具有非空白字符)

代码示例

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

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

/**
 * @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

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

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

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

代码示例来源:origin: l0rdn1kk0n/wicket-webjars

public WebjarsSettings webjarsPackage(String webjarsPackage) {
  this.webjarsPackage = Args.notEmpty(webjarsPackage, "webjarsPackage");
  return this;
}

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

public TextMessage(final CharSequence text)
{
  this.text = Args.notEmpty(text, "text");
}

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

/**
 * Construct.
 *
 * @param target
 * @param event
 * @param javaScript
 */
public OnEventHeaderItem(String target, String event, CharSequence javaScript)
{
  this.target = Args.notEmpty(target, "target");
  Args.notEmpty(event, "event");
  event = event.toLowerCase(Locale.ROOT);
  this.event = event;
  this.javaScript = javaScript;
}

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

private HeaderKey(String name)
{
  this.name = Args.notEmpty(name, "name").trim();
  key = this.name.toLowerCase(Locale.US);
}

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

/**
 * Build a new {@link MetaDataHeaderItem} having {@code tagName} as tag.
 * 
 * @param tagName
 *         the name of the tag
 */
public MetaDataHeaderItem(String tagName)
{
  this.tagName = Args.notEmpty(tagName, "tagName");
  this.tagAttributes = new ValueMap();
  this.tagMinimizedAttributes = new ArrayList<>();
}

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

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

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

/**
 * Build a new {@link MetaDataHeaderItem} having {@code tagName} as tag.
 * 
 * @param tagName
 *         the name of the tag
 */
public MetaDataHeaderItem(String tagName)
{
  this.tagName = Args.notEmpty(tagName, "tagName");
  this.tagAttributes = new ValueMap();
  this.tagMinimizedAttributes = new ArrayList<>();
}

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

/**
 * Sets a key and value in the variables map for use in substitution.
 * 
 * @param name
 *            a variable name
 * @param value
 *            a variable value
 * @return this <code>ValidationError</code> for chaining purposes
 */
public ValidationError setVariable(String name, Object value)
{
  Args.notEmpty(name, "name");
  getVariables().put(name, value);
  return this;
}

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

/**
 * Creates a attribute modifier that replaces the current value with the given value.
 * 
 * @param attributeName
 * @param value
 * @return the attribute modifier
 * @since 1.5
 */
public static AttributeModifier replace(String attributeName, Serializable value)
{
  Args.notEmpty(attributeName, "attributeName");
  return new AttributeModifier(attributeName, value);
}

代码示例来源:origin: OrienteerBAP/Orienteer

public AbstractSimpleVisualizer(String name, boolean extended,
    Collection<OType> supportedTypes)
{
  Args.notNull(name, "name");
  Args.notNull(supportedTypes, "supportedTypes");
  Args.notEmpty(supportedTypes, "supportedTypes");
  
  this.name = name;
  this.extended = extended;
  this.supportedTypes = Collections.unmodifiableCollection(supportedTypes);
}

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

/**
   * Creates a attribute modifier that removes an attribute with the specified name
   * 
   * @param attributeName
   *            the name of the attribute to be removed
   * @return the attribute modifier
   * @since 1.5
   */
  public static AttributeModifier remove(String attributeName)
  {
    Args.notEmpty(attributeName, "attributeName");

    return replace(attributeName, Model.of(VALUELESS_ATTRIBUTE_REMOVE));
  }
}

代码示例来源: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: 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: org.wicketstuff/wicketstuff-editable-grid

public EditableDataGridView(String id, List<? extends ICellPopulator<R>> populators,
  IEditableDataProvider<R, U> dataProvider)
{
  super(id, populators, dataProvider);
}

相关文章

微信公众号

最新文章

更多