public interface Descriptor
DefaultComponent.| Modifier and Type | Field and Description | 
|---|---|
static String | 
UNIQUE_DESCRIPTOR_ID  | 
| Modifier and Type | Method and Description | 
|---|---|
default boolean | 
doesRemove()
During merge if a descriptor whose doesRemove() returns true is encountered, the merge chain is reset and started
 again on next descriptor. 
 | 
String | 
getId()
The descriptor id, descriptors with same id are merged. 
 | 
default Descriptor | 
merge(Descriptor other)
Returns a descriptor representing  
other merged into this | 
static final String UNIQUE_DESCRIPTOR_ID
String getId()
To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
 To forbid merge use a unique value, non-overriden toString() for exemple.
default Descriptor merge(Descriptor other)
other merged into this
 
 Default implementation returns other.
default boolean doesRemove()
 If the last descriptor of same id doesRemove() return true, the descriptor for this id will be null.
Copyright © 2019 Nuxeo. All rights reserved.