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) |
static <T> AttributeDefinition.Builder<Class<? extends T>> |
classBuilder(String name,
Class<T> klass) |
AttributeCopier |
copier() |
boolean |
equals(Object o) |
T |
getDefaultValue() |
AttributeSerializer<? super T,? extends ConfigurationInfo,? extends ConfigurationBuilderInfo> |
getSerializerConfig() |
Class<T> |
getType() |
int |
hashCode() |
AttributeInitializer<? extends T> |
initializer() |
boolean |
isAutoPersist() |
boolean |
isGlobal() |
boolean |
isImmutable() |
String |
name() |
static <T> AttributeDefinition.Builder<Supplier<? extends T>> |
supplierBuilder(String name,
Class<T> klass) |
Attribute<T> |
toAttribute() |
void |
validate(T value) |
String |
xmlName() |
public String name()
public String xmlName()
public AttributeSerializer<? super T,? extends ConfigurationInfo,? extends ConfigurationBuilderInfo> getSerializerConfig()
public T getDefaultValue()
public boolean isImmutable()
public boolean isAutoPersist()
public boolean isGlobal()
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)
public static <T> AttributeDefinition.Builder<Class<? extends T>> classBuilder(String name, Class<T> klass)
public static <T> AttributeDefinition.Builder<Supplier<? extends T>> supplierBuilder(String name, Class<T> klass)
Copyright © 2021 JBoss by Red Hat. All rights reserved.