public class Line extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
entity1Name |
protected String |
entity1Type |
protected String |
entity2Name |
protected String |
entity2Type |
protected LineType |
lineType |
protected String |
name |
protected static long |
serialVersionUID |
protected String |
typeDefGuid |
| Constructor and Description |
|---|
Line()
Default constructor
|
Line(Line template) |
Line(Relationship omrsRelationship)
Create a typedRelationship from an omrs relationship
|
Line(String name) |
Line(String name,
LineType lineType) |
| Modifier and Type | Method and Description |
|---|---|
static Relationship |
createOmrsRelationship(Line line)
Create an omrs relationship with the basic fields filled in.
|
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 line should start to be used (null means it can be used from creationTime).
|
Date |
getEffectiveToTime()
Return the date/time that this line should no longer be used.
|
String |
getGuid() |
LineType |
getLineType() |
String |
getName() |
static long |
getSerialVersionUID() |
SystemAttributes |
getSystemAttributes() |
String |
getTypeDefGuid() |
void |
setAdditionalProperties(Map<String,String> additionalProperties) |
void |
setEffectiveFromTime(Date effectiveFromTime) |
void |
setGuid(String guid) |
void |
setLineType(LineType lineType) |
void |
setSystemAttributes(SystemAttributes systemAttributes) |
void |
setTypeDefGuid(String typeDefGuid) |
StringBuilder |
toString(StringBuilder sb) |
protected static final long serialVersionUID
protected String typeDefGuid
protected LineType lineType
protected String entity1Name
protected String entity1Type
protected String entity2Name
protected String entity2Type
protected String name
public Line()
public Line(Line template)
public Line(String name)
public Line(Relationship omrsRelationship)
omrsRelationship - omrs relationshippublic String getTypeDefGuid()
public void setTypeDefGuid(String typeDefGuid)
public LineType getLineType()
public void setLineType(LineType lineType)
public SystemAttributes getSystemAttributes()
public void setSystemAttributes(SystemAttributes systemAttributes)
public Date getEffectiveFromTime()
public void setEffectiveFromTime(Date effectiveFromTime)
public Date getEffectiveToTime()
public String getGuid()
public void setGuid(String guid)
public String getName()
public static long getSerialVersionUID()
public Map<String,String> getAdditionalProperties()
public void setAdditionalProperties(Map<String,String> additionalProperties)
public static Relationship createOmrsRelationship(Line line)
line - this is a line to create the relationship frompublic StringBuilder toString(StringBuilder sb)
Copyright © 2018–2020 ODPi. All rights reserved.