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>
linkTypes
protected OS
os
protected java.util.Map<java.lang.String,Role>
roles
protected Group
rootGrSpec
private static long
serialVersionUID
-
Fields inherited from class moise.common.MoiseElement
debug
-
-
Method Summary
Modifier and Type Method Description void
addLinkType(java.lang.String lt)
void
addLinkType(java.util.Collection<java.lang.String> lt)
void
addRoleDef(java.util.Collection<Role> roles)
add all roles of iRole in this SS (check = false)Role
addRoleDef(Role r)
calls addRoleDef(r, true)Role
addRoleDef(Role r, boolean check)
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 rolesorg.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 SSvoid
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
-
-
-
-
Field Detail
-
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 Detail
-
SS
public SS(OS os)
Creates a new SS
-
-
Method Detail
-
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)
-
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
-
-