public class ReferenceSummary
extends java.lang.Object
implements java.io.Serializable
Contains summary information about a reference. ReferenceSummary
contains only one non null field between the URL and attachment based on the
reference type.
| Constructor and Description |
|---|
ReferenceSummary() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
AttachmentReference |
getAttachment()
Information about the reference when the
referenceType is
ATTACHMENT. |
DateReference |
getDate()
Information about a reference when the
referenceType is
DATE. |
EmailReference |
getEmail()
Information about a reference when the
referenceType is
EMAIL. |
NumberReference |
getNumber()
Information about a reference when the
referenceType is
NUMBER. |
StringReference |
getString()
Information about a reference when the
referenceType is
STRING. |
UrlReference |
getUrl()
Information about the reference when the
referenceType is
URL. |
int |
hashCode() |
void |
setAttachment(AttachmentReference attachment)
Information about the reference when the
referenceType is
ATTACHMENT. |
void |
setDate(DateReference dateValue)
Information about a reference when the
referenceType is
DATE. |
void |
setEmail(EmailReference email)
Information about a reference when the
referenceType is
EMAIL. |
void |
setNumber(NumberReference number)
Information about a reference when the
referenceType is
NUMBER. |
void |
setString(StringReference stringValue)
Information about a reference when the
referenceType is
STRING. |
void |
setUrl(UrlReference url)
Information about the reference when the
referenceType is
URL. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReferenceSummary |
withAttachment(AttachmentReference attachment)
Information about the reference when the
referenceType is
ATTACHMENT. |
ReferenceSummary |
withDate(DateReference dateValue)
Information about a reference when the
referenceType is
DATE. |
ReferenceSummary |
withEmail(EmailReference email)
Information about a reference when the
referenceType is
EMAIL. |
ReferenceSummary |
withNumber(NumberReference number)
Information about a reference when the
referenceType is
NUMBER. |
ReferenceSummary |
withString(StringReference stringValue)
Information about a reference when the
referenceType is
STRING. |
ReferenceSummary |
withUrl(UrlReference url)
Information about the reference when the
referenceType is
URL. |
public UrlReference getUrl()
Information about the reference when the referenceType is
URL. Otherwise, null.
Information about the reference when the
referenceType is URL. Otherwise, null.
public void setUrl(UrlReference url)
Information about the reference when the referenceType is
URL. Otherwise, null.
url -
Information about the reference when the
referenceType is URL. Otherwise,
null.
public ReferenceSummary withUrl(UrlReference url)
Information about the reference when the referenceType is
URL. Otherwise, null.
Returns a reference to this object so that method calls can be chained together.
url -
Information about the reference when the
referenceType is URL. Otherwise,
null.
public AttachmentReference getAttachment()
Information about the reference when the referenceType is
ATTACHMENT. Otherwise, null.
Information about the reference when the
referenceType is ATTACHMENT. Otherwise,
null.
public void setAttachment(AttachmentReference attachment)
Information about the reference when the referenceType is
ATTACHMENT. Otherwise, null.
attachment -
Information about the reference when the
referenceType is ATTACHMENT.
Otherwise, null.
public ReferenceSummary withAttachment(AttachmentReference attachment)
Information about the reference when the referenceType is
ATTACHMENT. Otherwise, null.
Returns a reference to this object so that method calls can be chained together.
attachment -
Information about the reference when the
referenceType is ATTACHMENT.
Otherwise, null.
public StringReference getString()
Information about a reference when the referenceType is
STRING. Otherwise, null.
Information about a reference when the referenceType
is STRING. Otherwise, null.
public void setString(StringReference stringValue)
Information about a reference when the referenceType is
STRING. Otherwise, null.
stringValue -
Information about a reference when the
referenceType is STRING. Otherwise,
null.
public ReferenceSummary withString(StringReference stringValue)
Information about a reference when the referenceType is
STRING. Otherwise, null.
Returns a reference to this object so that method calls can be chained together.
stringValue -
Information about a reference when the
referenceType is STRING. Otherwise,
null.
public NumberReference getNumber()
Information about a reference when the referenceType is
NUMBER. Otherwise, null.
Information about a reference when the referenceType
is NUMBER. Otherwise, null.
public void setNumber(NumberReference number)
Information about a reference when the referenceType is
NUMBER. Otherwise, null.
number -
Information about a reference when the
referenceType is NUMBER. Otherwise,
null.
public ReferenceSummary withNumber(NumberReference number)
Information about a reference when the referenceType is
NUMBER. Otherwise, null.
Returns a reference to this object so that method calls can be chained together.
number -
Information about a reference when the
referenceType is NUMBER. Otherwise,
null.
public DateReference getDate()
Information about a reference when the referenceType is
DATE. Otherwise, null.
Information about a reference when the referenceType
is DATE. Otherwise, null.
public void setDate(DateReference dateValue)
Information about a reference when the referenceType is
DATE. Otherwise, null.
dateValue -
Information about a reference when the
referenceType is DATE. Otherwise,
null.
public ReferenceSummary withDate(DateReference dateValue)
Information about a reference when the referenceType is
DATE. Otherwise, null.
Returns a reference to this object so that method calls can be chained together.
dateValue -
Information about a reference when the
referenceType is DATE. Otherwise,
null.
public EmailReference getEmail()
Information about a reference when the referenceType is
EMAIL. Otherwise, null.
Information about a reference when the referenceType
is EMAIL. Otherwise, null.
public void setEmail(EmailReference email)
Information about a reference when the referenceType is
EMAIL. Otherwise, null.
email -
Information about a reference when the
referenceType is EMAIL. Otherwise,
null.
public ReferenceSummary withEmail(EmailReference email)
Information about a reference when the referenceType is
EMAIL. Otherwise, null.
Returns a reference to this object so that method calls can be chained together.
email -
Information about a reference when the
referenceType is EMAIL. Otherwise,
null.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object