public abstract class Relationship extends Object implements Serializable, OmasObject
| Modifier and Type | Field and Description |
|---|---|
protected RelationshipEnd |
end1 |
protected RelationshipEnd |
end2 |
protected String |
name |
protected RelationshipType |
relationshipType |
protected static long |
serialVersionUID |
| Modifier | Constructor and Description |
|---|---|
protected |
Relationship(String name,
RelationshipEnd end1,
RelationshipEnd end2) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getAdditionalProperties()
Get the extra attributes - ones that are in addition to the standard types.
|
Date |
getEffectiveFromTime()
Return the date/time that this relationship should start to be used (null means it can be used from creationTime).
|
Date |
getEffectiveToTime()
Return the date/time that this relationship should no longer be used.
|
RelationshipEnd |
getEnd1()
Get relationship end 1.
|
RelationshipEnd |
getEnd2()
Get relationship end 1.
|
String |
getGuid() |
String |
getName() |
RelationshipType |
getRelationshipType() |
SystemAttributes |
getSystemAttributes() |
protected void |
initialise() |
boolean |
isReadOnly()
The relationship is readOnly
|
void |
setAdditionalProperties(Map<String,String> additionalProperties) |
void |
setEffectiveFromTime(Date effectiveFromTime) |
void |
setEffectiveToTime(Date effectiveToTime) |
void |
setEnd1(RelationshipEnd end1) |
void |
setEnd2(RelationshipEnd end2) |
void |
setGuid(String guid) |
void |
setReadOnly(boolean readOnly)
set whether the relationship is readOnly
|
void |
setRelationshipType(RelationshipType relationshipType) |
void |
setSystemAttributes(SystemAttributes systemAttributes) |
String |
toString() |
StringBuilder |
toString(StringBuilder sb) |
protected static final long serialVersionUID
protected RelationshipType relationshipType
protected String name
protected RelationshipEnd end1
protected RelationshipEnd end2
protected Relationship(String name, RelationshipEnd end1, RelationshipEnd end2)
protected void initialise()
public RelationshipType getRelationshipType()
public void setRelationshipType(RelationshipType relationshipType)
public SystemAttributes getSystemAttributes()
public void setSystemAttributes(SystemAttributes systemAttributes)
public Date getEffectiveFromTime()
public void setEffectiveFromTime(Date effectiveFromTime)
public Date getEffectiveToTime()
public void setEffectiveToTime(Date effectiveToTime)
public String getGuid()
public void setGuid(String guid)
public String getName()
public Map<String,String> getAdditionalProperties()
public void setAdditionalProperties(Map<String,String> additionalProperties)
public RelationshipEnd getEnd1()
public void setEnd1(RelationshipEnd end1)
public RelationshipEnd getEnd2()
public void setEnd2(RelationshipEnd end2)
public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
readOnly - readonly flagpublic StringBuilder toString(StringBuilder sb)
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.