Package moise.os.ss
Class RoleRel
java.lang.Object
moise.common.MoiseElement
moise.os.ss.RoleRel
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable,Identifiable,ToXML
- Direct Known Subclasses:
Compatibility,Link
public abstract class RoleRel extends MoiseElement implements ToXML
Represents a relation between roles (links, compatibilities, etc).
- Author:
- Jomi Fred Hubner
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRoleRel.RoleRelScope -
Field Summary
Fields Modifier and Type Field Description protected booleanbiDirectionalprotected booleanextendsToSubGroupsprotected GroupgrSpecprotected RoleRel.RoleRelScopescopeprotected Rolesourceprotected RoletargetFields inherited from class moise.common.MoiseElement
debug -
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleancontains(Role r)checks if one of this relation's role are equal to r (or its super roles)booleanequals(java.lang.Object o)org.w3c.dom.ElementgetAsDOM(org.w3c.dom.Document document)java.lang.StringgetBiDirStr()booleangetExtendsToSubGroups()java.lang.StringgetExtendsToSubGroupsStr()GroupgetGrSpec()RoleRel.RoleRelScopegetScope()RolegetSource()RolegetTarget()protected java.lang.StringgetTypeStr()java.lang.StringgetXMLTag()booleanisBiDir()voidsetBiDir(boolean b)voidsetExtendsToSubGroups(boolean b)voidsetFromDOM(org.w3c.dom.Element ele)private voidsetId()voidsetScope(java.lang.String s)voidsetScope(RoleRel.RoleRelScope s)booleansourceContains(Role r)checks if the source role is equal to r (or its super roles) (in case this relation is symmetric, this methods also checks the destination)booleantargetContains(Role r)checks if the target role is equal to r (or its super roles) (in case this relation is bi-dir, this methods also checks the source)java.lang.StringtoString()Methods inherited from class moise.common.MoiseElement
compareTo, getBoolProperty, getBoolProperty, getCreationDate, getFullId, getId, getId, getOwner, getPrefix, getPrefix, getProperties, getPropertiesAsDOM, getPropertiesAsProlog, getProperty, getStrProperty, hashCode, setId, setOwner, setPrefix, setPropertiesFromDOM, setPropertyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
source
-
target
-
scope
-
extendsToSubGroups
protected boolean extendsToSubGroups -
biDirectional
protected boolean biDirectional -
grSpec
-
-
Constructor Details
-
RoleRel
public RoleRel()Creates new Link -
RoleRel
Creates new Link
-
-
Method Details
-
setId
private void setId() -
getSource
-
getTarget
-
getTypeStr
protected java.lang.String getTypeStr() -
getXMLTag
public java.lang.String getXMLTag() -
getGrSpec
-
setScope
- Throws:
MoiseConsistencyException
-
setScope
- Throws:
MoiseConsistencyException
-
getScope
-
setExtendsToSubGroups
public void setExtendsToSubGroups(boolean b) -
getExtendsToSubGroups
public boolean getExtendsToSubGroups() -
getExtendsToSubGroupsStr
public java.lang.String getExtendsToSubGroupsStr() -
setBiDir
public void setBiDir(boolean b) -
isBiDir
public boolean isBiDir() -
getBiDirStr
public java.lang.String getBiDirStr() -
sourceContains
checks if the source role is equal to r (or its super roles) (in case this relation is symmetric, this methods also checks the destination) -
targetContains
checks if the target role is equal to r (or its super roles) (in case this relation is bi-dir, this methods also checks the source) -
contains
checks if one of this relation's role are equal to r (or its super roles) -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classMoiseElement
-
toString
public java.lang.String toString()- Overrides:
toStringin classMoiseElement
-
getAsDOM
public org.w3c.dom.Element getAsDOM(org.w3c.dom.Document document) -
setFromDOM
- Throws:
MoiseException
-