public class TRule extends RulePattern implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_KIND |
static int |
DEFAULT_TRUST_LEVEL |
static java.lang.String |
DEFAULT_VALUE |
java.lang.String |
kind |
java.util.List<MatchAnnotation> |
matchAnnotation |
RulePattern |
rulePattern |
int |
trustLevel |
java.lang.String |
value |
DEFAULT_PRIORITY, name, priority
modifiedAt, modifiedBy
Constructor and Description |
---|
TRule() |
TRule(TRule o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this TRule.
|
static TRule |
fromString(java.lang.String s)
String representation of this TRule.
|
java.lang.String |
getKind() |
java.util.List<MatchAnnotation> |
getMatchAnnotation() |
RulePattern |
getRulePattern() |
int |
getTrustLevel() |
java.lang.String |
getValue() |
TRule |
makeCopy()
Creates and returns a deep copy of this TRule.
|
static TRule |
readFrom(java.io.InputStream is)
Read this TRule from an XML fragment.
|
void |
setKind(java.lang.String kind) |
void |
setRulePattern(RulePattern rulePattern) |
void |
setTrustLevel(int trustLevel) |
void |
setValue(java.lang.String value) |
java.lang.String |
toString()
String representation of this TRule.
|
TRule |
withKind(java.lang.String kind) |
TRule |
withMatchAnnotation(java.util.Collection<MatchAnnotation> __values) |
TRule |
withMatchAnnotation(MatchAnnotation... __values) |
TRule |
withModifiedAt(java.lang.Long modifiedAt) |
TRule |
withModifiedBy(java.lang.String modifiedBy) |
TRule |
withName(java.lang.String name) |
TRule |
withPriority(int priority) |
TRule |
withPriority(java.lang.Integer priority) |
TRule |
withRulePattern(RulePattern rulePattern) |
TRule |
withTrustLevel(int trustLevel) |
TRule |
withTrustLevel(java.lang.Integer trustLevel) |
TRule |
withValue(java.lang.String value) |
void |
writeTo(java.io.OutputStream os)
Write this TRule as an XML fragment
|
getName, getPriority, setName, setPriority
getModifiedAt, getModifiedBy, setModifiedAt, setModifiedBy
public java.util.List<MatchAnnotation> matchAnnotation
public RulePattern rulePattern
public java.lang.String kind
public static final java.lang.String DEFAULT_KIND
public java.lang.String value
public static final java.lang.String DEFAULT_VALUE
public int trustLevel
public static final int DEFAULT_TRUST_LEVEL
public TRule()
public TRule(TRule o)
public TRule withPriority(int priority)
withPriority
in class RulePattern
public TRule withPriority(java.lang.Integer priority)
withPriority
in class RulePattern
public TRule withName(java.lang.String name)
withName
in class RulePattern
public TRule withModifiedBy(java.lang.String modifiedBy)
withModifiedBy
in class RulePattern
public TRule withModifiedAt(java.lang.Long modifiedAt)
withModifiedAt
in class RulePattern
public java.util.List<MatchAnnotation> getMatchAnnotation()
public TRule withMatchAnnotation(MatchAnnotation... __values)
public TRule withMatchAnnotation(java.util.Collection<MatchAnnotation> __values)
public void setRulePattern(RulePattern rulePattern)
public RulePattern getRulePattern()
public TRule withRulePattern(RulePattern rulePattern)
public void setKind(java.lang.String kind)
public java.lang.String getKind()
public TRule withKind(java.lang.String kind)
public void setValue(java.lang.String value)
public java.lang.String getValue()
public TRule withValue(java.lang.String value)
public void setTrustLevel(int trustLevel)
public int getTrustLevel()
public TRule withTrustLevel(int trustLevel)
public TRule withTrustLevel(java.lang.Integer trustLevel)
public TRule makeCopy()
makeCopy
in class RulePattern
public static TRule 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 RulePattern
javax.xml.bind.JAXBException
java.io.IOException
public static TRule 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 RulePattern
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class RulePattern
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.