T
- the type of the descriptorpublic abstract class AbstractDescriptor<T extends AbstractDescriptor<T>>
extends java.lang.Object
Constructor and Description |
---|
AbstractDescriptor() |
Modifier and Type | Method and Description |
---|---|
T |
attributes(Attributes.Attribute... attributes)
Adds the given
attributes to the descriptor. |
T |
description(java.lang.Object description)
Specifies the description.
|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Returns the descriptor's attributes.
|
java.lang.Object |
getDescription()
Returns the description.
|
public final T attributes(Attributes.Attribute... attributes)
attributes
to the descriptor.attributes
- the attributespublic final T description(java.lang.Object description)
description
- the descriptionpublic final java.lang.Object getDescription()
public final java.util.Map<java.lang.String,java.lang.Object> getAttributes()