public final class AttributesFactory extends Object
AttributesFactory provides convenience methods for creating
Attributes and Attribute.| Modifier and Type | Method and Description |
|---|---|
static Attribute |
createAttribute(String name)
Creates a new
Attribute with the supplied name. |
static Attribute |
createAttribute(String name,
Object value)
Creates a new
Attribute with the supplied name and value. |
static Attribute |
createAttribute(String name,
Object[] values)
Creates a new
Attribute with the supplied name and values. |
static Attributes |
createAttributes(String name)
Creates a new
Attributes with the supplied name. |
static Attributes |
createAttributes(String name,
boolean ignoreCase)
Creates a new
Attributes with the supplied name. |
static Attributes |
createAttributes(String name,
Object value)
Creates a new
Attributes with the supplied name and value. |
static Attributes |
createAttributes(String name,
Object[] values)
Creates a new
Attributes with the supplied name and values. |
static Attributes |
createAttributes(String name,
Object[] values,
boolean ignoreCase)
Creates a new
Attributes with the supplied name and values. |
static Attributes |
createAttributes(String name,
Object value,
boolean ignoreCase)
Creates a new
Attributes with the supplied name and value. |
public static Attributes createAttributes(String name)
Attributes with the supplied name. Attributes
will be case-insensitive.name - of the attributeAttributespublic static Attributes createAttributes(String name, boolean ignoreCase)
Attributes with the supplied name.name - of the attributeignoreCase - whether to ignore the case of attribute valuesAttributespublic static Attributes createAttributes(String name, Object value)
Attributes with the supplied name and value.
Attributes will be case-insensitive.name - of the attributevalue - of the attributeAttributespublic static Attributes createAttributes(String name, Object value, boolean ignoreCase)
Attributes with the supplied name and value.name - of the attributevalue - of the attributeignoreCase - whether to ignore the case of attribute valuesAttributespublic static Attributes createAttributes(String name, Object[] values)
Attributes with the supplied name and values.
Attributes will be case-insensitive.name - of the attributevalues - of the attributeAttributespublic static Attributes createAttributes(String name, Object[] values, boolean ignoreCase)
Attributes with the supplied name and values.name - of the attributevalues - of the attributeignoreCase - whether to ignore the case of attribute valuesAttributespublic static Attribute createAttribute(String name)
Attribute with the supplied name.name - of the attributeAttributepublic static Attribute createAttribute(String name, Object value)
Attribute with the supplied name and value.name - of the attributevalue - of the attributeAttributeCopyright © 2014. All rights reserved.