Package cz.vutbr.fit.layout.puppeteer
Class PuppeteerTreeProvider
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.BaseService
-
- cz.vutbr.fit.layout.impl.BaseParametrizedOperation
-
- cz.vutbr.fit.layout.impl.BaseArtifactService
-
- cz.vutbr.fit.layout.puppeteer.PuppeteerTreeProvider
-
- All Implemented Interfaces:
ArtifactService,ParametrizedOperation,Service
public class PuppeteerTreeProvider extends BaseArtifactService
- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description PuppeteerTreeProvider()PuppeteerTreeProvider(URL url, int width, int height)PuppeteerTreeProvider(URL url, int width, int height, int persist, boolean acquireImages, boolean includeScreenshot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Parameter>defineParams()Creates the parameter definition for this operation.booleangetAcquireImages()org.eclipse.rdf4j.model.IRIgetConsumes()The artifact type consumed.StringgetDescription()Obtains a longer description of the service.intgetHeight()StringgetId()Obtains a unique ID of the servicebooleangetIncludeScreenshot()StringgetName()Obtains a descriptive name of the service that may be presented to the user.PagegetPage()intgetPersist()org.eclipse.rdf4j.model.IRIgetProduces()The artifact type produced.booleangetReplaceImagesWithAlt()StringgetUrl()intgetWidth()Artifactprocess(Artifact input)Consumes an input artifact and produces an output artifact.voidsetAcquireImages(boolean acquireImages)voidsetHeight(int height)voidsetIncludeScreenshot(boolean includeScreenshot)voidsetPersist(int persist)voidsetReplaceImagesWithAlt(boolean replaceImagesWithAlt)voidsetUrl(String url)voidsetWidth(int width)-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseArtifactService
getCategory, toString
-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseParametrizedOperation
getParam, getParams, getParamString, setParam
-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseService
getServiceManager, setServiceManager
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cz.vutbr.fit.layout.api.Service
setServiceManager
-
-
-
-
Constructor Detail
-
PuppeteerTreeProvider
public PuppeteerTreeProvider()
-
PuppeteerTreeProvider
public PuppeteerTreeProvider(URL url, int width, int height)
-
PuppeteerTreeProvider
public PuppeteerTreeProvider(URL url, int width, int height, int persist, boolean acquireImages, boolean includeScreenshot)
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:ServiceObtains a unique ID of the service
-
getName
public String getName()
Description copied from interface:ServiceObtains a descriptive name of the service that may be presented to the user.- Returns:
- the operator name
-
getDescription
public String getDescription()
Description copied from interface:ServiceObtains a longer description of the service.- Returns:
- the description
-
defineParams
public List<Parameter> defineParams()
Description copied from class:BaseParametrizedOperationCreates the parameter definition for this operation.- Overrides:
defineParamsin classBaseParametrizedOperation- Returns:
- The list of parameters.
-
getUrl
public String getUrl()
-
setUrl
public void setUrl(String url)
-
getWidth
public int getWidth()
-
setWidth
public void setWidth(int width)
-
getHeight
public int getHeight()
-
setHeight
public void setHeight(int height)
-
getPersist
public int getPersist()
-
setPersist
public void setPersist(int persist)
-
getAcquireImages
public boolean getAcquireImages()
-
setAcquireImages
public void setAcquireImages(boolean acquireImages)
-
getIncludeScreenshot
public boolean getIncludeScreenshot()
-
setIncludeScreenshot
public void setIncludeScreenshot(boolean includeScreenshot)
-
getReplaceImagesWithAlt
public boolean getReplaceImagesWithAlt()
-
setReplaceImagesWithAlt
public void setReplaceImagesWithAlt(boolean replaceImagesWithAlt)
-
getConsumes
public org.eclipse.rdf4j.model.IRI getConsumes()
Description copied from interface:ArtifactServiceThe artifact type consumed.- Returns:
- the artifact type IRI or
nullwhen nothing is consumed (source only).
-
getProduces
public org.eclipse.rdf4j.model.IRI getProduces()
Description copied from interface:ArtifactServiceThe artifact type produced.- Returns:
- the artifact type IRI or
nullwhen nothing is produced (consumer only).
-
process
public Artifact process(Artifact input) throws ServiceException
Description copied from interface:ArtifactServiceConsumes an input artifact and produces an output artifact.- Parameters:
input- The input artifact ornullwhen nothing is consumed- Returns:
- the output artifact
nullwhen nothing is produced - Throws:
ServiceException
-
getPage
public Page getPage() throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
-