Package org.nuxeo.ecm.core.schema
Class PropertyDescriptor
java.lang.Object
org.nuxeo.ecm.core.schema.PropertyDescriptor
- All Implemented Interfaces:
Descriptor
Descriptor representing a Nuxeo Property.
It maps the xml below:
<property schema="SCHEMA" name="NAME" secured="true" deprecation="deprecated|removed" fallback="NAME" />
- Since:
- 11.1
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected String
protected String
protected String
protected String
boolean
static final String
protected String
Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
During merge if a descriptor whose doesRemove() returns true is encountered, the merge chain is reset and started again on next descriptor.getId()
The descriptor id, descriptors with same id are merged.getName()
boolean
boolean
boolean
boolean
merge
(Descriptor o) Returns a descriptor representingother
merged intothis
toString()
-
Field Details
-
DEPRECATED
- See Also:
-
REMOVED
- See Also:
-
schema
-
name
-
secured
-
deprecation
-
fallback
-
indexOrder
-
retainable
-
remove
public boolean remove
-
-
Constructor Details
-
PropertyDescriptor
public PropertyDescriptor()
-
-
Method Details
-
getId
Description copied from interface:Descriptor
The descriptor id, descriptors with same id are merged.To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden
toString()
for exemple.- Specified by:
getId
in interfaceDescriptor
-
getSchema
-
getName
-
isSecured
public boolean isSecured() -
getDeprecation
- Returns:
deprecated
,removed
or null
-
isDeprecated
public boolean isDeprecated() -
isRemoved
public boolean isRemoved() -
isRetainable
public boolean isRetainable()- Since:
- 2023
-
getIndexOrder
- Since:
- 11.5
-
getFallback
-
merge
Description copied from interface:Descriptor
Returns a descriptor representingother
merged intothis
Default implementation returns
other
.- Specified by:
merge
in interfaceDescriptor
- Returns:
- the merged descriptor
-
doesRemove
public boolean doesRemove()Description copied from interface:Descriptor
During merge if a descriptor whose doesRemove() returns true is encountered, the merge chain is reset and started again on next descriptor.If the last descriptor of same id doesRemove() return true, the descriptor for this id will be
null
.- Specified by:
doesRemove
in interfaceDescriptor
-
toString
-