public class Rule extends Modifiable implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_EXCEPTION_RULE |
static java.lang.String |
DEFAULT_LANG |
boolean |
exceptionRule |
java.lang.String |
lang |
java.lang.String |
value |
modifiedAt, modifiedBy
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Rule.
|
static Rule |
fromString(java.lang.String s)
String representation of this Rule.
|
java.lang.String |
getLang()
Restrict this query to a specific language
|
java.lang.String |
getValue()
A query defined with a subset of Exalead User Query Language
|
boolean |
isExceptionRule()
Makes the rule an exception rule instead of a normal rule.
When any of the exception rules of a category matches, the category is not assigned to the document, even if some of its normal rules match. |
Rule |
makeCopy()
Creates and returns a deep copy of this Rule.
|
static Rule |
readFrom(java.io.InputStream is)
Read this Rule from an XML fragment.
|
void |
setExceptionRule(boolean exceptionRule)
Makes the rule an exception rule instead of a normal rule.
When any of the exception rules of a category matches, the category is not assigned to the document, even if some of its normal rules match. |
void |
setLang(java.lang.String lang)
Restrict this query to a specific language
|
void |
setValue(java.lang.String value)
A query defined with a subset of Exalead User Query Language
|
java.lang.String |
toString()
String representation of this Rule.
|
Rule |
withExceptionRule(boolean exceptionRule) |
Rule |
withExceptionRule(java.lang.Boolean exceptionRule) |
Rule |
withLang(java.lang.String lang) |
Rule |
withModifiedAt(java.lang.Long modifiedAt) |
Rule |
withModifiedBy(java.lang.String modifiedBy) |
Rule |
withValue(java.lang.String value) |
void |
writeTo(java.io.OutputStream os)
Write this Rule as an XML fragment
|
getModifiedAt, getModifiedBy, setModifiedAt, setModifiedBy
public java.lang.String value
public boolean exceptionRule
public static final boolean DEFAULT_EXCEPTION_RULE
public java.lang.String lang
public static final java.lang.String DEFAULT_LANG
public Rule()
public Rule(Rule o)
public Rule withModifiedBy(java.lang.String modifiedBy)
withModifiedBy
in class Modifiable
public Rule withModifiedAt(java.lang.Long modifiedAt)
withModifiedAt
in class Modifiable
public void setValue(java.lang.String value)
public java.lang.String getValue()
public Rule withValue(java.lang.String value)
public void setExceptionRule(boolean exceptionRule)
public boolean isExceptionRule()
public Rule withExceptionRule(boolean exceptionRule)
public Rule withExceptionRule(java.lang.Boolean exceptionRule)
public void setLang(java.lang.String lang)
public java.lang.String getLang()
public Rule withLang(java.lang.String lang)
public Rule makeCopy()
makeCopy
in class Modifiable
public static Rule 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 Modifiable
javax.xml.bind.JAXBException
java.io.IOException
public static Rule 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 Modifiable
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class Modifiable
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.