moise.os.ss
Class SS
java.lang.Object
moise.common.MoiseElement
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
Constructor Summary |
SS(OS os)
Creates a new SS |
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 |
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
SS
public SS(OS os)
- Creates a new SS
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