public class ProximityElement
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
annotation |
static boolean |
DEFAULT_MANDATORY |
boolean |
mandatory |
java.lang.String |
name |
java.lang.String |
value |
Constructor and Description |
---|
ProximityElement() |
ProximityElement(ProximityElement o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this ProximityElement.
|
static ProximityElement |
fromString(java.lang.String s)
String representation of this ProximityElement.
|
java.lang.String |
getAnnotation()
The annotation tag to search for
|
java.lang.String |
getName()
A optional name that can be referenced in the output annotation format using $name.
|
java.lang.String |
getValue()
An optional display form to match.
|
boolean |
isMandatory()
If FALSE, the processor is allowed to report matches where this annotation is missing
|
ProximityElement |
makeCopy()
Creates and returns a deep copy of this ProximityElement.
|
static ProximityElement |
readFrom(java.io.InputStream is)
Read this ProximityElement from an XML fragment.
|
void |
setAnnotation(java.lang.String annotation)
The annotation tag to search for
|
void |
setMandatory(boolean mandatory)
If FALSE, the processor is allowed to report matches where this annotation is missing
|
void |
setName(java.lang.String name)
A optional name that can be referenced in the output annotation format using $name.
|
void |
setValue(java.lang.String value)
An optional display form to match.
|
java.lang.String |
toString()
String representation of this ProximityElement.
|
ProximityElement |
withAnnotation(java.lang.String annotation) |
ProximityElement |
withMandatory(boolean mandatory) |
ProximityElement |
withMandatory(java.lang.Boolean mandatory) |
ProximityElement |
withName(java.lang.String name) |
ProximityElement |
withValue(java.lang.String value) |
void |
writeTo(java.io.OutputStream os)
Write this ProximityElement as an XML fragment
|
public java.lang.String annotation
public boolean mandatory
public static final boolean DEFAULT_MANDATORY
public java.lang.String value
public java.lang.String name
public ProximityElement()
public ProximityElement(ProximityElement o)
public void setAnnotation(java.lang.String annotation)
public java.lang.String getAnnotation()
public ProximityElement withAnnotation(java.lang.String annotation)
public void setMandatory(boolean mandatory)
public boolean isMandatory()
public ProximityElement withMandatory(boolean mandatory)
public ProximityElement withMandatory(java.lang.Boolean mandatory)
public void setValue(java.lang.String value)
public java.lang.String getValue()
public ProximityElement withValue(java.lang.String value)
public void setName(java.lang.String name)
public java.lang.String getName()
public ProximityElement withName(java.lang.String name)
public ProximityElement makeCopy()
public static ProximityElement 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 ProximityElement 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.