Interface IEntityItem
-
- All Known Implementing Classes:
AbstractEntityItem
public interface IEntityItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIEntityItem.ItemType
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetIdentifier()Get the entity's current identifier value.gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItemgetInstance()<T> TgetInstanceValue()IEntityItem.ItemTypegetItemType()StringgetOriginalIdentifier()Get the identifier originally assigned to this entity.intgetReferenceCount()URIgetSource()voidincrementReferenceCount()booleanisIdentifierReassigned()Determine if the identifier was reassigned.intresetReferenceCount()voidsetInstance(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem item)
-
-
-
Method Detail
-
getOriginalIdentifier
@NonNull String getOriginalIdentifier()
Get the identifier originally assigned to this entity.If the identifier value was reassigned, the return value of this method will be different than value returned by
getIdentifier(). In such cases, a call toisIdentifierReassigned()is expected to returntrue.If the value was not reassigned, the return value of this method will be the same value returned by
getIdentifier(). In this case,isIdentifierReassigned()is expected to returnfalse.- Returns:
- the original identifier value before reassignment
-
getIdentifier
@NonNull String getIdentifier()
Get the entity's current identifier value.- Returns:
- the identifier value
-
isIdentifierReassigned
boolean isIdentifierReassigned()
Determine if the identifier was reassigned.- Returns:
trueif the identifier was reassigned, orfalseotherwise
-
getInstance
@NonNull gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem getInstance()
-
setInstance
void setInstance(@NonNull gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem item)
-
getInstanceValue
@NonNull <T> T getInstanceValue()
-
getItemType
@NonNull IEntityItem.ItemType getItemType()
-
getReferenceCount
int getReferenceCount()
-
incrementReferenceCount
void incrementReferenceCount()
-
resetReferenceCount
int resetReferenceCount()
-
-