public final class AttributeDefinition<T> extends Object
Attribute
holder.
An attribute definition has the following characteristics:
Modifier and Type | Class and Description |
---|---|
static class |
AttributeDefinition.Builder<T> |
Modifier and Type | Method and Description |
---|---|
static <T> AttributeDefinition.Builder<T> |
builder(String name,
T defaultValue) |
static <T> AttributeDefinition.Builder<T> |
builder(String name,
T defaultValue,
Class<T> klass) |
AttributeCopier |
copier() |
T |
getDefaultValue() |
Class<T> |
getType() |
AttributeInitializer<? extends T> |
initializer() |
boolean |
isImmutable() |
String |
name() |
Attribute<T> |
toAttribute() |
void |
validate(T value) |
public String name()
public T getDefaultValue()
public boolean isImmutable()
public AttributeCopier copier()
public AttributeInitializer<? extends T> initializer()
public void validate(T value)
public static <T> AttributeDefinition.Builder<T> builder(String name, T defaultValue)
public static <T> AttributeDefinition.Builder<T> builder(String name, T defaultValue, Class<T> klass)
Copyright © 2016 JBoss, a division of Red Hat. All rights reserved.