|
CodeBeamer 5.4.0.1-RC API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intland.codebeamer.persistence.dto.base.IdentifiableDto
com.intland.codebeamer.persistence.dto.base.AbstractReferenceDto
public abstract class AbstractReferenceDto
Each DTO that represents reference between two entities in the system or between one entity and an external URL, must extend this.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto |
---|
IdentifiableDto.IdComparator |
Field Summary | |
---|---|
static ReferenceAccessor<AbstractReferenceDto> |
FromReferences
A special ReferenceAccessor to access the "from" references of AbstractReferenceDto s |
static ReferenceAccessor<AbstractReferenceDto> |
ToReferences
A special ReferenceAccessor to access the "to" references of AbstractReferenceDto s |
Fields inherited from interface com.intland.codebeamer.persistence.dto.base.ReferenceHolderDto |
---|
Accessor |
Constructor Summary | |
---|---|
AbstractReferenceDto()
|
Method Summary | |
---|---|
protected ReferenceDto |
checkFrom()
|
protected ReferenceDto |
checkTo()
|
boolean |
equals(java.lang.Object obj)
|
ReferenceDto |
getFrom()
Get the origin of this directed association |
java.lang.String |
getFromDescription()
Returns the textual description of the source end or null if this end can't be resolved. |
ReferableDto |
getFromDto()
|
java.lang.Integer |
getFromId()
|
java.lang.String |
getFromInterwikiReference()
Returns the textual description of the source end or null if this end can't be resolved. |
java.lang.Integer |
getFromTypeId()
|
java.lang.String |
getFromUrl()
Returns the URL of the source end or null if this end can't be resolved. |
ReferenceDto |
getReference()
By default only the destination reference will be resolved |
ReferenceDto |
getTo()
Get the destination of this directed association |
java.lang.String |
getToDescription()
Returns the textual description of the target end or null if this end can't be resolved. |
ReferableDto |
getToDto()
|
java.lang.Integer |
getToId()
|
java.lang.String |
getToInterwikiReference()
Returns the textual description of the target end or null if this end can't be resolved. |
java.lang.Integer |
getToTypeId()
|
java.lang.String |
getToUrl()
Returns the URL of the target end or null if this end can't be resolved. |
java.lang.String |
getUrl()
|
int |
hashCode()
|
boolean |
isUrlReference()
Returns true if this reference points to
a URL, not to another artifact. |
void |
setFrom(ReferenceDto from)
Set the origin of this directed association |
void |
setFromDto(ReferableDto fromDto)
|
void |
setFromId(java.lang.Integer fromId)
|
void |
setFromTypeId(java.lang.Integer fromTypeId)
|
void |
setTo(ReferenceDto to)
Set the destination of this directed association |
void |
setToDto(ReferableDto toDto)
|
void |
setToId(java.lang.Integer toId)
|
void |
setToTypeId(java.lang.Integer toTypeId)
|
void |
setUrl(java.lang.String url)
|
java.lang.String |
toString()
|
Methods inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto |
---|
clone, compare, compareInteger, compareTo, equals, getId, hashCode, setId |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ReferenceAccessor<AbstractReferenceDto> FromReferences
public static final ReferenceAccessor<AbstractReferenceDto> ToReferences
Constructor Detail |
---|
public AbstractReferenceDto()
Method Detail |
---|
public ReferenceDto getFrom()
public void setFrom(ReferenceDto from)
from
- is the association originprotected ReferenceDto checkFrom()
public java.lang.Integer getFromTypeId()
public void setFromTypeId(java.lang.Integer fromTypeId)
public java.lang.Integer getFromId()
public void setFromId(java.lang.Integer fromId)
public ReferableDto getFromDto()
public void setFromDto(ReferableDto fromDto)
public java.lang.String getFromDescription()
null
if this end can't be resolved.
public java.lang.String getFromUrl()
null
if this end can't be resolved.
public java.lang.String getFromInterwikiReference()
null
if this end can't be resolved.
public ReferenceDto getTo()
public void setTo(ReferenceDto to)
to
- is the association destinationpublic ReferenceDto getReference()
getReference
in interface ReferenceHolderDto
protected ReferenceDto checkTo()
public java.lang.Integer getToTypeId()
public void setToTypeId(java.lang.Integer toTypeId)
public java.lang.Integer getToId()
public void setToId(java.lang.Integer toId)
public ReferableDto getToDto()
public void setToDto(ReferableDto toDto)
public java.lang.String getToDescription()
null
if this end can't be resolved.
public java.lang.String getToUrl()
null
if this end can't be resolved.
public java.lang.String getToInterwikiReference()
null
if this end can't be resolved.
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
public boolean isUrlReference()
true
if this reference points to
a URL, not to another artifact.
public int hashCode()
hashCode
in class IdentifiableDto
public boolean equals(java.lang.Object obj)
equals
in class IdentifiableDto
public java.lang.String toString()
toString
in class IdentifiableDto
|
CodeBeamer 5.4.0.1-RC API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |