public class AnnotationRegexp extends BoolPattern implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationRegexp.Error |
static class |
AnnotationRegexp.Level |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
capture |
static java.lang.String |
DEFAULT_ERROR |
static java.lang.String |
DEFAULT_LEVEL |
static boolean |
DEFAULT_REQUIRED |
static boolean |
DEFAULT_USE_DISPLAY_FORM |
java.lang.String |
error |
java.lang.String |
kind |
java.lang.String |
level |
boolean |
required
Deprecated.
|
boolean |
useDisplayForm |
java.lang.String |
value |
anchor, DEFAULT_ANCHOR
DEFAULT_PRIORITY, name, priority
modifiedAt, modifiedBy
Constructor and Description |
---|
AnnotationRegexp() |
AnnotationRegexp(AnnotationRegexp o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this AnnotationRegexp.
|
static AnnotationRegexp |
fromString(java.lang.String s)
String representation of this AnnotationRegexp.
|
java.lang.String |
getCapture()
Output format in sed format used to generate the final match annotation
|
java.lang.String |
getError() |
AnnotationRegexp.Error |
getErrorAsEnum() |
java.lang.String |
getKind()
Annotation kind that the annotation regular expression will be tested against.
|
java.lang.String |
getLevel()
Matching level, can be normalized, lowercase or exact.
|
AnnotationRegexp.Level |
getLevelAsEnum()
Matching level, can be normalized, lowercase or exact.
|
java.lang.String |
getValue()
Regular expression of the annotation.
|
static boolean |
isA(java.lang.String str,
AnnotationRegexp.Error item) |
static boolean |
isA(java.lang.String str,
AnnotationRegexp.Level item) |
static boolean |
isOneOf(java.lang.String str,
AnnotationRegexp.Error... items) |
static boolean |
isOneOf(java.lang.String str,
AnnotationRegexp.Level... items) |
boolean |
isRequired()
Deprecated.
|
boolean |
isUseDisplayForm()
Activate this option to use the display form of this annotation to build the final output annotation.
|
AnnotationRegexp |
makeCopy()
Creates and returns a deep copy of this AnnotationRegexp.
|
static AnnotationRegexp |
readFrom(java.io.InputStream is)
Read this AnnotationRegexp from an XML fragment.
|
void |
setCapture(java.lang.String capture)
Output format in sed format used to generate the final match annotation
|
void |
setError(AnnotationRegexp.Error item) |
void |
setError(java.lang.String error) |
void |
setKind(java.lang.String kind)
Annotation kind that the annotation regular expression will be tested against.
|
void |
setLevel(AnnotationRegexp.Level item)
Matching level, can be normalized, lowercase or exact.
|
void |
setLevel(java.lang.String level)
Matching level, can be normalized, lowercase or exact.
|
void |
setRequired(boolean required)
Deprecated.
|
void |
setUseDisplayForm(boolean useDisplayForm)
Activate this option to use the display form of this annotation to build the final output annotation.
|
void |
setValue(java.lang.String value)
Regular expression of the annotation.
|
java.lang.String |
toString()
String representation of this AnnotationRegexp.
|
AnnotationRegexp |
withAnchor(boolean anchor) |
AnnotationRegexp |
withAnchor(java.lang.Boolean anchor) |
AnnotationRegexp |
withCapture(java.lang.String capture) |
AnnotationRegexp |
withError(java.lang.String error) |
AnnotationRegexp |
withKind(java.lang.String kind) |
AnnotationRegexp |
withLevel(java.lang.String level) |
AnnotationRegexp |
withModifiedAt(java.lang.Long modifiedAt) |
AnnotationRegexp |
withModifiedBy(java.lang.String modifiedBy) |
AnnotationRegexp |
withName(java.lang.String name) |
AnnotationRegexp |
withPriority(int priority) |
AnnotationRegexp |
withPriority(java.lang.Integer priority) |
AnnotationRegexp |
withRequired(boolean required)
Deprecated.
|
AnnotationRegexp |
withRequired(java.lang.Boolean required)
Deprecated.
|
AnnotationRegexp |
withUseDisplayForm(boolean useDisplayForm) |
AnnotationRegexp |
withUseDisplayForm(java.lang.Boolean useDisplayForm) |
AnnotationRegexp |
withValue(java.lang.String value) |
void |
writeTo(java.io.OutputStream os)
Write this AnnotationRegexp as an XML fragment
|
isAnchor, setAnchor
getName, getPriority, setName, setPriority
getModifiedAt, getModifiedBy, setModifiedAt, setModifiedBy
public java.lang.String kind
public java.lang.String value
public java.lang.String level
public static final java.lang.String DEFAULT_LEVEL
public boolean useDisplayForm
public static final boolean DEFAULT_USE_DISPLAY_FORM
@Deprecated public boolean required
public static final boolean DEFAULT_REQUIRED
public java.lang.String error
public static final java.lang.String DEFAULT_ERROR
public java.lang.String capture
public AnnotationRegexp()
public AnnotationRegexp(AnnotationRegexp o)
public static boolean isA(java.lang.String str, AnnotationRegexp.Level item)
public static boolean isOneOf(java.lang.String str, AnnotationRegexp.Level... items)
public void setLevel(AnnotationRegexp.Level item)
public AnnotationRegexp.Level getLevelAsEnum()
public static boolean isA(java.lang.String str, AnnotationRegexp.Error item)
public static boolean isOneOf(java.lang.String str, AnnotationRegexp.Error... items)
public void setError(AnnotationRegexp.Error item)
public AnnotationRegexp.Error getErrorAsEnum()
public AnnotationRegexp withAnchor(boolean anchor)
withAnchor
in class BoolPattern
public AnnotationRegexp withAnchor(java.lang.Boolean anchor)
withAnchor
in class BoolPattern
public AnnotationRegexp withPriority(int priority)
withPriority
in class BoolPattern
public AnnotationRegexp withPriority(java.lang.Integer priority)
withPriority
in class BoolPattern
public AnnotationRegexp withName(java.lang.String name)
withName
in class BoolPattern
public AnnotationRegexp withModifiedBy(java.lang.String modifiedBy)
withModifiedBy
in class BoolPattern
public AnnotationRegexp withModifiedAt(java.lang.Long modifiedAt)
withModifiedAt
in class BoolPattern
public void setKind(java.lang.String kind)
public java.lang.String getKind()
public AnnotationRegexp withKind(java.lang.String kind)
public void setValue(java.lang.String value)
public java.lang.String getValue()
public AnnotationRegexp withValue(java.lang.String value)
public void setLevel(java.lang.String level)
public java.lang.String getLevel()
public AnnotationRegexp withLevel(java.lang.String level)
public void setUseDisplayForm(boolean useDisplayForm)
public boolean isUseDisplayForm()
public AnnotationRegexp withUseDisplayForm(boolean useDisplayForm)
public AnnotationRegexp withUseDisplayForm(java.lang.Boolean useDisplayForm)
@Deprecated public void setRequired(boolean required)
@Deprecated public boolean isRequired()
@Deprecated public AnnotationRegexp withRequired(boolean required)
@Deprecated public AnnotationRegexp withRequired(java.lang.Boolean required)
public void setError(java.lang.String error)
public java.lang.String getError()
public AnnotationRegexp withError(java.lang.String error)
public void setCapture(java.lang.String capture)
public java.lang.String getCapture()
public AnnotationRegexp withCapture(java.lang.String capture)
public AnnotationRegexp makeCopy()
makeCopy
in class BoolPattern
public static AnnotationRegexp 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 AnnotationRegexp 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.