Class AbstractEntityItem
java.lang.Object
gov.nist.secauto.oscal.lib.profile.resolver.support.AbstractEntityItem
- All Implemented Interfaces:
IEntityItem
-
Nested Class Summary
Nested classes/interfaces inherited from interface gov.nist.secauto.oscal.lib.profile.resolver.support.IEntityItem
IEntityItem.ItemType
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractEntityItem
(gov.nist.secauto.oscal.lib.profile.resolver.support.AbstractEntityItem.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionabstract String
Get the entity's current identifier value.gov.nist.secauto.metaschema.core.metapath.item.node.IModelNodeItem<?,
?> <T> T
Get the identifier originally assigned to this entity.int
void
int
void
setInstance
(gov.nist.secauto.metaschema.core.metapath.item.node.IModelNodeItem<?, ?> 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 Details
-
AbstractEntityItem
protected AbstractEntityItem(@NonNull gov.nist.secauto.oscal.lib.profile.resolver.support.AbstractEntityItem.Builder builder)
-
-
Method Details
-
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
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.core.metapath.item.node.IModelNodeItem<?,?> getInstance()- Specified by:
getInstance
in interfaceIEntityItem
-
setInstance
public void setInstance(gov.nist.secauto.metaschema.core.metapath.item.node.IModelNodeItem<?, ?> item) - Specified by:
setInstance
in interfaceIEntityItem
-
getInstanceValue
- Specified by:
getInstanceValue
in interfaceIEntityItem
-
getItemType
- Specified by:
getItemType
in interfaceIEntityItem
-
getSource
- Specified by:
getSource
in interfaceIEntityItem
-
getReferenceCount
- Specified by:
getReferenceCount
in interfaceIEntityItem
-
incrementReferenceCount
- Specified by:
incrementReferenceCount
in interfaceIEntityItem
-
resetReferenceCount
- Specified by:
resetReferenceCount
in interfaceIEntityItem
-