public class Descriptor
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
annotation |
static int |
DEFAULT_SCORE |
int |
score |
Constructor and Description |
---|
Descriptor() |
Descriptor(Descriptor o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Descriptor.
|
static Descriptor |
fromString(java.lang.String s)
String representation of this Descriptor.
|
java.lang.String |
getAnnotation()
This annotation should be one of the annotation output by the 'pipelineConfig' module.
|
int |
getScore()
Descriptor score.
|
Descriptor |
makeCopy()
Creates and returns a deep copy of this Descriptor.
|
static Descriptor |
readFrom(java.io.InputStream is)
Read this Descriptor from an XML fragment.
|
void |
setAnnotation(java.lang.String annotation)
This annotation should be one of the annotation output by the 'pipelineConfig' module.
|
void |
setScore(int score)
Descriptor score.
|
java.lang.String |
toString()
String representation of this Descriptor.
|
Descriptor |
withAnnotation(java.lang.String annotation) |
Descriptor |
withScore(int score) |
Descriptor |
withScore(java.lang.Integer score) |
void |
writeTo(java.io.OutputStream os)
Write this Descriptor as an XML fragment
|
public java.lang.String annotation
public int score
public static final int DEFAULT_SCORE
public Descriptor()
public Descriptor(Descriptor o)
public void setAnnotation(java.lang.String annotation)
public java.lang.String getAnnotation()
public Descriptor withAnnotation(java.lang.String annotation)
public void setScore(int score)
public int getScore()
public Descriptor withScore(int score)
public Descriptor withScore(java.lang.Integer score)
public Descriptor makeCopy()
public static Descriptor 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 Descriptor 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 © 2021 Dassault Systèmes, All Rights Reserved.