moise.os.ss
Class SS

Package class diagram package SS
java.lang.Object
  extended by moise.common.MoiseElement
      extended by moise.os.ss.SS
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable, Identifiable, ToXML

public class SS
extends MoiseElement
implements ToXML

Represents a Structural Specification.

See Also:
Serialized Form

Field Summary
protected  java.util.Set<java.lang.String> linkTypes
           
protected  OS os
           
protected  java.util.Map<java.lang.String,Role> roles
           
protected  Group rootGrSpec
           
 
Fields inherited from class moise.common.MoiseElement
debug
 
Constructor Summary
SS(OS os)
          Creates a new SS
 
Method Summary
 void addLinkType(java.util.Collection<java.lang.String> lt)
           
 void addLinkType(java.lang.String lt)
           
 void addRoleDef(java.util.Collection<Role> roles)
          add all roles of iRole in this SS (check = false)
 void addRoleDef(Role r)
          calls addRoleDef(r, true)
 void addRoleDef(Role r, boolean check)
           
 org.w3c.dom.Element getAsDOM(org.w3c.dom.Document document)
           
 java.util.Collection<java.lang.String> getLinkTypes()
           
 OS getOS()
           
 Role getRoleDef(java.lang.String id)
           
 java.util.Collection<Role> getRolesDef()
           
 Group getRootGrSpec()
           
static java.lang.String getXMLTag()
           
 boolean hasLinkType(java.lang.String lt)
           
 void importRoleDef(java.util.Collection<Role> roles)
          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
 void setFromDOM(org.w3c.dom.Element ele)
           
 void setRootGrSpec(Group gr)
           
 
Methods inherited from class moise.common.MoiseElement
compareTo, equals, getBoolProperty, getBoolProperty, getCreationDate, getFullId, getId, getId, getOwner, getPrefix, getPrefix, getProperties, getPropertiesAsDOM, getPropertiesAsProlog, getProperty, getStrProperty, hashCode, setId, setOwner, setPrefix, setPropertiesFromDOM, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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

addRoleDef

public void addRoleDef(Role r)
                throws MoiseConsistencyException
calls addRoleDef(r, true)

Throws:
MoiseConsistencyException

addRoleDef

public void 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

setFromDOM

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