public class TokenRegexp extends BoolPattern implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
TokenRegexp.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
Constructor and Description |
---|
TokenRegexp() |
TokenRegexp(TokenRegexp o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this TokenRegexp.
|
static TokenRegexp |
fromString(java.lang.String s)
String representation of this TokenRegexp.
|
java.lang.String |
getLevel()
Level of the regular expression.
For example, a regexp with level=lowercase will match case-insensitively. |
TokenRegexp.Level |
getLevelAsEnum()
Level of the regular expression.
For example, a regexp with level=lowercase will match case-insensitively. |
java.lang.String |
getValue()
Regular expression to recognize.
|
static boolean |
isA(java.lang.String str,
TokenRegexp.Level item) |
static boolean |
isOneOf(java.lang.String str,
TokenRegexp.Level... items) |
TokenRegexp |
makeCopy()
Creates and returns a deep copy of this TokenRegexp.
|
static TokenRegexp |
readFrom(java.io.InputStream is)
Read this TokenRegexp from an XML fragment.
|
void |
setLevel(java.lang.String level)
Level of the regular expression.
For example, a regexp with level=lowercase will match case-insensitively. |
void |
setLevel(TokenRegexp.Level item)
Level of the regular expression.
For example, a regexp with level=lowercase will match case-insensitively. |
void |
setValue(java.lang.String value)
Regular expression to recognize.
|
java.lang.String |
toString()
String representation of this TokenRegexp.
|
TokenRegexp |
withAnchor(boolean anchor) |
TokenRegexp |
withAnchor(java.lang.Boolean anchor) |
TokenRegexp |
withLevel(java.lang.String level) |
TokenRegexp |
withModifiedAt(java.lang.Long modifiedAt) |
TokenRegexp |
withModifiedBy(java.lang.String modifiedBy) |
TokenRegexp |
withName(java.lang.String name) |
TokenRegexp |
withPriority(int priority) |
TokenRegexp |
withPriority(java.lang.Integer priority) |
TokenRegexp |
withValue(java.lang.String value) |
void |
writeTo(java.io.OutputStream os)
Write this TokenRegexp 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 TokenRegexp()
public TokenRegexp(TokenRegexp o)
public static boolean isA(java.lang.String str, TokenRegexp.Level item)
public static boolean isOneOf(java.lang.String str, TokenRegexp.Level... items)
public void setLevel(TokenRegexp.Level item)
public TokenRegexp.Level getLevelAsEnum()
public TokenRegexp withAnchor(boolean anchor)
withAnchor
in class BoolPattern
public TokenRegexp withAnchor(java.lang.Boolean anchor)
withAnchor
in class BoolPattern
public TokenRegexp withPriority(int priority)
withPriority
in class BoolPattern
public TokenRegexp withPriority(java.lang.Integer priority)
withPriority
in class BoolPattern
public TokenRegexp withName(java.lang.String name)
withName
in class BoolPattern
public TokenRegexp withModifiedBy(java.lang.String modifiedBy)
withModifiedBy
in class BoolPattern
public TokenRegexp withModifiedAt(java.lang.Long modifiedAt)
withModifiedAt
in class BoolPattern
public void setValue(java.lang.String value)
public java.lang.String getValue()
public TokenRegexp withValue(java.lang.String value)
public void setLevel(java.lang.String level)
public java.lang.String getLevel()
public TokenRegexp withLevel(java.lang.String level)
public TokenRegexp makeCopy()
makeCopy
in class BoolPattern
public static TokenRegexp 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 TokenRegexp 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.