public static enum ClientComponent.Type extends Enum<ClientComponent.Type>
| Enum Constant and Description |
|---|
CREATE_WITH_ALL_ATTRS
Send all attributes.
|
CREATE_WITH_REQUIRED_ATTRS
Only send required attributes, but always send a component.
|
SKIP
Do not send any client component, no matter what attributes
are present unless the client components are being forced on
|
SKIP_ALWAYS
Never send any client component under any circumstances
|
SKIP_UNLESS_REQUIRED_ATTRS
Only send if there are required attributes (and only
send the required attributes).
|
| Modifier and Type | Method and Description |
|---|---|
static ClientComponent.Type |
max(ClientComponent.Type type1,
ClientComponent.Type type2)
Returns the maximum attribute retention of two Types.
|
boolean |
skipClientComponent()
Convenience function to return whether output of a ClientComponent with this Type
should generally be skipped.
|
static ClientComponent.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClientComponent.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientComponent.Type SKIP_ALWAYS
public static final ClientComponent.Type SKIP
public static final ClientComponent.Type SKIP_UNLESS_REQUIRED_ATTRS
public static final ClientComponent.Type CREATE_WITH_REQUIRED_ATTRS
public static final ClientComponent.Type CREATE_WITH_ALL_ATTRS
public static ClientComponent.Type[] values()
for (ClientComponent.Type c : ClientComponent.Type.values()) System.out.println(c);
public static ClientComponent.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean skipClientComponent()
true if out of a ClientComponent with this type should be skippedpublic static ClientComponent.Type max(ClientComponent.Type type1, ClientComponent.Type type2)
Type.CREATE_WITH_ALL_ATTRS will create a client component with at least as many
client attributes as Type.CREATE_WITH_REQUIRED_ATTRS, so
type.max(Type.CREATE_WITH_ALL_ATTRS, Type.CREATE_WITH_REQUIRED_ATTRS) returns
Type.CREATE_WITH_ALL_ATTRS.type1 - the first type to compare againsttype2 - the second type to compare against.