Class AbstractEntityItem
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.profile.resolver.support.AbstractEntityItem
-
- All Implemented Interfaces:
IEntityItem
public abstract class AbstractEntityItem extends Object implements IEntityItem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface gov.nist.secauto.oscal.lib.profile.resolver.support.IEntityItem
IEntityItem.ItemType
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractEntityItem(gov.nist.secauto.oscal.lib.profile.resolver.support.AbstractEntityItem.Builder builder)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract String
getIdentifier()
Get the entity's current identifier value.gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem
getInstance()
<T> T
getInstanceValue()
IEntityItem.ItemType
getItemType()
String
getOriginalIdentifier()
Get the identifier originally assigned to this entity.int
getReferenceCount()
URI
getSource()
void
incrementReferenceCount()
int
resetReferenceCount()
void
setInstance(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem item)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nist.secauto.oscal.lib.profile.resolver.support.IEntityItem
isIdentifierReassigned
-
-
-
-
Constructor Detail
-
AbstractEntityItem
protected AbstractEntityItem(@NonNull gov.nist.secauto.oscal.lib.profile.resolver.support.AbstractEntityItem.Builder builder)
-
-
Method Detail
-
getOriginalIdentifier
@NonNull public String getOriginalIdentifier()
Description copied from interface:IEntityItem
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
IEntityItem.getIdentifier()
. In such cases, a call toIEntityItem.isIdentifierReassigned()
is expected to returntrue
.If the value was not reassigned, the return value of this method will be the same value returned by
IEntityItem.getIdentifier()
. In this case,IEntityItem.isIdentifierReassigned()
is expected to returnfalse
.- Specified by:
getOriginalIdentifier
in interfaceIEntityItem
- Returns:
- the original identifier value before reassignment
-
getIdentifier
@NonNull public abstract String getIdentifier()
Description copied from interface:IEntityItem
Get the entity's current identifier value.- Specified by:
getIdentifier
in interfaceIEntityItem
- Returns:
- the identifier value
-
getInstance
@NonNull public gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem getInstance()
- Specified by:
getInstance
in interfaceIEntityItem
-
setInstance
public void setInstance(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem item)
- Specified by:
setInstance
in interfaceIEntityItem
-
getInstanceValue
@NonNull public <T> T getInstanceValue()
- Specified by:
getInstanceValue
in interfaceIEntityItem
-
getItemType
@NonNull public IEntityItem.ItemType getItemType()
- Specified by:
getItemType
in interfaceIEntityItem
-
getSource
@NonNull public URI getSource()
- Specified by:
getSource
in interfaceIEntityItem
-
getReferenceCount
public int getReferenceCount()
- Specified by:
getReferenceCount
in interfaceIEntityItem
-
incrementReferenceCount
public void incrementReferenceCount()
- Specified by:
incrementReferenceCount
in interfaceIEntityItem
-
resetReferenceCount
public int resetReferenceCount()
- Specified by:
resetReferenceCount
in interfaceIEntityItem
-
-