public final class StoreEntity extends ProxyEntity
Modifier and Type | Class and Description |
---|---|
static class |
StoreEntity.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT_NAME
Store element name.
|
static String |
ENTITY_PREFIX
Store entity prefix.
|
static String |
ENTITY_REFERENCE_NAME
Store entity reference name.
|
UUID_COMPARATOR
Modifier and Type | Method and Description |
---|---|
boolean |
addPointReference(PointEntity pointEntity)
Adds a reference to a point entity.
|
StoreEntity |
copy()
Creates a copy of this entity.
|
protected Proxied |
createDefaultInstance()
Creates a default instance.
|
boolean |
equals(Object other)
|
String |
getElementName()
Gets the entity element name.
|
Optional<? extends Permissions> |
getPermissions()
Gets the permissions.
|
Optional<PermissionsEntity> |
getPermissionsEntity()
Gets the permissions entity.
|
Set<PointEntity> |
getPointReferences()
Gets the point references.
|
String |
getPrefix()
Gets the class prefix.
|
String |
getReferenceName()
Gets the entity reference name.
|
Optional<? extends Store> |
getStore()
Gets the store instance.
|
int |
hashCode() |
static StoreEntity.Builder |
newBuilder()
Returns a new builder.
|
clearInstance, getClassDef, getInstance, getProxy, is, is, setInstance, setUp, tearDown
getParams, setParams
addText, getAttributes, getAttributes, getTexts, setAttributes
compareTo, getName, getNameInUpperCase, getThisLogger, getUUID, setName, setUUID, toString
public static final String ELEMENT_NAME
public static final String ENTITY_PREFIX
public static final String ENTITY_REFERENCE_NAME
@Nonnull @CheckReturnValue public static StoreEntity.Builder newBuilder()
@CheckReturnValue public boolean addPointReference(@Nonnull PointEntity pointEntity)
pointEntity
- The point entity.public StoreEntity 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.
For two Metadata
Entity
to be equal, they must at
least be instances of the same class, have the same UUID
,
Attributes
, name and descriptive texts.
equals
in class ProxyEntity
public String getElementName()
The entity element is used to in the generation of the entity URI.
@Nonnull @CheckReturnValue public Optional<? extends Permissions> getPermissions()
@Nonnull @CheckReturnValue public Optional<PermissionsEntity> getPermissionsEntity()
@Nonnull @CheckReturnValue public Set<PointEntity> getPointReferences()
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()
@Nonnull @CheckReturnValue public Optional<? extends Store> getStore()
public int hashCode()
hashCode
in class ProxyEntity
protected Proxied createDefaultInstance()
This must be overriden by the subclass when the 'classDef' attribute is optional; otherwise, it will always fail.
createDefaultInstance
in class ProxyEntity
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.