public abstract class IRoot 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 |
static int |
DEFAULT_PRIORITY |
static boolean |
DEFAULT_SITE |
java.lang.String |
group |
java.lang.String |
kvs |
int |
priority |
boolean |
site |
java.lang.String |
url |
Constructor and Description |
---|
IRoot() |
IRoot(IRoot o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this IRoot.
|
abstract IRoot |
clone() |
static IRoot |
fromString(java.lang.String s)
String representation of this IRoot.
|
java.lang.String |
getGroup()
Key used to group rules and root urls.
|
java.lang.String |
getKvs()
A semi-colon separated list of key-values.
|
int |
getPriority()
Priority shift.
|
java.lang.String |
getUrl()
The root url.
|
boolean |
isSite()
Enable site-mode: only crawl urls that belong to this 'site'.
|
IRoot |
makeCopy() |
static IRoot |
readFrom(java.io.InputStream is)
Read this IRoot from an XML fragment.
|
void |
setGroup(java.lang.String group)
Key used to group rules and root urls.
|
void |
setKvs(java.lang.String kvs)
A semi-colon separated list of key-values.
|
void |
setPriority(int priority)
Priority shift.
|
void |
setSite(boolean site)
Enable site-mode: only crawl urls that belong to this 'site'.
|
void |
setUrl(java.lang.String url)
The root url.
|
java.lang.String |
toString()
String representation of this IRoot.
|
IRoot |
withGroup(java.lang.String group) |
IRoot |
withKvs(java.lang.String kvs) |
IRoot |
withPriority(int priority) |
IRoot |
withPriority(java.lang.Integer priority) |
IRoot |
withSite(boolean site) |
IRoot |
withSite(java.lang.Boolean site) |
IRoot |
withUrl(java.lang.String url) |
void |
writeTo(java.io.OutputStream os) |
public java.lang.String url
public boolean site
public static final boolean DEFAULT_SITE
public int priority
public static final int DEFAULT_PRIORITY
public java.lang.String group
public static final java.lang.String DEFAULT_GROUP
public java.lang.String kvs
public IRoot()
public IRoot(IRoot o)
public void setUrl(java.lang.String url)
public java.lang.String getUrl()
public IRoot withUrl(java.lang.String url)
public void setSite(boolean site)
public boolean isSite()
public IRoot withSite(boolean site)
public IRoot withSite(java.lang.Boolean site)
public void setPriority(int priority)
public int getPriority()
public IRoot withPriority(int priority)
public IRoot withPriority(java.lang.Integer priority)
public void setGroup(java.lang.String group)
public java.lang.String getGroup()
public IRoot withGroup(java.lang.String group)
public void setKvs(java.lang.String kvs)
public java.lang.String getKvs()
public IRoot withKvs(java.lang.String kvs)
public abstract IRoot clone()
clone
in class java.lang.Object
public IRoot makeCopy()
public static IRoot 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 IRoot 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.