public final class PropertiesDefEntity extends ValidatorDefEntity
ValidatorDefEntity.Builder
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT_NAME
PropertiesDef element name.
|
static String |
ENTITY_PREFIX
PropertiesDef entity prefix.
|
UUID_COMPARATOR
Constructor and Description |
---|
PropertiesDefEntity()
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addPropertiesDef(PropertiesDefEntity propertiesDef)
Adds a child PropertiesDef.
|
boolean |
addPropertyDef(PropertyDefEntity propertyDef)
Adds a child PropertyDef.
|
PropertiesDefEntity |
copy()
Creates a copy of this entity.
|
boolean |
equals(Object other)
|
String |
getElementName()
Gets the entity element name.
|
String |
getPrefix()
Gets the class prefix.
|
Optional<PropertiesDefEntity> |
getPropertiesDef(String name)
Gets a child PropertiesDef.
|
Collection<PropertiesDefEntity> |
getPropertiesDefs()
Gets the collection of child PropertiesDef.
|
Optional<PropertyDefEntity> |
getPropertyDef(String name)
Gets a child PropertyDef.
|
Collection<PropertyDefEntity> |
getPropertyDefs()
Gets the collection of child PropertyDef.
|
String |
getReferenceName()
Gets the entity reference name.
|
String |
getTarget()
Gets this validator's target.
|
int |
hashCode() |
boolean |
isValidated()
Asks if the children are validated.
|
void |
setValidated(boolean validated)
Sets the validation indicator.
|
isHidden, isMultiple, setHidden, setMultiple
compareTo, getAttributes, getName, getNameInUpperCase, getThisLogger, getUUID, setName, setUUID, toString
public static final String ELEMENT_NAME
public static final String ENTITY_PREFIX
public boolean addPropertiesDef(@Nonnull PropertiesDefEntity propertiesDef)
propertiesDef
- The PropertiesDef.public boolean addPropertyDef(@Nonnull PropertyDefEntity propertyDef)
propertyDef
- The PropertyDef.public PropertiesDefEntity 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.
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.
@Nonnull @CheckReturnValue public Optional<PropertiesDefEntity> getPropertiesDef(@Nonnull String name)
name
- The name of the PropertiesDef.@Nonnull @CheckReturnValue public Collection<PropertiesDefEntity> getPropertiesDefs()
@Nonnull @CheckReturnValue public Optional<PropertyDefEntity> getPropertyDef(@Nonnull String name)
name
- The name of the PropertyDef.@Nonnull @CheckReturnValue public Collection<PropertyDefEntity> getPropertyDefs()
public String getReferenceName()
public String getTarget()
getTarget
in class ValidatorDefEntity
public int hashCode()
hashCode
in class ValidatorDefEntity
@CheckReturnValue public boolean isValidated()
public void setValidated(boolean validated)
validated
- The validation indicator.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.