Class ModuleContextBinding

    • Constructor Detail

      • ModuleContextBinding

        public ModuleContextBinding()
    • Method Detail

      • setIdentifier

        public void setIdentifier​(String identifier)
      • setTitle

        public void setTitle​(String title)
      • setHeading

        public void setHeading​(Boolean heading)
      • getFormat

        @Deprecated(since="2.1.0",
                    forRemoval=false)
        public String getFormat()
        Deprecated.
        this information is not provided by GetModuleStructure but only by GetModuleContext.
        Returns the format of the underlying requirement, which can be either Text or Diagram.
        Returns:
        the format of the underlying requirement, which can be either Text or Diagram.
      • setFormat

        public void setFormat​(String format)
      • getSection

        public String getSection()
        Returns the section information of the underlying requirement, e.g. 1.3.4.
        Returns:
        the section information of the underlying requirement, e.g. 1.3.4.
      • setSection

        public void setSection​(String section)
      • getBookOrder

        public int getBookOrder()
        Returns the order of the underlying requirement in the list of requirements displayed in the module.
        Returns:
        the order of the underlying requirement in the list of requirements displayed in the module.
      • setBookOrder

        public void setBookOrder​(int bookOrder)
      • getDepth

        public int getDepth()
        Returns the depth information of the underlying requirement, which determines the number of recursive parents.
        Returns:
        the depth information of the underlying requirement, which determines the number of recursive parents.
      • setDepth

        public void setDepth​(int depth)
      • setStructureRoot

        public void setStructureRoot​(Boolean isStructureRoot)
      • addChildBinding

        public void addChildBinding​(ModuleContextBinding child)
        Adds a child to this object
        Parameters:
        child - the child to add
        Since:
        2.2.0
      • setComponent

        public void setComponent​(URI component)
      • setBoundArtifact

        public void setBoundArtifact​(URI boundArtifact)
      • setModule

        public void setModule​(URI module)
      • findChildBinding

        public Optional<ModuleContextBinding> findChildBinding​(URI child)
        Search recursively in all descendants the ModuleContextBinding with the given URI
        Parameters:
        child - the child to look for with its about or base artifact
        Returns:
        the ModuleContextBinding of the given child
        Since:
        2.2.0
      • getAllChildren

        public List<ModuleContextBinding> getAllChildren()
        Return all bindings below this recursively
        Returns:
        the list of bindings located under this
        Since:
        2.2.0