public class Word extends BoolPattern implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Word.Level |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_LEVEL |
java.lang.String |
level |
java.lang.String |
value |
anchor, DEFAULT_ANCHOR
DEFAULT_PRIORITY, name, priority
modifiedAt, modifiedBy
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Word.
|
static Word |
fromString(java.lang.String s)
String representation of this Word.
|
java.lang.String |
getLevel()
Level of the word.
For example, a word with level=lowercase will match case-insensitively. |
Word.Level |
getLevelAsEnum()
Level of the word.
For example, a word with level=lowercase will match case-insensitively. |
java.lang.String |
getValue()
Word to recognize.
|
static boolean |
isA(java.lang.String str,
Word.Level item) |
static boolean |
isOneOf(java.lang.String str,
Word.Level... items) |
Word |
makeCopy()
Creates and returns a deep copy of this Word.
|
static Word |
readFrom(java.io.InputStream is)
Read this Word from an XML fragment.
|
void |
setLevel(java.lang.String level)
Level of the word.
For example, a word with level=lowercase will match case-insensitively. |
void |
setLevel(Word.Level item)
Level of the word.
For example, a word with level=lowercase will match case-insensitively. |
void |
setValue(java.lang.String value)
Word to recognize.
|
java.lang.String |
toString()
String representation of this Word.
|
Word |
withAnchor(boolean anchor) |
Word |
withAnchor(java.lang.Boolean anchor) |
Word |
withLevel(java.lang.String level) |
Word |
withModifiedAt(java.lang.Long modifiedAt) |
Word |
withModifiedBy(java.lang.String modifiedBy) |
Word |
withName(java.lang.String name) |
Word |
withPriority(int priority) |
Word |
withPriority(java.lang.Integer priority) |
Word |
withValue(java.lang.String value) |
void |
writeTo(java.io.OutputStream os)
Write this Word as an XML fragment
|
isAnchor, setAnchor
getName, getPriority, setName, setPriority
getModifiedAt, getModifiedBy, setModifiedAt, setModifiedBy
public java.lang.String value
public java.lang.String level
public static final java.lang.String DEFAULT_LEVEL
public Word()
public Word(Word o)
public static boolean isA(java.lang.String str, Word.Level item)
public static boolean isOneOf(java.lang.String str, Word.Level... items)
public void setLevel(Word.Level item)
public Word.Level getLevelAsEnum()
public Word withAnchor(boolean anchor)
withAnchor
in class BoolPattern
public Word withAnchor(java.lang.Boolean anchor)
withAnchor
in class BoolPattern
public Word withPriority(int priority)
withPriority
in class BoolPattern
public Word withPriority(java.lang.Integer priority)
withPriority
in class BoolPattern
public Word withName(java.lang.String name)
withName
in class BoolPattern
public Word withModifiedBy(java.lang.String modifiedBy)
withModifiedBy
in class BoolPattern
public Word withModifiedAt(java.lang.Long modifiedAt)
withModifiedAt
in class BoolPattern
public void setValue(java.lang.String value)
public java.lang.String getValue()
public Word withValue(java.lang.String value)
public void setLevel(java.lang.String level)
public java.lang.String getLevel()
public Word withLevel(java.lang.String level)
public Word makeCopy()
makeCopy
in class BoolPattern
public static Word 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
writeTo
in class BoolPattern
javax.xml.bind.JAXBException
java.io.IOException
public static Word 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 BoolPattern
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class BoolPattern
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.