Package moise.os.ss

Class SS

java.lang.Object
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable, Identifiable, ToXML

public class SS
extends MoiseElement
implements ToXML
Represents a Structural Specification.
Author:
Jomi Fred Hubner
See Also:
Serialized Form
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
      Constant Field Values
    • rootGrSpec

      protected Group rootGrSpec
    • roles

      protected java.util.Map<java.lang.String,​Role> roles
    • linkTypes

      protected java.util.Set<java.lang.String> linkTypes
    • os

      protected OS os
  • Constructor Details

    • SS

      public SS​(OS os)
      Creates a new SS
  • Method Details

    • addRoleDef

      public Role addRoleDef​(Role r) throws MoiseConsistencyException
      calls addRoleDef(r, true)
      Throws:
      MoiseConsistencyException
    • addRoleDef

      public Role addRoleDef​(Role r, boolean check) throws MoiseConsistencyException
      Throws:
      MoiseConsistencyException
    • addRoleDef

      public void addRoleDef​(java.util.Collection<Role> roles) throws MoiseConsistencyException
      add all roles of iRole in this SS (check = false)
      Throws:
      MoiseConsistencyException
    • importRoleDef

      public void importRoleDef​(java.util.Collection<Role> roles) throws MoiseConsistencyException
      import all roles of iRole in this SS (check = false) This method fixes links to super-roles from another SS and do not include roles that already is in the SS
      Throws:
      MoiseConsistencyException
    • getRoleDef

      public Role getRoleDef​(java.lang.String id)
    • getRolesDef

      public java.util.Collection<Role> getRolesDef()
    • addLinkType

      public void addLinkType​(java.lang.String lt)
    • addLinkType

      public void addLinkType​(java.util.Collection<java.lang.String> lt)
    • hasLinkType

      public boolean hasLinkType​(java.lang.String lt)
    • getLinkTypes

      public java.util.Collection<java.lang.String> getLinkTypes()
    • setRootGrSpec

      public void setRootGrSpec​(Group gr)
    • getRootGrSpec

      public Group getRootGrSpec()
    • getOS

      public OS getOS()
    • getXMLTag

      public static java.lang.String getXMLTag()
    • getAsDOM

      public org.w3c.dom.Element getAsDOM​(org.w3c.dom.Document document)
      Specified by:
      getAsDOM in interface ToXML
    • DFSRoles

      private void DFSRoles​(Role r, org.w3c.dom.Element rdefsEle, org.w3c.dom.Document document)
      make a DFS in the roles hierarchy to generate the right order of roles
    • setFromDOM

      public void setFromDOM​(org.w3c.dom.Element ele) throws MoiseException
      Throws:
      MoiseException