Package moise.os.ss

Class SS

    • Field Detail

      • 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 Detail

      • SS

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

      • 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