public abstract class RoleRel extends MoiseElement implements ToXML
Modifier and Type | Class and Description |
---|---|
static class |
RoleRel.RoleRelScope |
Modifier and Type | Field and Description |
---|---|
protected boolean |
biDirectional |
protected boolean |
extendsToSubGroups |
protected Group |
grSpec |
protected RoleRel.RoleRelScope |
scope |
protected Role |
source |
protected Role |
target |
debug
Constructor and Description |
---|
RoleRel()
Creates new Link
|
RoleRel(Role s,
Role d)
Creates new Link
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Role r)
checks if one of this relation's role are equal to r (or its super roles)
|
boolean |
equals(java.lang.Object o) |
org.w3c.dom.Element |
getAsDOM(org.w3c.dom.Document document) |
java.lang.String |
getBiDirStr() |
boolean |
getExtendsToSubGroups() |
java.lang.String |
getExtendsToSubGroupsStr() |
Group |
getGrSpec() |
RoleRel.RoleRelScope |
getScope() |
Role |
getSource() |
Role |
getTarget() |
protected java.lang.String |
getTypeStr() |
java.lang.String |
getXMLTag() |
boolean |
isBiDir() |
void |
setBiDir(boolean b) |
void |
setExtendsToSubGroups(boolean b) |
void |
setFromDOM(org.w3c.dom.Element ele) |
void |
setScope(RoleRel.RoleRelScope s) |
void |
setScope(java.lang.String s) |
boolean |
sourceContains(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)
|
boolean |
targetContains(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.String |
toString() |
compareTo, getBoolProperty, getBoolProperty, getCreationDate, getFullId, getId, getId, getOwner, getPrefix, getPrefix, getProperties, getPropertiesAsDOM, getPropertiesAsProlog, getProperty, getStrProperty, hashCode, setId, setOwner, setPrefix, setPropertiesFromDOM, setProperty
protected Role source
protected Role target
protected RoleRel.RoleRelScope scope
protected boolean extendsToSubGroups
protected boolean biDirectional
protected Group grSpec
public Role getSource()
public Role getTarget()
protected java.lang.String getTypeStr()
public java.lang.String getXMLTag()
public Group getGrSpec()
public void setScope(RoleRel.RoleRelScope s) throws MoiseConsistencyException
MoiseConsistencyException
public void setScope(java.lang.String s) throws MoiseConsistencyException
MoiseConsistencyException
public RoleRel.RoleRelScope getScope()
public void setExtendsToSubGroups(boolean b)
public boolean getExtendsToSubGroups()
public java.lang.String getExtendsToSubGroupsStr()
public void setBiDir(boolean b)
public boolean isBiDir()
public java.lang.String getBiDirStr()
public boolean sourceContains(Role r)
public boolean targetContains(Role r)
public boolean contains(Role r)
public boolean equals(java.lang.Object o)
equals
in class MoiseElement
public java.lang.String toString()
toString
in class MoiseElement
public org.w3c.dom.Element getAsDOM(org.w3c.dom.Document document)
public void setFromDOM(org.w3c.dom.Element ele) throws MoiseException
MoiseException