public class Rule extends java.lang.Object implements com.exalead.util.Checkable, java.io.Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
java.util.List<Action> |
action |
java.lang.String |
message |
java.util.List<Pattern> |
pattern |
java.util.List<PostFilter> |
postFilter |
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Rule.
|
Rule |
clone()
Creates and returns a deep copy of this Rule.
|
static Rule |
fromString(java.lang.String s)
String representation of this Rule.
|
java.util.List<Action> |
getAction() |
java.lang.String |
getMessage() |
java.util.List<Pattern> |
getPattern() |
java.util.List<PostFilter> |
getPostFilter() |
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 |
setMessage(java.lang.String message) |
java.lang.String |
toString()
String representation of this Rule.
|
Rule |
withAction(Action... __values) |
Rule |
withAction(java.util.Collection<Action> __values) |
Rule |
withMessage(java.lang.String message) |
Rule |
withPattern(java.util.Collection<Pattern> __values) |
Rule |
withPattern(Pattern... __values) |
Rule |
withPostFilter(java.util.Collection<PostFilter> __values) |
Rule |
withPostFilter(PostFilter... __values) |
void |
writeTo(java.io.OutputStream os)
Write this Rule as an XML fragment
|
public java.util.List<Action> action
public java.util.List<Pattern> pattern
public java.util.List<PostFilter> postFilter
public java.lang.String message
public Rule()
public Rule(Rule o)
public java.util.List<Action> getAction()
public java.util.List<Pattern> getPattern()
public java.util.List<PostFilter> getPostFilter()
public Rule withPostFilter(PostFilter... __values)
public Rule withPostFilter(java.util.Collection<PostFilter> __values)
public void setMessage(java.lang.String message)
public java.lang.String getMessage()
public Rule withMessage(java.lang.String message)
public Rule clone()
clone
in class java.lang.Object
public Rule makeCopy()
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
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 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.