public class InformationExtractionRelationMention extends TieSimpleObject
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
The name of the ClassObject representing this class.
|
static String |
INFORMATIONEXTRACTION_ATTRIBUTE
The name of the Attribute representing
The Information Extraction in which this entity mention was defined.
|
static String |
MENTIONDETAILS_ATTRIBUTE
The name of the Attribute representing
the details pertaining to the relation mention.
|
static String |
POSITION_ATTRIBUTE
The name of the Attribute representing
the sentence position in which this entity mention appears (zero based).
|
static String |
RELATIONTYPE_ATTRIBUTE
The name of the Attribute representing
the relation type.
|
static String |
SOURCETOKENLIST_ATTRIBUTE
The name of the Attribute representing
the token list comprising the set of tokens for the source
of the relation mention.
|
static String |
TARGETTOKENLIST_ATTRIBUTE
The name of the Attribute representing
the token list comprising the set of tokens for the target
of the relation mention.
|
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session, NAME_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE
Constructor and Description |
---|
InformationExtractionRelationMention(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Construct a InformationExtractionRelationMention object.
|
Modifier and Type | Method and Description |
---|---|
void |
addMentionDetail(String key,
AttributeValue value)
Adds an relation mention detail (SimpleProperty) for this object.
|
InformationExtraction |
getInformationExtraction()
Gets The InformationExtraction in which this entity mention was defined.
|
AttributeValue |
getMentionDetail(String propName)
Gets the relation mention detail matching the specified property name.
|
SimpleProperty[] |
getMentionDetails()
Gets the details pertaining to the relation mention.
|
int |
getPosition()
Gets the The sentence position in which this entity mention
appears (zero based).
|
String |
getRelationType()
Gets the relation type.
|
InformationExtractionTokenList |
getSourceTokenList()
Gets the token list comprising the set of tokens for the source
of the relation mention.
|
InformationExtractionTokenList |
getTargetTokenList()
Gets the token list comprising the set of tokens for the target
of the relation mention.
|
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.
|
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 SOURCETOKENLIST_ATTRIBUTE
public static final String TARGETTOKENLIST_ATTRIBUTE
public static final String RELATIONTYPE_ATTRIBUTE
public static final String POSITION_ATTRIBUTE
public static final String MENTIONDETAILS_ATTRIBUTE
public InformationExtractionRelationMention(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 InformationExtractionTokenList getSourceTokenList() throws IfsException
IfsException
- if the operation failspublic InformationExtractionTokenList getTargetTokenList() throws IfsException
IfsException
- if the operation failspublic String getRelationType() throws IfsException
IfsException
- if the operation failspublic int getPosition() throws IfsException
IfsException
- if the operation failspublic SimpleProperty[] getMentionDetails() throws IfsException
IfsException
- if the operation failspublic AttributeValue getMentionDetail(String propName) throws IfsException
propName
- the property nameIfsException
- if the operation failspublic void addMentionDetail(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.