Class Tools


  • public class Tools
    extends nu.xom.Element
    Author:
    Group 3
    • Constructor Summary

      Constructors 
      Constructor Description
      Tools​(java.lang.String name)
      Constructor.
      Tools​(java.lang.String name, java.lang.String uri)
      Constructor.
      Tools​(nu.xom.Element element)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<Tool> getTool​(java.lang.String toolID)
      Get a tool by it's ID.
      java.util.ArrayList<Tool> getTools()
      Get list of available tools.
      • 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

      • Tools

        public Tools​(java.lang.String name)
        Constructor.
        Parameters:
        name - Tools element name.
      • Tools

        public Tools​(java.lang.String name,
                     java.lang.String uri)
        Constructor.
        Parameters:
        name - Tools element name.
        uri - Tools element URI.
      • Tools

        public Tools​(nu.xom.Element element)
        Constructor.
        Parameters:
        element - Tools Element.
    • Method Detail

      • getTools

        public final java.util.ArrayList<Tool> getTools()
        Get list of available tools.
        Returns:
        ArrayList of tools.
      • getTool

        public java.util.Optional<Tool> getTool​(java.lang.String toolID)
        Get a tool by it's ID.
        Parameters:
        toolID - Target ID.
        Returns:
        Maybe tool.