public final class EngineEntity extends ProxyEntity
Modifier and Type | Class and Description |
---|---|
static class |
EngineEntity.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT_NAME
Engine element name.
|
static String |
ENTITY_PREFIX
Engine entity prefix.
|
static String |
ENTITY_REFERENCE_NAME
Engine reference name.
|
UUID_COMPARATOR
Modifier | Constructor and Description |
---|---|
protected |
EngineEntity(Optional<String> name,
Optional<UUID> uuid,
Optional<KeyedGroups> attributes,
Optional<Map<String,Text>> texts,
Optional<Params> params,
Optional<ClassDefEntity> classDef,
Optional<Proxied> instance)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
EngineEntity |
copy()
Creates a copy of this entity.
|
boolean |
equals(Object other)
|
String |
getElementName()
Gets the entity element name.
|
Optional<? extends Engine> |
getEngine()
Gets the Engine instance.
|
String |
getPrefix()
Gets the class prefix.
|
String |
getReferenceName()
Gets the entity reference name.
|
int |
hashCode() |
static EngineEntity.Builder |
newBuilder()
Returns a new builder.
|
clearInstance, createDefaultInstance, 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
protected EngineEntity(@Nonnull Optional<String> name, @Nonnull Optional<UUID> uuid, @Nonnull Optional<KeyedGroups> attributes, @Nonnull Optional<Map<String,Text>> texts, @Nonnull Optional<Params> params, @Nonnull Optional<ClassDefEntity> classDef, @Nonnull Optional<Proxied> instance)
name
- The optional entity name.uuid
- The optional entity UUID.attributes
- The optional attributes.texts
- The optional texts.params
- The optional params.classDef
- The optional class definition.instance
- The optional proxied instance.@Nonnull @CheckReturnValue public static EngineEntity.Builder newBuilder()
public EngineEntity 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 Engine> getEngine()
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 int hashCode()
hashCode
in class ProxyEntity
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.