public final class ParamDefEntity extends ValidatorDefEntity
Modifier and Type | Class and Description |
---|---|
static class |
ParamDefEntity.Builder
Property def builder.
|
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT_NAME
ParamDef element name.
|
static String |
ENTITY_PREFIX
ParamDef entity prefix.
|
UUID_COMPARATOR
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Entity other)
Implements Comparable.
|
ParamDefEntity |
copy()
Creates a copy of this entity.
|
static String |
createKey(String holder,
String name)
Creates a key to identify a ParamDef.
|
boolean |
equals(Object other)
|
String |
getElementName()
Gets the entity element name.
|
String |
getHolder()
Gets the holder of this ParamDef.
|
String |
getKey()
Gets the key identifying this ParamDef.
|
String |
getPrefix()
Gets the class prefix.
|
String |
getReferenceName()
Gets the entity reference name.
|
String |
getTarget()
Gets this validator's target.
|
int |
hashCode() |
static ParamDefEntity.Builder |
newBuilder()
Returns a new builder.
|
isHidden, isMultiple, setHidden, setMultiple
getAttributes, getName, getNameInUpperCase, getThisLogger, getUUID, setName, setUUID, toString
public static final String ELEMENT_NAME
public static final String ENTITY_PREFIX
@Nonnull @CheckReturnValue public static String createKey(@Nonnull String holder, @Nonnull String name)
holder
- The ParamDef holder.name
- The ParamDef name.@Nonnull @CheckReturnValue public static ParamDefEntity.Builder newBuilder()
public int compareTo(Entity other)
compareTo
in interface Comparable<Entity>
compareTo
in class AbstractEntity
other
- An other Entity.public ParamDefEntity copy()
public boolean equals(Object other)
For two Entity
to be equal, they must at least be instances of
the same class, have the same UUID
and name.
equals
in class ValidatorDefEntity
public String getElementName()
The entity element is used to in the generation of the entity URI.
@Nonnull @CheckReturnValue public String getHolder()
@Nonnull @CheckReturnValue public String getKey()
public String getPrefix()
Each concrete entity subclass has its own prefix which will be the same for all its instances. This prefix is used to avoid name collision between different classes in a common registry.
public String getReferenceName()
public String getTarget()
getTarget
in class ValidatorDefEntity
public int hashCode()
hashCode
in class ValidatorDefEntity
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.