BrightSide Workbench Full Report + Source Code
org.turro.contacts.proposal.GenericAttribute< A > Class Template Referenceabstract
Inheritance diagram for org.turro.contacts.proposal.GenericAttribute< A >:
Collaboration diagram for org.turro.contacts.proposal.GenericAttribute< A >:

Public Member Functions

 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

abstract List< A > generateRelated ()
 

Protected Attributes

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 29 of file GenericAttribute.java.

Constructor & Destructor Documentation

◆ GenericAttribute()

Member Function Documentation

◆ addToContact()

abstract void org.turro.contacts.proposal.GenericAttribute< A >.addToContact ( Contact  contact)
abstract

◆ checkActive()

void org.turro.contacts.proposal.GenericAttribute< A >.checkActive ( Contact  destination)

Definition at line 59 of file GenericAttribute.java.

59  {
60  active = true;
61  for(IAttribute a : getRelated()) {
62  if(a.getContact().getId().equals(destination.getId())) {
63  active = false;
64  }
65  }
66  }
Here is the call graph for this function:

◆ generateAttributeAdapter()

abstract IAttribute org.turro.contacts.proposal.GenericAttribute< A >.generateAttributeAdapter ( a)
abstract

◆ generateRelated()

abstract List<A> org.turro.contacts.proposal.GenericAttribute< A >.generateRelated ( )
abstractprotected
Here is the caller graph for this function:

◆ getAsString()

abstract String org.turro.contacts.proposal.GenericAttribute< A >.getAsString ( )
abstract
Here is the caller graph for this function:

◆ getAttributeName()

abstract String org.turro.contacts.proposal.GenericAttribute< A >.getAttributeName ( )
abstract
Here is the caller graph for this function:

◆ getContact()

abstract Contact org.turro.contacts.proposal.GenericAttribute< A >.getContact ( )
abstract

◆ getRelated()

Definition at line 52 of file GenericAttribute.java.

52  {
53  if(related == null) {
54  related = adaptAttribute(generateRelated());
55  }
56  return related;
57  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getValue()

Definition at line 48 of file GenericAttribute.java.

48  {
49  return attribute;
50  }

◆ isActive()

Definition at line 40 of file GenericAttribute.java.

40  {
41  return active;
42  }
Here is the caller graph for this function:

◆ setActive()

void org.turro.contacts.proposal.GenericAttribute< A >.setActive ( boolean  active)

Definition at line 44 of file GenericAttribute.java.

44  {
45  this.active = active;
46  }
Here is the caller graph for this function:

Member Data Documentation

◆ active

boolean org.turro.contacts.proposal.GenericAttribute< A >.active
protected

Definition at line 34 of file GenericAttribute.java.

◆ attribute

Definition at line 31 of file GenericAttribute.java.

◆ duplication

Definition at line 33 of file GenericAttribute.java.

◆ related

transient List<IAttribute> org.turro.contacts.proposal.GenericAttribute< A >.related
protected

Definition at line 32 of file GenericAttribute.java.


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