Package step.core.entities
Class Entity<A extends step.core.accessors.AbstractIdentifiableObject,T extends step.core.accessors.Accessor<A>>
- java.lang.Object
-
- step.core.entities.Entity<A,T>
-
- Direct Known Subclasses:
FunctionEntity,FunctionPackageEntity,PlanEntity,ResourceEntity
public class Entity<A extends step.core.accessors.AbstractIdentifiableObject,T extends step.core.accessors.Accessor<A>> extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetAccessor()Class<A>getEntityClass()StringgetName()booleanisByPassObjectPredicate()StringresolveAtomicReference(Object atomicReference, EntityDependencyTreeVisitor.EntityTreeVisitorContext visitorContext)This method is responsible for the resolution of atomic references to entity idvoidsetByPassObjectPredicate(boolean byPassObjectPredicate)ObjectupdateAtomicReference(Object atomicReference, String newEntityId, EntityDependencyTreeVisitor.EntityTreeVisitorContext visitorContext)This method is responsible for the update of atomic references with a new entity id
-
-
-
Method Detail
-
getName
public String getName()
-
getAccessor
public T getAccessor()
-
isByPassObjectPredicate
public boolean isByPassObjectPredicate()
-
setByPassObjectPredicate
public void setByPassObjectPredicate(boolean byPassObjectPredicate)
-
resolveAtomicReference
public String resolveAtomicReference(Object atomicReference, EntityDependencyTreeVisitor.EntityTreeVisitorContext visitorContext)
This method is responsible for the resolution of atomic references to entity id- Parameters:
atomicReference- the atomic reference to be resolvedvisitorContext- the context object- Returns:
- the resolved entity id or null
-
updateAtomicReference
public Object updateAtomicReference(Object atomicReference, String newEntityId, EntityDependencyTreeVisitor.EntityTreeVisitorContext visitorContext)
This method is responsible for the update of atomic references with a new entity id- Parameters:
atomicReference- the atomic reference to be updatednewEntityId- the new entity ifvisitorContext- the context object- Returns:
- the updated atomic reference
-
-