Package org.nuxeo.runtime.avro
Class AvroReplacementDescriptor
java.lang.Object
org.nuxeo.runtime.avro.AvroReplacementDescriptor
- All Implemented Interfaces:
Comparable<AvroReplacementDescriptor>,Descriptor
public class AvroReplacementDescriptor
extends Object
implements Descriptor, Comparable<AvroReplacementDescriptor>
The Avro forbidden character replacement descriptor.
Avro allows alphanumeric characters and underscores in names.
Nuxeo Studio allows alphanumeric characters, underscores and dashes that have to be replaced by another symbol.
The default contributions provide replacement for :
- "-" as "__dash__"
- ":" as "__colon__
- ";" as "__semicolon__"
- and with higher priority "__" as "____" to ensure no user string is wrongly replaced.
Avro allows alphanumeric characters and underscores in names.
Nuxeo Studio allows alphanumeric characters, underscores and dashes that have to be replaced by another symbol.
The default contributions provide replacement for :
- "-" as "__dash__"
- ":" as "__colon__
- ";" as "__semicolon__"
- and with higher priority "__" as "____" to ensure no user string is wrongly replaced.
- Since:
- 10.2
-
Field Summary
FieldsFields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove, merge
-
Field Details
-
forbidden
-
replacement
-
priority
protected int priority
-
-
Constructor Details
-
AvroReplacementDescriptor
public AvroReplacementDescriptor()
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<AvroReplacementDescriptor>
-
equals
-
getId
Description copied from interface:DescriptorThe 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:
getIdin interfaceDescriptor
-
hashCode
public int hashCode()
-