public class Annotation extends BoolPattern implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Annotation.Error |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_ERROR |
static boolean |
DEFAULT_REQUIRED |
static boolean |
DEFAULT_USE_DISPLAY_FORM |
static java.lang.String |
DEFAULT_VALUE |
java.lang.String |
error |
java.lang.String |
kind |
boolean |
required
Deprecated.
|
boolean |
useDisplayForm |
java.lang.String |
value |
anchor, DEFAULT_ANCHOR
DEFAULT_PRIORITY, name, priority
modifiedAt, modifiedBy
Constructor and Description |
---|
Annotation() |
Annotation(Annotation o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Annotation.
|
static Annotation |
fromString(java.lang.String s)
String representation of this Annotation.
|
java.lang.String |
getError() |
Annotation.Error |
getErrorAsEnum() |
java.lang.String |
getKind() |
java.lang.String |
getValue() |
static boolean |
isA(java.lang.String str,
Annotation.Error item) |
static boolean |
isOneOf(java.lang.String str,
Annotation.Error... items) |
boolean |
isRequired()
Deprecated.
|
boolean |
isUseDisplayForm() |
Annotation |
makeCopy()
Creates and returns a deep copy of this Annotation.
|
static Annotation |
readFrom(java.io.InputStream is)
Read this Annotation from an XML fragment.
|
void |
setError(Annotation.Error item) |
void |
setError(java.lang.String error) |
void |
setKind(java.lang.String kind) |
void |
setRequired(boolean required)
Deprecated.
|
void |
setUseDisplayForm(boolean useDisplayForm) |
void |
setValue(java.lang.String value) |
java.lang.String |
toString()
String representation of this Annotation.
|
Annotation |
withAnchor(boolean anchor) |
Annotation |
withAnchor(java.lang.Boolean anchor) |
Annotation |
withError(java.lang.String error) |
Annotation |
withKind(java.lang.String kind) |
Annotation |
withModifiedAt(java.lang.Long modifiedAt) |
Annotation |
withModifiedBy(java.lang.String modifiedBy) |
Annotation |
withName(java.lang.String name) |
Annotation |
withPriority(int priority) |
Annotation |
withPriority(java.lang.Integer priority) |
Annotation |
withRequired(boolean required)
Deprecated.
|
Annotation |
withRequired(java.lang.Boolean required)
Deprecated.
|
Annotation |
withUseDisplayForm(boolean useDisplayForm) |
Annotation |
withUseDisplayForm(java.lang.Boolean useDisplayForm) |
Annotation |
withValue(java.lang.String value) |
void |
writeTo(java.io.OutputStream os)
Write this Annotation 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 static final java.lang.String DEFAULT_VALUE
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 Annotation()
public Annotation(Annotation o)
public static boolean isA(java.lang.String str, Annotation.Error item)
public static boolean isOneOf(java.lang.String str, Annotation.Error... items)
public void setError(Annotation.Error item)
public Annotation.Error getErrorAsEnum()
public Annotation withAnchor(boolean anchor)
withAnchor
in class BoolPattern
public Annotation withAnchor(java.lang.Boolean anchor)
withAnchor
in class BoolPattern
public Annotation withPriority(int priority)
withPriority
in class BoolPattern
public Annotation withPriority(java.lang.Integer priority)
withPriority
in class BoolPattern
public Annotation withName(java.lang.String name)
withName
in class BoolPattern
public Annotation withModifiedBy(java.lang.String modifiedBy)
withModifiedBy
in class BoolPattern
public Annotation withModifiedAt(java.lang.Long modifiedAt)
withModifiedAt
in class BoolPattern
public void setKind(java.lang.String kind)
public java.lang.String getKind()
public Annotation withKind(java.lang.String kind)
public void setValue(java.lang.String value)
public java.lang.String getValue()
public Annotation withValue(java.lang.String value)
public void setUseDisplayForm(boolean useDisplayForm)
public boolean isUseDisplayForm()
public Annotation withUseDisplayForm(boolean useDisplayForm)
public Annotation withUseDisplayForm(java.lang.Boolean useDisplayForm)
@Deprecated public void setRequired(boolean required)
@Deprecated public boolean isRequired()
@Deprecated public Annotation withRequired(boolean required)
@Deprecated public Annotation withRequired(java.lang.Boolean required)
public void setError(java.lang.String error)
public java.lang.String getError()
public Annotation withError(java.lang.String error)
public Annotation makeCopy()
makeCopy
in class BoolPattern
public static Annotation 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 Annotation 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.