Class ScriptElement

  • All Implemented Interfaces:
    Includable

    public final class ScriptElement
    extends nu.xom.Element
    implements Includable
    Author:
    Group 3
    • Constructor Summary

      Constructors 
      Constructor Description
      ScriptElement​(java.lang.String name)  
      ScriptElement​(java.lang.String name, java.lang.String uri)  
      ScriptElement​(java.lang.String name, java.lang.String uri, java.lang.String scriptPath, java.lang.String scriptLang)
      Constructor with script.
      ScriptElement​(nu.xom.Element element)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getScriptLang()
      Get the language used for the script Currently only supporting Python.
      java.util.Optional<java.lang.String> getSourceLoc()
      Get the script's source path or URL.
      void setScriptLang​(java.lang.String lang)
      Not currently supported.
      • Methods inherited from class nu.xom.Element

        addAttribute, addNamespaceDeclaration, appendChild, copy, getAttribute, getAttribute, getAttribute, getAttributeCount, getAttributeValue, getAttributeValue, getBaseURI, getChildElements, getChildElements, getChildElements, getFirstChildElement, getFirstChildElement, getLocalName, getNamespaceDeclarationCount, getNamespacePrefix, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getQualifiedName, getValue, insertChild, removeAttribute, removeChildren, removeNamespaceDeclaration, setBaseURI, setLocalName, setNamespacePrefix, setNamespaceURI, shallowCopy, toString, toXML
      • Methods inherited from class nu.xom.ParentNode

        appendChild, getChild, getChildCount, indexOf, insertChild, removeChild, removeChild, replaceChild
      • Methods inherited from class nu.xom.Node

        detach, equals, getDocument, getParent, hashCode, query, query
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ScriptElement

        public ScriptElement​(java.lang.String name)
      • ScriptElement

        public ScriptElement​(java.lang.String name,
                             java.lang.String uri)
      • ScriptElement

        public ScriptElement​(nu.xom.Element element)
      • ScriptElement

        public ScriptElement​(java.lang.String name,
                             java.lang.String uri,
                             java.lang.String scriptPath,
                             java.lang.String scriptLang)
        Constructor with script.
        Parameters:
        name - Element name.
        uri - Element URI.
        scriptPath - Path to script.
        scriptLang - Script Language.
    • Method Detail

      • getScriptLang

        public java.lang.String getScriptLang()
        Get the language used for the script Currently only supporting Python.
        Returns:
        String of language name
      • setScriptLang

        public void setScriptLang​(java.lang.String lang)
        Not currently supported.
        Parameters:
        lang - language name string
      • getSourceLoc

        public java.util.Optional<java.lang.String> getSourceLoc()
        Get the script's source path or URL.
        Specified by:
        getSourceLoc in interface Includable
        Returns:
        Location string.