Package com.attivio.sdk.client.trigger
Class TriggerDefinition
- java.lang.Object
-
- com.attivio.sdk.client.trigger.TriggerDefinition
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class TriggerDefinition extends java.lang.Object implements java.lang.Cloneable, java.io.SerializableDefines a trigger, which is used for matching documents during ingestion processing.A trigger is uniquely identified in a dictionary by its
name.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TriggerDefinition()TriggerDefinition(java.lang.String name)TriggerDefinition(java.lang.String name, java.util.Locale locale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEntity(java.lang.String entity, Query query)Add an additional entity to extract.TriggerDefinitionclone()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,Query>getEntities()Get additional entities to extract.java.lang.StringgetEntity()Get the entity name for this trigger.java.util.DategetLastModified()Get the time this trigger was last modified, ornullif unknown.java.util.LocalegetLocale()Get theLocaleto use for evaluating this trigger.java.lang.StringgetName()Get the name of this trigger.java.lang.StringgetPayload()Get the payload for this trigger.QuerygetQuery()Get the query to use for matching this trigger.intgetScore()Get the score for matching this trigger.inthashCode()booleanisCompiled()Get if the most recent modification for this trigger has been compiled.booleanisPublished()Get if the most recent modification for this trigger has been published.voidsetCompiled(boolean value)Get if the most recent modification for this trigger has been compiled.voidsetEntities(java.util.Map<java.lang.String,Query> value)Set additional entities to extract.voidsetEntity(java.lang.String value)Set the entity name for this trigger.voidsetLastModified(java.util.Date value)Set the time this trigger was last modified, ornullif unknown.voidsetLocale(java.util.Locale value)Set theLocaleto use for evaluating this trigger.voidsetName(java.lang.String value)Set the name of this trigger.voidsetPayload(java.lang.String value)Set the payload for this trigger.voidsetPublished(boolean value)Get if the most recent modification for this trigger has been published.voidsetQuery(Query value)Set the query to use for matching this trigger.voidsetScore(int value)Set the score for matching this trigger.java.lang.StringtoString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name of this trigger.
-
setName
public void setName(java.lang.String value)
Set the name of this trigger.
-
getLastModified
public java.util.Date getLastModified()
Get the time this trigger was last modified, ornullif unknown.
-
setLastModified
public void setLastModified(java.util.Date value)
Set the time this trigger was last modified, ornullif unknown.
-
getEntity
public java.lang.String getEntity()
Get the entity name for this trigger.
-
setEntity
public void setEntity(java.lang.String value)
Set the entity name for this trigger.
-
getEntities
public java.util.Map<java.lang.String,Query> getEntities()
Get additional entities to extract.These entities will not affect the match for this trigger and will not contribute any score, but will be used for annotating entities if this trigger matches.
-
setEntities
public void setEntities(java.util.Map<java.lang.String,Query> value)
Set additional entities to extract.These entities will not affect the match for this trigger and will not contribute any score, but will be used for annotating entities if this trigger matches.
-
addEntity
public void addEntity(java.lang.String entity, Query query)Add an additional entity to extract.These entities will not affect the match for this trigger and will not contribute any score, but will be used for annotating entities if this trigger matches.
-
getPayload
public java.lang.String getPayload()
Get the payload for this trigger.
-
setPayload
public void setPayload(java.lang.String value)
Set the payload for this trigger.
-
getScore
public int getScore()
Get the score for matching this trigger.
-
setScore
public void setScore(int value)
Set the score for matching this trigger.
-
getQuery
public Query getQuery()
Get the query to use for matching this trigger.
-
setQuery
public void setQuery(Query value)
Set the query to use for matching this trigger.
-
getLocale
public java.util.Locale getLocale()
Get theLocaleto use for evaluating this trigger.
-
setLocale
public void setLocale(java.util.Locale value)
Set theLocaleto use for evaluating this trigger.
-
isCompiled
public boolean isCompiled()
Get if the most recent modification for this trigger has been compiled.
-
setCompiled
public void setCompiled(boolean value)
Get if the most recent modification for this trigger has been compiled.
-
isPublished
public boolean isPublished()
Get if the most recent modification for this trigger has been published.
-
setPublished
public void setPublished(boolean value)
Get if the most recent modification for this trigger has been published.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
clone
public TriggerDefinition clone()
- Overrides:
clonein classjava.lang.Object
-
-