Package skadistats.clarity.model
Class Entity
java.lang.Object
skadistats.clarity.model.Entity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
getIndex()
<T> T
getProperty
(String property) <T> T
int
getState()
long
getUid()
boolean
hasProperties
(String... properties) Check if this entity contains all of the given properties.boolean
hasProperty
(String property) Check if this entity contains the given property.boolean
isActive()
boolean
void
setActive
(boolean active) void
setExistent
(boolean existent) void
setState
(EntityState state) toString()
static long
uid
(int dtClassId, int handle)
-
Constructor Details
-
Entity
-
-
Method Details
-
getIndex
public int getIndex() -
getSerial
public int getSerial() -
getHandle
public int getHandle() -
getDtClass
-
isExistent
public boolean isExistent() -
setExistent
public void setExistent(boolean existent) -
isActive
public boolean isActive() -
setActive
public void setActive(boolean active) -
getState
-
setState
-
hasProperty
Check if this entity contains the given property.- Parameters:
property
- Name of the property- Returns:
- True, if and only if the given property is present in this entity
-
hasProperties
Check if this entity contains all of the given properties.- Parameters:
properties
- Names of the properties- Returns:
- True, if and only if the given properties are present in this entity
-
getProperty
-
getPropertyForFieldPath
-
toString
-
getUid
public long getUid() -
uid
public static long uid(int dtClassId, int handle)
-