public class SelectMostFrequentValue extends AnnotationManagerOperation implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
annotation |
static int |
DEFAULT_HOW_MANY |
static boolean |
DEFAULT_TRUNCATE |
java.lang.String |
documentAnnotation |
int |
howMany |
boolean |
truncate |
Constructor and Description |
---|
SelectMostFrequentValue() |
SelectMostFrequentValue(SelectMostFrequentValue o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this SelectMostFrequentValue.
|
static SelectMostFrequentValue |
fromString(java.lang.String s)
String representation of this SelectMostFrequentValue.
|
java.lang.String |
getAnnotation()
The annotation to find
|
java.lang.String |
getDocumentAnnotation()
Annotates the document with this annotation instead of the selected annotation
|
int |
getHowMany()
How many values should be kept
|
boolean |
isTruncate()
Keeps only one value when there are multiple candidates
|
SelectMostFrequentValue |
makeCopy()
Creates and returns a deep copy of this SelectMostFrequentValue.
|
static SelectMostFrequentValue |
readFrom(java.io.InputStream is)
Read this SelectMostFrequentValue from an XML fragment.
|
void |
setAnnotation(java.lang.String annotation)
The annotation to find
|
void |
setDocumentAnnotation(java.lang.String documentAnnotation)
Annotates the document with this annotation instead of the selected annotation
|
void |
setHowMany(int howMany)
How many values should be kept
|
void |
setTruncate(boolean truncate)
Keeps only one value when there are multiple candidates
|
java.lang.String |
toString()
String representation of this SelectMostFrequentValue.
|
SelectMostFrequentValue |
withAnnotation(java.lang.String annotation) |
SelectMostFrequentValue |
withDocumentAnnotation(java.lang.String documentAnnotation) |
SelectMostFrequentValue |
withHowMany(int howMany) |
SelectMostFrequentValue |
withHowMany(java.lang.Integer howMany) |
SelectMostFrequentValue |
withTruncate(boolean truncate) |
SelectMostFrequentValue |
withTruncate(java.lang.Boolean truncate) |
void |
writeTo(java.io.OutputStream os)
Write this SelectMostFrequentValue as an XML fragment
|
public java.lang.String annotation
public java.lang.String documentAnnotation
public boolean truncate
public static final boolean DEFAULT_TRUNCATE
public int howMany
public static final int DEFAULT_HOW_MANY
public SelectMostFrequentValue()
public SelectMostFrequentValue(SelectMostFrequentValue o)
public void setAnnotation(java.lang.String annotation)
public java.lang.String getAnnotation()
public SelectMostFrequentValue withAnnotation(java.lang.String annotation)
public void setDocumentAnnotation(java.lang.String documentAnnotation)
public java.lang.String getDocumentAnnotation()
public SelectMostFrequentValue withDocumentAnnotation(java.lang.String documentAnnotation)
public void setTruncate(boolean truncate)
public boolean isTruncate()
public SelectMostFrequentValue withTruncate(boolean truncate)
public SelectMostFrequentValue withTruncate(java.lang.Boolean truncate)
public void setHowMany(int howMany)
public int getHowMany()
public SelectMostFrequentValue withHowMany(int howMany)
public SelectMostFrequentValue withHowMany(java.lang.Integer howMany)
public SelectMostFrequentValue makeCopy()
makeCopy
in class AnnotationManagerOperation
public static SelectMostFrequentValue 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 AnnotationManagerOperation
javax.xml.bind.JAXBException
java.io.IOException
public static SelectMostFrequentValue 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 AnnotationManagerOperation
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class AnnotationManagerOperation
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.