BrightSide Workbench Full Report + Source Code
org.turro.contacts.proposal.CommentAttribute Class Reference
Inheritance diagram for org.turro.contacts.proposal.CommentAttribute:
Collaboration diagram for org.turro.contacts.proposal.CommentAttribute:

Public Member Functions

 CommentAttribute (Comment attribute)
 
void addToContact (Contact contact)
 
String getAsString ()
 
Contact getContact ()
 
String getAttributeName ()
 
IAttribute generateAttributeAdapter (final Comment a)
 
- Public Member Functions inherited from org.turro.contacts.proposal.GenericAttribute< Comment >
 GenericAttribute (A attribute)
 
boolean isActive ()
 
void setActive (boolean active)
 
getValue ()
 
List< IAttributegetRelated ()
 
void checkActive (Contact destination)
 
abstract void addToContact (Contact contact)
 
abstract String getAsString ()
 
abstract Contact getContact ()
 
abstract String getAttributeName ()
 
abstract IAttribute generateAttributeAdapter (A a)
 

Protected Member Functions

List< CommentgenerateRelated ()
 
- Protected Member Functions inherited from org.turro.contacts.proposal.GenericAttribute< Comment >
abstract List< A > generateRelated ()
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.contacts.proposal.GenericAttribute< Comment >
attribute
 
transient List< IAttributerelated
 
DuplicationType duplication
 
boolean active
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 30 of file CommentAttribute.java.

Constructor & Destructor Documentation

◆ CommentAttribute()

org.turro.contacts.proposal.CommentAttribute.CommentAttribute ( Comment  attribute)

Member Function Documentation

◆ addToContact()

void org.turro.contacts.proposal.CommentAttribute.addToContact ( Contact  contact)

Definition at line 43 of file CommentAttribute.java.

43  {
44  attribute.setContact(contact);
45  contact.getComments().add(attribute);
46  }
Here is the call graph for this function:

◆ generateAttributeAdapter()

IAttribute org.turro.contacts.proposal.CommentAttribute.generateAttributeAdapter ( final Comment  a)

Definition at line 64 of file CommentAttribute.java.

64  {
65  return new IAttribute() {
66 
67  @Override
68  public String getAsString() {
69  return a.getComment();
70  }
71 
72  @Override
73  public Contact getContact() {
74  return a.getContact();
75  }
76 
77  @Override
78  public Object getValue() {
79  return a;
80  }
81  };
82 
83  }
Here is the call graph for this function:

◆ generateRelated()

List<Comment> org.turro.contacts.proposal.CommentAttribute.generateRelated ( )
protected

Definition at line 38 of file CommentAttribute.java.

38  {
39  return new ArrayList<Comment>();
40  }

◆ getAsString()

String org.turro.contacts.proposal.CommentAttribute.getAsString ( )

Definition at line 49 of file CommentAttribute.java.

49  {
50  return attribute.getComment();
51  }
Here is the caller graph for this function:

◆ getAttributeName()

String org.turro.contacts.proposal.CommentAttribute.getAttributeName ( )

Definition at line 59 of file CommentAttribute.java.

59  {
60  return I_.get("Comment");
61  }
Here is the call graph for this function:

◆ getContact()

Contact org.turro.contacts.proposal.CommentAttribute.getContact ( )

Definition at line 54 of file CommentAttribute.java.

54  {
55  return attribute.getContact();
56  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: