|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteteg.sinon.core.Catalog
public class Catalog
Class that represents a catalog in Sinon. In other words, a catalog is a definition of how the extraction of some data is made in some Web site.
Constructor Summary | |
---|---|
Catalog()
Contructors with no parameters. |
Method Summary | |
---|---|
void |
addDataExtraction(DataExtraction dataExtraction)
Adds a global DataExtraction to this catalog. |
void |
addPage(Page page)
Adds a Page to this catalog. |
void |
addParameterSet(ParameterSet parameterSet)
Adds a ParameterSet to this catalog. |
void |
addStartPage(StartPage startPage)
Adds a StartPage to this catalog. |
CollectorConfiguration |
getConfiguration()
Returns the value of the configuration property. |
DataExtraction |
getDataExtraction(java.lang.String id)
Returns the DataExtraction whose identifier is id . |
DataExtraction[] |
getDataExtractions()
Returns the value of the dataExtractions property. |
java.lang.String |
getId()
Returns the value of the id property. |
Page |
getPage(java.lang.String id)
Returns the Page whose identifier is id . |
Page[] |
getPages()
Returns the value of the pages property. |
ParameterSet |
getParameterSet(java.lang.String id)
Returns the ParameterSet whose identifier is id . |
ParameterSet[] |
getParameterSets()
Returns the value of the parameterSets property. |
java.util.Properties |
getProperties()
Returns the value of the properties property. |
StartPage[] |
getStartPages()
Returns the value of the startPages property. |
void |
removeDataExtraction(DataExtraction dataExtraction)
Removes a global DataExtraction from this catalog. |
void |
removePage(Page page)
Removes a Page from this catalog. |
void |
removeParameterSet(ParameterSet parameterSet)
Removes a ParameterSet from this catalog. |
void |
removeStartPage(StartPage startPage)
Removes a StartPage from this catalog. |
void |
setConfiguration(CollectorConfiguration configuration)
Sets the value of the configuration property. |
void |
setId(java.lang.String id)
Sets the value of the id property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Catalog()
Method Detail |
---|
public java.lang.String getId()
id
property.
String
.public void setId(java.lang.String id)
id
property.
id
- the new id
value.public CollectorConfiguration getConfiguration()
configuration
property.
CollectorConfiguration
.public void setConfiguration(CollectorConfiguration configuration)
configuration
property.
configuration
- the new CollectorConfiguration
value.public void addParameterSet(ParameterSet parameterSet)
ParameterSet
to this catalog.
parameterSet
- a ParameterSet
instance.public void removeParameterSet(ParameterSet parameterSet)
ParameterSet
from this catalog.
parameterSet
- a ParameterSet
instance.public ParameterSet[] getParameterSets()
parameterSets
property.
ParameterSet
array.public ParameterSet getParameterSet(java.lang.String id)
ParameterSet
whose identifier is id
.
id
- a String
.
ParameterSet
instance or null
if
there is no ParameterSet
whose identifier is id
.
java.lang.IllegalArgumentException
- if id
is
null
.public void addPage(Page page)
Page
to this catalog.
page
- a Page
instance.public void removePage(Page page)
Page
from this catalog.
page
- a Page
instance.public Page[] getPages()
pages
property.
String
.public Page getPage(java.lang.String id)
Page
whose identifier is id
.
id
- a String
.
Page
instance or null
if
there is no Page
whose identifier is id
.
java.lang.IllegalArgumentException
- if id
is
null
.public void addStartPage(StartPage startPage)
StartPage
to this catalog.
startPage
- a StartPage
instance.public void removeStartPage(StartPage startPage)
StartPage
from this catalog.
startPage
- a StartPage
instance.public StartPage[] getStartPages()
startPages
property.
String
.public void addDataExtraction(DataExtraction dataExtraction)
DataExtraction
to this catalog.
dataExtraction
- a DataExtraction
instance..public void removeDataExtraction(DataExtraction dataExtraction)
DataExtraction
from this catalog.
dataExtraction
- a DataExtraction
instance..public DataExtraction getDataExtraction(java.lang.String id)
DataExtraction
whose identifier is id
.
id
- a String
.
DataExtraction
instance or null
if
there is no DataExtraction
whose identifier is id
.
java.lang.IllegalArgumentException
- if id
is
null
.public DataExtraction[] getDataExtractions()
dataExtractions
property.
DataExtraction
array.public java.util.Properties getProperties()
properties
property.
Properties
instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |