public class InformationExtractionOutcomeMarking extends TieSimpleObject
Modifier and Type | Class and Description |
---|---|
static class |
InformationExtractionOutcomeMarking.MarkingStatus
Enumeration for the various marking statuses.
|
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
The name of the ClassObject representing this class.
|
static String |
CONFIDENCE_ATTRIBUTE
The name of the Attribute representing
The confidence level that this marking is correct (0.0 - 1.0).
|
static String |
ENTITYTYPE_ATTRIBUTE
The name of the Attribute representing
The entity type of the marking.
|
static String |
INFORMATIONEXTRACTION_ATTRIBUTE
The name of the Attribute representing
The Information Extraction in which this marking was defined.
|
static String |
MARKINGDETAILS_ATTRIBUTE
The name of the Attribute representing
the details pertaining to the marking.
|
static int |
MARKINGSTATUS_UNCONFIRMED
The status value indicating the marking is unconfirmed.
|
static int |
STATUS_ACCEPTED
The status value indicating the marking has been confirmed.
|
static String |
STATUS_ATTRIBUTE
The name of the Attribute representing
The status of the marking (enumerated).
|
static int |
STATUS_CONFIRMED
The status value indicating the marking has been confirmed.
|
static int |
STATUS_REJECTED
The status value indicating the marking has been reviewed and rejected.
|
static int |
STATUS_REVIEWING
The status value indicating the marking is being reviewed.
|
static int |
STATUS_UNKNOWN
The status value indicating the marking status is unknown.
|
static int |
STATUS_UNREVIEWED
The status value indicating the marking is unconfirmed.
|
static String |
TOKENLIST_ATTRIBUTE
The name of the Attribute representing
The token list comprising the set of tokens for the marking.
|
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session, NAME_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE
Constructor and Description |
---|
InformationExtractionOutcomeMarking(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Construct a InformationExtractionOutcomeMarking object.
|
Modifier and Type | Method and Description |
---|---|
void |
addMarkingDetail(String key,
AttributeValue value)
Adds an marking detail (SimpleProperty) for this object.
|
double |
getConfidence()
Gets the confidence level that this marking is correct (0.0 - 1.0).
|
InformationExtractionEntityType |
getEntityType()
Gets entity type of the marking.
|
int |
getFirstTokenPosition()
Gets the token position of the first token in this marking's TokenList.
|
InformationExtraction |
getInformationExtraction()
Gets the InformationExtraction in which this marking was defined.
|
AttributeValue |
getMarkingDetail(String propName)
Gets the marking detail matching the specified property name.
|
SimpleProperty[] |
getMarkingDetails()
Gets the details pertaining to the marking.
|
String |
getMarkingText()
Gets text from the parsed text corresponding to this marking.
|
int |
getSentenceNumber()
Gets the sentence number (zero based) in which the first token
in the marking appears.
|
InformationExtractionOutcomeMarking.MarkingStatus |
getStatus()
Gets the status of the marking (enumerated).
|
int |
getStatusCode()
Gets the status of the marking (enumerated).
|
String |
getStatusName()
Gets the name of the status of the marking (enumerated).
|
InformationExtractionTokenList |
getTokenList()
Gets the token list comprising the set of tokens for the marking.
|
boolean |
isConfirmed()
Returns true if this marking is confirmed.
|
protected void |
postCreate(LibraryObjectDefinition lodef)
Extensibility point to perform actions after the
creation of a object.
|
protected void |
preFree(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the
permanent deletion ("free") of a object.
|
protected void |
preUpdate(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the update of a object.
|
void |
setEntityType(InformationExtractionEntityType entType)
Sets the entity type for this marking.
|
free, handleCreate, isValidEventType
added, addSimpleProperty, addSimpleProperty, applyProperties, auditCreated, auditUpdated, canPurge, checkIfPropertyBundleSupported, checkRequiredAttributeSet, clearCopyContext, clearFreeContext, clearUpdateContext, compareTo, constructIdArray, constructIdArray, constructLibraryObject, constructLibraryObjectVector, createDedicatedPropertyBundle, createInstance, deriveDomainUniqueName, dispose, equals, equals, free, freeAll, get, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getAuditDomainContext, getAuditEventFolderContext, getClassId, getClassname, getClassName, getClassObject, getCommonName, getCommonNameAndClass, getCopyContext, getCreateContext, getData, getDefinition, getDefinitionForSimplePropertyUpdates, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getFreeContext, getId, getLabel, getName, getObjectReferenceAttribute, getOperationActionSpecificationContext, getPropertyBundle, getPropertyValue, getPublicObjectAttribute, getResourceString, getResourceString, getSchemaObjectAttribute, getSession, getSessionInterface, getSharedStateFactory, getSimpleObjectAttribute, getSimpleProperties, getSimpleProperty, getSimplePropertyValue, getStringIdentifier, getSystemObjectAttribute, getTraceLogger, getUpdateContext, handleAdminModeChange, handleEvent, handleFree, handleUpdate, hashCode, hasNameAttribute, hasPropertyBundleAttribute, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, postUpdate, preCreate, prePostAuditEvent, putProperty, putProperty, removeAllProperties, removeAllSimpleProperties, removeAllSimpleProperties, removed, removeProperty, removeSimpleProperty, removeSimpleProperty, renderAsRandomAccessContent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setCopyContext, setFreeContext, setId, setName, setPropertyBundle, setPropertyValue, setUpdateContext, toString, trace, trustHandleCreate, trustHandleCreateAsAdmin, trustHandleFree, trustHandleFreeAsAdmin, trustHandleUpdate, trustHandleUpdateAsAdmin, update, updateAndExposeDefinition, validatePropertyValues, vectorLibraryObjectElement, vectorToLibraryObjectArray, verifyAdministrationMode, verifyConnected, verifyPersistent, verifySystemUserAccess, verifyTargetObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributeByUpperCaseName, getClassId, getId, getSessionInterface
getTraceLogger, isTraced, trace
public static final String CLASS_NAME
public static final String INFORMATIONEXTRACTION_ATTRIBUTE
public static final String ENTITYTYPE_ATTRIBUTE
public static final String STATUS_ATTRIBUTE
public static final String TOKENLIST_ATTRIBUTE
public static final String CONFIDENCE_ATTRIBUTE
public static final String MARKINGDETAILS_ATTRIBUTE
public static final int STATUS_UNKNOWN
public static final int MARKINGSTATUS_UNCONFIRMED
public static final int STATUS_UNREVIEWED
Note this constant is retained for backwards compatibility.
public static final int STATUS_REVIEWING
public static final int STATUS_CONFIRMED
public static final int STATUS_ACCEPTED
Note this constant is retained for backwards compatibility.
public static final int STATUS_REJECTED
public InformationExtractionOutcomeMarking(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- current LibrarySessionid
- object idclassId
- class iddata
- data componentIfsException
- if the operation failspublic InformationExtraction getInformationExtraction() throws IfsException
IfsException
- if the operation failspublic InformationExtractionEntityType getEntityType() throws IfsException
IfsException
- if the operation failspublic int getStatusCode() throws IfsException
IfsException
- if the operation failspublic InformationExtractionOutcomeMarking.MarkingStatus getStatus() throws IfsException
IfsException
- if the operation failspublic String getStatusName() throws IfsException
IfsException
- if the operation failspublic InformationExtractionTokenList getTokenList() throws IfsException
IfsException
- if the operation failspublic double getConfidence() throws IfsException
IfsException
- if the operation failspublic SimpleProperty[] getMarkingDetails() throws IfsException
IfsException
- if the operation failspublic String getMarkingText() throws IfsException
IfsException
- if the operation failspublic int getSentenceNumber() throws IfsException
IfsException
- if the operation failspublic int getFirstTokenPosition() throws IfsException
IfsException
- if the operation failspublic AttributeValue getMarkingDetail(String propName) throws IfsException
propName
- the property nameIfsException
- if the operation failspublic boolean isConfirmed() throws IfsException
IfsException
- if the operation failspublic void setEntityType(InformationExtractionEntityType entType) throws IfsException
entType
- the entity typeIfsException
- if the operation failspublic void addMarkingDetail(String key, AttributeValue value) throws IfsException
key
- the property's keyvalue
- the property's valueIfsException
- if the operation failsprotected void postCreate(LibraryObjectDefinition lodef) throws IfsException
This method is typically overridden by subclasses that
perform operations after an object is created.
Subclasses are expected to invoke super.postCreate
.
postCreate
in class LibraryObject
lodef
- object definition that was used to create the objectIfsException
- if operation fails.protected void preUpdate(LibraryObjectDefinition lodef) throws IfsException
This method is typically overridden by subclasses that
perform other operations prior to the target object
being updated, in order to modify objects related
to the target object.
Subclasses are expected to invoke super.preUpdate
.
preUpdate
in class LibraryObject
lodef
- object definition used to define how the target object
will be updatedIfsException
- if operation fails.protected void preFree(LibraryObjectDefinition lodef) throws IfsException
LibraryObject
This method is typically overridden by subclasses that
perform other operations prior to the target object
being freed in order to all delete or modify objects related
to the target object.
Subclasses are expected to invoke super.preFree
.
preFree
in class LibraryObject
lodef
- object definition used to hold options related to the free
operationIfsException
- if operation fails.Copyright © 2023. All rights reserved.