public class CrawlConfig extends exa.bee.config.Versioned implements com.exalead.util.Checkable, java.io.Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_VERBOSE |
java.util.List<ICrawler> |
iCrawler |
boolean |
verbose |
Constructor and Description |
---|
CrawlConfig() |
CrawlConfig(CrawlConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this CrawlConfig.
|
CrawlConfig |
clone()
Creates and returns a deep copy of this CrawlConfig.
|
static CrawlConfig |
fromString(java.lang.String s)
String representation of this CrawlConfig.
|
java.util.List<ICrawler> |
getICrawler() |
java.util.Map<java.lang.String,ICrawler> |
getICrawlerAsMap()
Get the map of ICrawler, indexed by name
|
ICrawler |
getICrawlerByName(java.lang.String _lookup)
Get the ICrawler for which the name matches _lookup
|
boolean |
isVerbose() |
CrawlConfig |
makeCopy()
Creates and returns a deep copy of this CrawlConfig.
|
static CrawlConfig |
readFrom(java.io.InputStream is)
Read this CrawlConfig from an XML fragment.
|
boolean |
removeICrawlerByName(java.lang.String _lookup)
Removes the ICrawler for which the name matches _lookup
|
void |
setVerbose(boolean verbose) |
java.lang.String |
toString()
String representation of this CrawlConfig.
|
CrawlConfig |
withICrawler(java.util.Collection<ICrawler> __values) |
CrawlConfig |
withICrawler(ICrawler... __values) |
CrawlConfig |
withVerbose(boolean verbose) |
CrawlConfig |
withVerbose(java.lang.Boolean verbose) |
CrawlConfig |
withVersion(long version) |
CrawlConfig |
withVersion(java.lang.Long version) |
void |
writeTo(java.io.OutputStream os)
Write this CrawlConfig as an XML fragment
|
public java.util.List<ICrawler> iCrawler
public boolean verbose
public static final boolean DEFAULT_VERBOSE
public CrawlConfig()
public CrawlConfig(CrawlConfig o)
public CrawlConfig withVersion(long version)
withVersion
in class exa.bee.config.Versioned
public CrawlConfig withVersion(java.lang.Long version)
withVersion
in class exa.bee.config.Versioned
public java.util.List<ICrawler> getICrawler()
public ICrawler getICrawlerByName(java.lang.String _lookup)
public java.util.Map<java.lang.String,ICrawler> getICrawlerAsMap()
public boolean removeICrawlerByName(java.lang.String _lookup)
public CrawlConfig withICrawler(ICrawler... __values)
public CrawlConfig withICrawler(java.util.Collection<ICrawler> __values)
public void setVerbose(boolean verbose)
public boolean isVerbose()
public CrawlConfig withVerbose(boolean verbose)
public CrawlConfig withVerbose(java.lang.Boolean verbose)
public CrawlConfig clone()
clone
in class exa.bee.config.Versioned
public CrawlConfig makeCopy()
makeCopy
in class exa.bee.config.Versioned
public static CrawlConfig 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 exa.bee.config.Versioned
javax.xml.bind.JAXBException
java.io.IOException
public static CrawlConfig 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 exa.bee.config.Versioned
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class exa.bee.config.Versioned
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.