org.apache.wicket.markup.parser.XmlTag.getAttributes()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(158)

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

XmlTag.getAttributes介绍

[英]Gets a hashmap of this tag's attributes.
[中]获取此标记属性的哈希映射。

代码示例

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

/**
 * Converts this object to a string representation.
 * 
 * @return String version of this object
 */
public String toDebugString()
{
  return "[Tag name = " + name + ", pos = " + text.pos + ", line = " + text.lineNumber +
    ", attributes = [" + getAttributes() + "], type = " + type + "]";
}

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

/**
 * @see org.apache.wicket.markup.parser.XmlTag#getAttributes()
 * @return The tag#s attributes
 */
public final IValueMap getAttributes()
{
  return xmlTag.getAttributes();
}

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @see org.apache.wicket.markup.parser.XmlTag#getAttributes()
 * @return The tag#s attributes
 */
public final IValueMap getAttributes()
{
  return xmlTag.getAttributes();
}

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Converts this object to a string representation.
 * 
 * @return String version of this object
 */
public String toDebugString()
{
  return "[Tag name = " + name + ", pos = " + pos + ", line = " + lineNumber + ", length = " +
    length + ", attributes = [" + getAttributes() + "], type = " + type + "]";
}

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

/**
 * @see org.apache.wicket.markup.parser.XmlTag#getAttributes()
 * @return The tag#s attributes
 */
public final IValueMap getAttributes()
{
  return xmlTag.getAttributes();
}

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

/**
 * Converts this object to a string representation.
 * 
 * @return String version of this object
 */
public String toDebugString()
{
  return "[Tag name = " + name + ", pos = " + text.pos + ", line = " + text.lineNumber +
    ", attributes = [" + getAttributes() + "], type = " + type + "]";
}

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Converts this object to a string representation.
 * 
 * @return String version of this object
 */
public String toDebugString()
{
  return "[Tag name = " + name + ", pos = " + pos + ", line = " + lineNumber + ", length = " +
      length + ", attributes = [" + getAttributes() + "], type = " + type + "]";
}

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @see org.apache.wicket.markup.parser.XmlTag#getAttributes()
 * @return The tag#s attributes
 */
public final IValueMap getAttributes()
{
  return xmlTag.getAttributes();
}

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

/**
 * Removes an attribute.
 * 
 * @param key
 *            The key to remove
 */
public void remove(final String key)
{
  getAttributes().remove(key);
}

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

/**
 * Get a string attribute.
 * 
 * @param key
 *            The key
 * @return The string value
 */
public CharSequence getAttribute(final String key)
{
  return getAttributes().getCharSequence(key);
}

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

/**
 * Removes an attribute.
 * 
 * @param key
 *            The key to remove
 */
public void remove(final String key)
{
  getAttributes().remove(key);
}

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Get a string attribute.
 * 
 * @param key
 *            The key
 * @return The string value
 */
public CharSequence getString(final String key)
{
  return getAttributes().getCharSequence(key);
}

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * A convenient method. The same as getAttributes().getString(name)
 * 
 * @param name
 * @return The attributes value
 */
public final String getAttribute(String name)
{
  return xmlTag.getAttributes().getString(name);
}

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Removes an attribute.
 * 
 * @param key
 *            The key to remove
 */
public void remove(final String key)
{
  getAttributes().remove(key);
}

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

/**
 * A convenient method. The same as getAttributes().getString(name)
 * 
 * @param name
 * @return The attributes value
 */
public final String getAttribute(String name)
{
  return xmlTag.getAttributes().getString(name);
}

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

/**
 * A convenient method. The same as getAttributes().getString(name)
 * 
 * @param name
 * @return The attributes value
 */
public final String getAttribute(String name)
{
  return xmlTag.getAttributes().getString(name);
}

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

/**
 * Get a string attribute.
 * 
 * @param key
 *            The key
 * @return The string value
 */
public CharSequence getAttribute(final String key)
{
  return getAttributes().getCharSequence(key);
}

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Get a string attribute.
 * 
 * @param key
 *            The key
 * @return The string value
 */
public CharSequence getString(final String key)
{
  return getAttributes().getCharSequence(key);
}

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Removes an attribute.
 *
 * @param key
 *            The key to remove
 */
public void remove(final String key)
{
  getAttributes().remove(key);
}

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

/**
 * Puts a {@link StringValue}attribute.
 * 
 * @param key
 *            The key
 * @param value
 *            The value
 * @return previous value associated with specified key, or null if there was no mapping for
 *         key. A null return can also indicate that the map previously associated null with the
 *         specified key, if the implementation supports null values.
 */
public Object put(final String key, final StringValue value)
{
  return getAttributes().put(key, (value != null) ? value.toString() : null);
}

相关文章