public enum AttributeFormat extends java.lang.Enum<AttributeFormat>
| Enum Constant and Description |
|---|
BOOLEAN |
COLOR |
DIMENSION |
ENUM |
FLAGS |
FLOAT |
FRACTION |
INTEGER |
REFERENCE |
STRING |
| Modifier and Type | Method and Description |
|---|---|
static AttributeFormat |
fromXmlName(java.lang.String name)
Returns the format given its XML name.
|
java.util.Set<ResourceType> |
getMatchingTypes()
Returns the set of matching resource types.
|
java.lang.String |
getName()
Returns the name used for the format in XML.
|
static java.util.Set<AttributeFormat> |
parse(java.lang.String formatString)
Parses a pipe-separated format string to a set of formats.
|
static AttributeFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AttributeFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AttributeFormat BOOLEAN
public static final AttributeFormat COLOR
public static final AttributeFormat DIMENSION
public static final AttributeFormat ENUM
public static final AttributeFormat FLAGS
public static final AttributeFormat FLOAT
public static final AttributeFormat FRACTION
public static final AttributeFormat INTEGER
public static final AttributeFormat REFERENCE
public static final AttributeFormat STRING
public static AttributeFormat[] values()
for (AttributeFormat c : AttributeFormat.values()) System.out.println(c);
public static AttributeFormat valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@NonNull public java.lang.String getName()
@NonNull public java.util.Set<ResourceType> getMatchingTypes()
@Nullable public static AttributeFormat fromXmlName(@NonNull java.lang.String name)
name - the name used for the format in XML@NonNull public static java.util.Set<AttributeFormat> parse(@NonNull java.lang.String formatString)