BrightSide Workbench Full Report + Source Code
org.turro.visual.ChallengeVisualElement Class Reference
Inheritance diagram for org.turro.visual.ChallengeVisualElement:
Collaboration diagram for org.turro.visual.ChallengeVisualElement:

Public Member Functions

 ChallengeVisualElement (String name, ChallengeVisualElements factory)
 
ChallengeVisualElement setChallenger (Boolean challenger)
 
ChallengeVisualElement setParticipates (Boolean participates)
 
boolean allows (String name, Response response, IContact contact)
 
- Public Member Functions inherited from org.turro.visual.VisualElement< ChallengeVisualElements, ChallengeVisualElement, Challenge >
 VisualElement (String name, F factory)
 
getParent ()
 
void setParent (V parent)
 
boolean check (E entity, IContact contact)
 
String getName ()
 
String getLabel ()
 
int getOrder ()
 
boolean allows (String name, E entity, IContact contact)
 
VisualElement getElement (String name)
 
VisualElement getElement (String name, E entity, IContact contact)
 
getSubElements ()
 
setName (String name)
 
setLabel (String label)
 
setOrder (int order)
 
setRole (String role)
 
setAdmin (Boolean admin)
 
setWorker (Boolean worker)
 
setStudent (Boolean student)
 
setHHRR (Boolean hhrr)
 
setVisitor (Boolean visitor)
 
addSyndication (String syndication)
 
addGrouping (String grouping)
 
addBusinessSyndication (String syndication)
 
addBusinessGrouping (String grouping)
 
boolean isVisitor (E entity, IContact contact)
 
int compareTo (VisualElement o)
 
int hashCode ()
 
boolean equals (Object obj)
 

Protected Member Functions

boolean emptyEntityConstraints ()
 
boolean checkAllMatch (Challenge entity, IContact contact)
 
boolean checkAnyMatch (Challenge entity, IContact contact)
 
- Protected Member Functions inherited from org.turro.visual.VisualElement< ChallengeVisualElements, ChallengeVisualElement, Challenge >
addSubElement (String name)
 
boolean checkConstraints (E entity, IContact contact)
 
boolean emptyConstraints ()
 
boolean checkEval (E entity, IContact contact)
 
boolean checkContact (IContact contact)
 
boolean isNullOrFalse (Boolean value)
 
abstract boolean emptyEntityConstraints ()
 
abstract boolean checkAllMatch (E entity, IContact contact)
 
abstract boolean checkAnyMatch (E entity, IContact contact)
 
boolean hasScript ()
 
Script getScript ()
 

Detailed Description

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

Definition at line 29 of file ChallengeVisualElement.java.

Constructor & Destructor Documentation

◆ ChallengeVisualElement()

org.turro.visual.ChallengeVisualElement.ChallengeVisualElement ( String  name,
ChallengeVisualElements  factory 
)

Definition at line 34 of file ChallengeVisualElement.java.

34  {
35  super(name, factory);
36  }

Member Function Documentation

◆ allows()

boolean org.turro.visual.ChallengeVisualElement.allows ( String  name,
Response  response,
IContact  contact 
)

Definition at line 74 of file ChallengeVisualElement.java.

74  {
75  return super.allows(name, response.getChallenge(), contact);
76  }
Here is the call graph for this function:

◆ checkAllMatch()

boolean org.turro.visual.ChallengeVisualElement.checkAllMatch ( Challenge  entity,
IContact  contact 
)
protected

Definition at line 54 of file ChallengeVisualElement.java.

54  {
55  return true;
56  }

◆ checkAnyMatch()

boolean org.turro.visual.ChallengeVisualElement.checkAnyMatch ( Challenge  entity,
IContact  contact 
)
protected

Definition at line 59 of file ChallengeVisualElement.java.

59  {
60  return checkAttributes(entity, contact) ||
61  checkParticipates(entity, contact);
62  }

◆ emptyEntityConstraints()

boolean org.turro.visual.ChallengeVisualElement.emptyEntityConstraints ( )
protected

Definition at line 49 of file ChallengeVisualElement.java.

49  {
50  return challenger == null && participates == null;
51  }

◆ setChallenger()

ChallengeVisualElement org.turro.visual.ChallengeVisualElement.setChallenger ( Boolean  challenger)

Definition at line 38 of file ChallengeVisualElement.java.

38  {
39  this.challenger = challenger;
40  return this;
41  }

◆ setParticipates()

ChallengeVisualElement org.turro.visual.ChallengeVisualElement.setParticipates ( Boolean  participates)

Definition at line 43 of file ChallengeVisualElement.java.

43  {
44  this.participates = participates;
45  return this;
46  }

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