public class Entity
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_MATCH_MODE |
java.lang.String |
entity |
java.lang.String |
matchMode |
java.lang.String |
output |
java.lang.String |
type |
Constructor and Description |
---|
Entity() |
Entity(Entity o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Entity.
|
static Entity |
fromString(java.lang.String s)
String representation of this Entity.
|
java.lang.String |
getEntity()
entity in full text, 'Mr John Doe' for example
(mandatory) |
java.lang.String |
getMatchMode()
entity match mode
- exact : match exact (including punctuation and case) - lower: match lowercase - norm : match normalized - skipPunct : ignore punctuation (normalized) - fuzzy : allow typo |
java.lang.String |
getOutput()
Normalized form of entity that you can use in the rewritten form
(Optionnal) |
java.lang.String |
getType()
entity type, for example 'street', 'city', 'person', ...
(mandatory) |
Entity |
makeCopy()
Creates and returns a deep copy of this Entity.
|
static Entity |
readFrom(java.io.InputStream is)
Read this Entity from an XML fragment.
|
void |
setEntity(java.lang.String entity)
entity in full text, 'Mr John Doe' for example
(mandatory) |
void |
setMatchMode(java.lang.String matchMode)
entity match mode
- exact : match exact (including punctuation and case) - lower: match lowercase - norm : match normalized - skipPunct : ignore punctuation (normalized) - fuzzy : allow typo |
void |
setOutput(java.lang.String output)
Normalized form of entity that you can use in the rewritten form
(Optionnal) |
void |
setType(java.lang.String type)
entity type, for example 'street', 'city', 'person', ...
(mandatory) |
java.lang.String |
toString()
String representation of this Entity.
|
Entity |
withEntity(java.lang.String entity) |
Entity |
withMatchMode(java.lang.String matchMode) |
Entity |
withOutput(java.lang.String output) |
Entity |
withType(java.lang.String type) |
void |
writeTo(java.io.OutputStream os)
Write this Entity as an XML fragment
|
public java.lang.String type
public java.lang.String entity
public java.lang.String output
public java.lang.String matchMode
public static final java.lang.String DEFAULT_MATCH_MODE
public Entity()
public Entity(Entity o)
public void setType(java.lang.String type)
public java.lang.String getType()
public Entity withType(java.lang.String type)
public void setEntity(java.lang.String entity)
public java.lang.String getEntity()
public Entity withEntity(java.lang.String entity)
public void setOutput(java.lang.String output)
public java.lang.String getOutput()
public Entity withOutput(java.lang.String output)
public void setMatchMode(java.lang.String matchMode)
public java.lang.String getMatchMode()
public Entity withMatchMode(java.lang.String matchMode)
public Entity makeCopy()
public static Entity readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static Entity fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.