public class Rules extends java.lang.Object implements com.exalead.util.Checkable, java.io.Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_GROUP |
java.lang.String |
group |
java.lang.String |
key |
java.util.List<Rule> |
rule |
Constructor and Description |
---|
Rules() |
Rules(Rules o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Rules.
|
Rules |
clone()
Creates and returns a deep copy of this Rules.
|
static Rules |
fromString(java.lang.String s)
String representation of this Rules.
|
java.lang.String |
getGroup()
Key used to group rules and root urls.
|
java.lang.String |
getKey()
How to interpret these rules.
auto, adminui: place index/follow/accept rules where relevant, automatically. may break complex rules depending on other key-values pre, post, link, papi: place in preprocessor, postprocessor, linksfilter or papi filter only. |
java.util.List<Rule> |
getRule() |
Rules |
makeCopy()
Creates and returns a deep copy of this Rules.
|
static Rules |
readFrom(java.io.InputStream is)
Read this Rules from an XML fragment.
|
void |
setGroup(java.lang.String group)
Key used to group rules and root urls.
|
void |
setKey(java.lang.String key)
How to interpret these rules.
auto, adminui: place index/follow/accept rules where relevant, automatically. may break complex rules depending on other key-values pre, post, link, papi: place in preprocessor, postprocessor, linksfilter or papi filter only. |
java.lang.String |
toString()
String representation of this Rules.
|
Rules |
withGroup(java.lang.String group) |
Rules |
withKey(java.lang.String key) |
Rules |
withRule(java.util.Collection<Rule> __values) |
Rules |
withRule(Rule... __values) |
void |
writeTo(java.io.OutputStream os)
Write this Rules as an XML fragment
|
public java.util.List<Rule> rule
public java.lang.String key
public java.lang.String group
public static final java.lang.String DEFAULT_GROUP
public Rules()
public Rules(Rules o)
public java.util.List<Rule> getRule()
public void setKey(java.lang.String key)
public java.lang.String getKey()
public Rules withKey(java.lang.String key)
public void setGroup(java.lang.String group)
public java.lang.String getGroup()
public Rules withGroup(java.lang.String group)
public Rules clone()
clone
in class java.lang.Object
public Rules makeCopy()
public static Rules 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 Rules 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.