public interface AttributeRegistry
This code is experimental. While this interface is functional and tested, it may change or be removed in a future version of the library.
| Modifier and Type | Method and Description |
|---|---|
void |
deregister(AttributeDescriptor attributeDescriptor)
Removes an attribute from the registry.
|
Optional<AttributeDescriptor> |
lookup(String name)
Gets the
AttributeDescriptor for the attribute with the given name. |
void |
register(AttributeDescriptor attributeDescriptor)
Registers a new attribute.
|
void register(AttributeDescriptor attributeDescriptor)
attributeDescriptor - the AttributeDescriptor describing the attributeIllegalArgumentException - if attributeDescriptor or AttributeDescriptor.getName() is nullvoid deregister(AttributeDescriptor attributeDescriptor)
Does nothing if the attributeDescriptor does not exist in the registry.
attributeDescriptor - an attributeDescriptor for the attributeIllegalArgumentException - if attributeDescriptor is nullOptional<AttributeDescriptor> lookup(String name)
AttributeDescriptor for the attribute with the given name.
Returns an empty Optional if no attribute by the name name exists in the
registry.
name - the name of the attributeOptional containing the registered AttributeDescriptorIllegalArgumentException - if name is nullThis work is licensed under a Creative Commons Attribution 4.0 International License.