public class Script extends Object implements Comparable<Script>
Constructor and Description |
---|
Script(Node scriptXml)
Parse the script described by the provided XML document/node.
|
Script(String href)
Create a script element with only a href attribute.
|
public Script(Node scriptXml) throws Pipeline2Exception
scriptXml
- The XMLPipeline2Exception
- thrown when an error occurspublic Script(String href) throws Pipeline2Exception
href
- the script URLPipeline2Exception
- thrown when an error occurspublic Argument getArgument(String name)
name
- The name of the argumentpublic static List<Script> parseScriptsXml(Node scriptsXml) throws Pipeline2Exception
scriptsXml
- The XMLPipeline2Exception
- thrown when an error occurspublic int compareTo(Script other)
compareTo
in interface Comparable<Script>
public String getId()
public String getHref()
public String getNicename()
public String getDescription()
public String getVersion()
public String getHomepage()
public void setId(String id)
public void setHref(String href)
public void setNicename(String nicename)
public void setDescription(String description)
public void setVersion(String version)
public void setHomepage(String homepage)
public Document toXml()
Copyright © 2012–2022 The DAISY Consortium. All rights reserved.