public class SelectByContexts extends AnnotationManagerOperation implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
annotation |
java.lang.String |
contexts |
static boolean |
DEFAULT_FIRST_ONLY |
java.lang.String |
documentAnnotation |
boolean |
firstOnly |
Constructor and Description |
---|
SelectByContexts() |
SelectByContexts(SelectByContexts o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this SelectByContexts.
|
static SelectByContexts |
fromString(java.lang.String s)
String representation of this SelectByContexts.
|
java.lang.String |
getAnnotation()
The annotation to find
|
java.lang.String |
getContexts()
The contexts to select the annotation from, sorted by decreasing priority
|
java.lang.String |
getDocumentAnnotation()
Annotates the document with this annotation
|
boolean |
isFirstOnly()
Selects only the first occurrence of the annotation
|
SelectByContexts |
makeCopy()
Creates and returns a deep copy of this SelectByContexts.
|
static SelectByContexts |
readFrom(java.io.InputStream is)
Read this SelectByContexts from an XML fragment.
|
void |
setAnnotation(java.lang.String annotation)
The annotation to find
|
void |
setContexts(java.lang.String contexts)
The contexts to select the annotation from, sorted by decreasing priority
|
void |
setDocumentAnnotation(java.lang.String documentAnnotation)
Annotates the document with this annotation
|
void |
setFirstOnly(boolean firstOnly)
Selects only the first occurrence of the annotation
|
java.lang.String |
toString()
String representation of this SelectByContexts.
|
SelectByContexts |
withAnnotation(java.lang.String annotation) |
SelectByContexts |
withContexts(java.lang.String contexts) |
SelectByContexts |
withDocumentAnnotation(java.lang.String documentAnnotation) |
SelectByContexts |
withFirstOnly(boolean firstOnly) |
SelectByContexts |
withFirstOnly(java.lang.Boolean firstOnly) |
void |
writeTo(java.io.OutputStream os)
Write this SelectByContexts as an XML fragment
|
public java.lang.String annotation
public java.lang.String contexts
public java.lang.String documentAnnotation
public boolean firstOnly
public static final boolean DEFAULT_FIRST_ONLY
public SelectByContexts()
public SelectByContexts(SelectByContexts o)
public void setAnnotation(java.lang.String annotation)
public java.lang.String getAnnotation()
public SelectByContexts withAnnotation(java.lang.String annotation)
public void setContexts(java.lang.String contexts)
public java.lang.String getContexts()
public SelectByContexts withContexts(java.lang.String contexts)
public void setDocumentAnnotation(java.lang.String documentAnnotation)
public java.lang.String getDocumentAnnotation()
public SelectByContexts withDocumentAnnotation(java.lang.String documentAnnotation)
public void setFirstOnly(boolean firstOnly)
public boolean isFirstOnly()
public SelectByContexts withFirstOnly(boolean firstOnly)
public SelectByContexts withFirstOnly(java.lang.Boolean firstOnly)
public SelectByContexts makeCopy()
makeCopy
in class AnnotationManagerOperation
public static SelectByContexts 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 SelectByContexts 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.