Package 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.
- Author:
- Jomi Fred Hubner
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<java.lang.String>linkTypesprotected OSosprotected java.util.Map<java.lang.String,Role>rolesprotected GrouprootGrSpecprivate static longserialVersionUIDFields inherited from class moise.common.MoiseElement
debug -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidaddLinkType(java.lang.String lt)voidaddLinkType(java.util.Collection<java.lang.String> lt)voidaddRoleDef(java.util.Collection<Role> roles)add all roles of iRole in this SS (check = false)RoleaddRoleDef(Role r)calls addRoleDef(r, true)RoleaddRoleDef(Role r, boolean check)private voidDFSRoles(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 rolesorg.w3c.dom.ElementgetAsDOM(org.w3c.dom.Document document)java.util.Collection<java.lang.String>getLinkTypes()OSgetOS()RolegetRoleDef(java.lang.String id)java.util.Collection<Role>getRolesDef()GroupgetRootGrSpec()static java.lang.StringgetXMLTag()booleanhasLinkType(java.lang.String lt)voidimportRoleDef(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 SSvoidsetFromDOM(org.w3c.dom.Element ele)voidsetRootGrSpec(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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
rootGrSpec
-
roles
-
linkTypes
protected java.util.Set<java.lang.String> linkTypes -
os
-
-
Constructor Details
-
SS
Creates a new SS
-
-
Method Details
-
addRoleDef
calls addRoleDef(r, true)- Throws:
MoiseConsistencyException
-
addRoleDef
- Throws:
MoiseConsistencyException
-
addRoleDef
add all roles of iRole in this SS (check = false)- Throws:
MoiseConsistencyException
-
importRoleDef
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
-
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
-
getRootGrSpec
-
getOS
-
getXMLTag
public static java.lang.String getXMLTag() -
getAsDOM
public org.w3c.dom.Element getAsDOM(org.w3c.dom.Document document) -
DFSRoles
make a DFS in the roles hierarchy to generate the right order of roles -
setFromDOM
- Throws:
MoiseException
-