text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<TITLE>
Study
</TITLE>

<META NAME="keywords" CONTENT="gov.nih.nci.cabig.caaers.domain.Study class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">

      Overview
      Package
    Class
      Use
      Tree
      Deprecated
      Index
      Help

 PREV CLASS
 NEXT CLASS

  FRAMES
 NO FRAMES

  All Classes

  SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD

gov.nih.nci.cabig.caaers.domain

Class Study

java.lang.Object
  gov.nih.nci.cabig.ctms.domain.AbstractMutableDomainObject
      gov.nih.nci.cabig.caaers.domain.AbstractIdentifiableDomainObject
          gov.nih.nci.cabig.caaers.domain.Study

All Implemented Interfaces:
IdentifiableByAssignedIdentifers, gov.nih.nci.cabig.ctms.domain.DomainObject, gov.nih.nci.cabig.ctms.domain.GridIdentifiable, gov.nih.nci.cabig.ctms.domain.MutableDomainObject, java.io.Serializable

Direct Known Subclasses:
LocalStudy, RemoteStudy

public abstract class Study
extends AbstractIdentifiableDomainObject
implements java.io.Serializable

Domain object representing Study(Protocol).

Author:

Sujith Vellat Thayyilthodi, Rhett Sutphin, Biju Joseph, Ion Olaru, Sameer Sawant, Monish Dombla

See Also:
Serialized Form

Field Summary

protected  java.lang.Boolean
adeersReporting

          Deprecated.

protected  AeTerminology
aeTerminology

          The ae terminology.

protected  java.lang.Boolean
behavioralTherapyType

          The behavioral therapy type.

protected  java.lang.Boolean
blindedIndicator

          The blinded indicator.

protected  CoordinatingCenter
coordinatingCenter

          The coordinating center.

protected  java.util.List<CtcCategory>
ctcCategories

          The ctc categories.

protected  java.util.List<CtepStudyDisease>
ctepStudyDiseases

          The ctep study diseases.

protected  java.lang.Boolean
dataEntryStatus

          The data entry status.

protected  java.lang.String
description

          Deprecated.

protected  Design
design

          Deprecated.

protected  java.lang.Boolean
deviceTherapyType

          The device therapy type.

protected  java.lang.String
diseaseCode

          The disease code.

protected  DiseaseTerminology
diseaseTerminology

          The disease terminology.

protected  java.lang.Boolean
drugAdministrationTherapyType

          The drug administration therapy type.

protected  java.util.List<Epoch>
epochs

          The epochs.

protected  java.util.List<ExpectedAECtcTerm>
expectedAECTCTerms

          The expected aectc terms.

protected  java.util.List<ExpectedAEMeddraLowLevelTerm>
expectedAEMeddraTerms

          The expected ae meddra terms.

protected  java.util.List<AbstractExpectedAE>
expectedAEs

          The expected a es.

protected  java.lang.String
externalId

          The external id.

protected  FundingSponsor
fundingSponsor

          The funding sponsor.

protected  gov.nih.nci.cabig.ctms.collections.LazyListHelper
lazyListHelper

          The lazy list helper.

protected  java.lang.Integer
loadStatus

          The load status.

protected  java.lang.String
longTitle

          Deprecated.

protected  java.util.List<MeddraStudyDisease>
meddraStudyDiseases

          The meddra study diseases.

protected  java.lang.String
monitorCode

          The monitor code.

protected  OrganizationAssignedIdentifier
organizationAssignedIdentifier

          The organization assigned identifier.

protected  java.util.List<OtherIntervention>
otherInterventions

          The other interventions.

protected  MeddraVersion
otherMeddra

          The other meddra.

protected  java.lang.String
otherTreatmentAssignment

          The other treatment assignment.

protected  java.lang.String
phaseCode

          The phase code.

protected  java.lang.String
precis

          Deprecated.

protected  java.lang.Boolean
radiationTherapyType

          The radiation therapy type.

protected  java.lang.Boolean
randomizedIndicator

          The randomized indicator.

protected  java.util.List<ReportFormat>
reportFormats

          Deprecated.

protected static long
serialVersionUID

          The Constant serialVersionUID.

protected  java.lang.String
shortTitle

          The short title.

static java.lang.String
STATUS_ACTIVE

          The Constant STATUS_ACTIVE.

static java.lang.String
STATUS_ADMINISTRATIVELY_COMPLETE

          The Constant STATUS_ADMINISTRATIVELY_COMPLETE.

protected  java.util.List<StudyCondition>
studyConditions

          The study conditions.

protected  java.util.List<StudyDevice>
studyDevices

          The study devices.

protected  java.util.List<StudyOrganization>
studyOrganizations

          The study organizations.

protected  java.lang.String
studyPurpose

protected  java.util.List<StudyTherapy>
studyTherapies

          The study therapies.

protected  java.lang.Boolean
surgeryTherapyType

          The surgery therapy type.

protected  java.lang.Integer
targetAccrualNumber

          The target accrual number.

protected  java.lang.Boolean
verbatimFirst

          The verbatim first.

Constructor Summary

Study()

          Instantiates a new study.

Method Summary

 void
addCtepStudyDisease(CtepStudyDisease ctepStudyDisease)

          Adds the ctep study disease.

 boolean
addEpoch(Epoch epoch)

          Adds the epoch.

 void
addExpectedAECtcTerm(ExpectedAECtcTerm expectedAECtcTerm)

          Adds the expected ae ctc term.

 void
addExpectedAEMeddraLowLevelTerm(ExpectedAEMeddraLowLevelTerm expectedAEMeddraLowLevelTerm)

          Adds the expected ae meddra low level term.

 void
addMeddraStudyDisease(MeddraStudyDisease meddraStudyDisease)

          Adds the meddra study disease.

 void
addOtherIntervention(OtherIntervention oi)

          Adds the other intervention.

 void
addReportFormat(ReportFormat reportFormat)

          Deprecated.

 void
addReportFormatType(ReportFormatType reportFormatType)

          Deprecated.

 void
addStudyAgent(StudyAgent studyAgent)

          Adds the study agent.

 void
addStudyCondition(StudyCondition studyCondition)

          Adds the study condition.

 void
addStudyDevice(StudyDevice sd)

          Adds the study device.

 void
addStudyFundingSponsor(StudyFundingSponsor studyFundingSponsor)

          Adds the study funding sponsor.

 void
addStudyOrganization(StudyOrganization so)

          Adds the study organization.

 void
addStudySite(StudySite studySite)

          Adds the study site.

 void
addStudyTherapy(StudyTherapy studyTherapy)

          Deprecated.

 void
addStudyTherapy(StudyTherapyType studyTherapyType)

          Adds the study therapy.

 void
addTreatmentAssignment(TreatmentAssignment treatmentAssignment)

          Adds the treatment assignment.

 AbstractExpectedAE
checkExpectedAEUniqueness()

          Check expected ae uniqueness.

 boolean
containsSolicitedAE(java.lang.Integer termID)

          Contains solicited ae.

 boolean
equals(java.lang.Object obj)

 java.util.List<java.lang.String>
findEmailAddressByRole(java.lang.String roleName)

          This method will find the email address of people associated with the role.

 java.util.List<CtepStudyDisease>
getActiveCtepStudyDiseases()

          Gets the active ctep study diseases.

 java.util.List<Epoch>
getActiveEpochs()

          This method will list all the Epochs that are not retired.

 java.util.List<MeddraStudyDisease>
getActiveMeddraStudyDiseases()

          Gets the active meddra study diseases.

 java.util.List<OtherIntervention>
getActiveOtherInterventions()

          Gets the active other interventions.

 java.util.List<StudyAgent>
getActiveStudyAgents()

          Will return the StudyAgents that are not retired.

 java.util.List<StudyCondition>
getActiveStudyConditions()

          Gets the active study conditions.

 java.util.List<StudyDevice>
getActiveStudyDevices()

          Will return the StudyDevices that are not retired.

 java.util.List<? extends AbstractStudyDisease<? extends gov.nih.nci.cabig.ctms.domain.DomainObject>>
getActiveStudyDiseases()

          Will return the AbstractStudyDiseases that are not retired.

 java.util.List<StudyOrganization>
getActiveStudyOrganizations()

          Will return the StudyOrganizations that are not retired.

 java.util.List<OtherIntervention>
getActiveStudyRadiations()

          Will return the StudyDevices that are not retired.

 java.util.List<StudySite>
getActiveStudySites()

          Will return the StudySites that are not retired.

 java.util.List<OtherIntervention>
getActiveStudySurgeries()

          Will return the StudyDevices that are not retired.

 java.util.List<TreatmentAssignment>
getActiveTreatmentAssignments()

          Will return the TreatmentAssignments that are not retired.

 java.lang.Boolean
getAdeersPDFType()

          Gets the adeers pdf type.

 java.lang.Boolean
getAdeersReporting()

          Deprecated.

 AeTerminology
getAeTerminology()

          Gets the ae terminology.

 java.lang.Boolean
getBlindedIndicator()

          Gets the blinded indicator.

 java.lang.Boolean
getCaaersXMLType()

          Deprecated.

 java.lang.Boolean
getCiomsPDFType()

          Deprecated.

 java.lang.Boolean
getCiomsSaePDFType()

          Deprecated.

 CoordinatingCenter
getCoordinatingCenter()

          Gets the coordinating center.

 OrganizationAssignedIdentifier
getCoordinatingCenterIdentifier()

          Gets the coordinating center identifier.

 java.lang.String
getCoordinatingCenterIdentifierValue()

          Gets the coordinating center identifier value.

 java.util.List<CtcCategory>
getCtcCategories()

          Gets the ctc categories.

 Ctc
getCtcVersion()

          Deprecated.

 java.util.List<CtepStudyDisease>
getCtepStudyDiseases()

          Gets the ctep study diseases.

 java.lang.Boolean
getDataEntryStatus()

          Gets the data entry status.

 java.lang.Boolean
getDcpSAEPDFType()

          Deprecated.

 java.lang.String
getDescription()

          Deprecated.

 Design
getDesign()

          Deprecated.

 java.lang.String
getDiseaseCode()

          Gets the disease code.

 DiseaseTerminology
getDiseaseTerminology()

          Gets the disease terminology.

 java.util.List<Epoch>
getEpochs()

          Gets the epochs.

 java.util.List<ExpectedAECtcTerm>
getExpectedAECtcTerms()

          Gets the expected ae ctc terms.

 java.util.List<ExpectedAEMeddraLowLevelTerm>
getExpectedAEMeddraLowLevelTerms()

          Gets the expected ae meddra low level terms.

 java.lang.String
getExternalId()

          Gets the external id.

 FundingSponsor
getFundingSponsor()

          Gets the funding sponsor.

 OrganizationAssignedIdentifier
getFundingSponsorIdentifier()

          Gets the funding sponsor identifier.

 java.lang.String
getFundingSponsorIdentifierValue()

          Gets the funding sponsor identifier value.

 java.lang.String
getIdentifierContaining(java.lang.String text)

          Gets the identifier containing.

 java.util.List<Identifier>
getIdentifiers()

          Subclasses will need to override this method to attach an appropriate JoinColumn annotation.

 java.util.List<Identifier>
getIdentifiersLazy()

          Gets the identifiers lazy.

 java.lang.Integer
getLoadStatus()

          Gets the load status.

 java.lang.String
getLongTitle()

          Deprecated.

 java.util.List<MeddraStudyDisease>
getMeddraStudyDiseases()

          Gets the meddra study diseases.

 java.lang.Boolean
getMedwatchPDFType()

          Deprecated.

 java.lang.String
getMonitorCode()

          Gets the monitor code.

 java.lang.Boolean
getMultiInstitutionIndicator()

          Deprecated.

 OrganizationAssignedIdentifier
getNciAssignedIdentifier()

          Gets the nci assigned identifier.

 OrganizationAssignedIdentifier
getOrganizationAssignedIdentifier()

          Gets the organization assigned identifier.

 java.util.List<OrganizationAssignedIdentifier>
getOrganizationAssignedIdentifiers()

          Gets the organization assigned identifiers.

 java.util.List<OtherIntervention>
getOtherInterventions()

          Gets the other interventions.

 MeddraVersion
getOtherMeddra()

          Gets the other meddra.

 java.lang.String
getOtherTreatmentAssignment()

          Gets the other treatment assignment.

 java.lang.String
getPhaseCode()

          Gets the phase code.

 java.lang.String
getPrecis()

          Deprecated.

 StudyFundingSponsor
getPrimaryFundingSponsor()

          Gets the primary funding sponsor.

 Organization
getPrimaryFundingSponsorOrganization()

          Gets the primary funding sponsor organization.

 Identifier
getPrimaryIdentifier()

          Will return the primary identifier associated to this study.

 java.lang.String
getPrimarySponsorCode()

          Gets the primary sponsor code.

 java.lang.Boolean
getRandomizedIndicator()

          Gets the randomized indicator.

 ReportFormat
getReportFormat(ReportFormatType reportFormatType)

          Deprecated.

 java.util.List<ReportFormat>
getReportFormats()

          Deprecated.

 java.lang.String
getShortTitle()

          Gets the short title.

 java.lang.String
getStatus()

          Deprecated.

 java.util.List<StudyAgent>
getStudyAgents()

          Gets the study agents.

 java.util.List<StudyAgent>
getStudyAgentsInternal()

          Gets the study agents internal.

 java.util.List<StudyCondition>
getStudyConditions()

          Gets the study conditions.

 StudyCoordinatingCenter
getStudyCoordinatingCenter()

          Gets the study coordinating center.

 java.util.List<StudyCoordinatingCenter>
getStudyCoordinatingCenters()

          Gets the study coordinating centers.

 java.util.List<StudyDevice>
getStudyDevices()

          Gets the study devices.

 java.util.List<StudyFundingSponsor>
getStudyFundingSponsors()

          Gets the study funding sponsors.

 java.util.List<StudyOrganization>
getStudyOrganizations()

          Gets the study organizations.

 java.lang.String
getStudyPurpose()

 java.util.List<StudySite>
getStudySites()

          Gets the study sites.

 java.util.List<StudyTherapy>
getStudyTherapies()

          Deprecated.

 StudyTherapy
getStudyTherapy(StudyTherapyType studyTherapyType)

          Deprecated.

 java.util.List<SystemAssignedIdentifier>
getSystemAssignedIdentifiers()

          Gets the system assigned identifiers.

 java.lang.Integer
getTargetAccrualNumber()

          Gets the target accrual number.

 java.lang.Integer
getTermCode()

          Gets the term code.

 java.util.List<TreatmentAssignment>
getTreatmentAssignments()

          Gets the treatment assignments.

 java.util.List<TreatmentAssignment>
getTreatmentAssignmentsInternal()

          Gets the treatment assignments internal.

 java.util.List<StudyOrganization>
getUniqueStudyOrganizations()

          Gets the unique study organizations.

 java.lang.Boolean
getVerbatimFirst()

          Gets the verbatim first.

 int
hashCode()

 boolean
hasTherapyOfType(StudyTherapyType therapyType)

          Checks for therapy of type.

 boolean
isBehavioralPresent()

          Checks if is behavioral present.

 boolean
isDevicePresent()

          Checks if is device present.

 boolean
isDrugAdministrationPresent()

          Checks if is drug administration present.

 boolean
isExpectedAdverseEventTerm(gov.nih.nci.cabig.ctms.domain.DomainObject aeTerm)

          This method checks against the ASAEL, and tells whether the AE term is
 expected.

 boolean
isRadiationPresent()

          Checks if is radiation present.

 boolean
isSurgeryPresent()

          Checks if is surgery present.

 boolean
removeEpoch(Epoch epoch)

          Removes the epoch.

 void
removeIdentifier(Identifier identifier)

          Removes the identifier.

 void
removeStudyOrganization(StudyOrganization so)

          Removes the study organization.

 void
removeStudySite(StudySite studySite)

          Removes the study site.

 void
removeTherapiesOfType(StudyTherapyType therapyType)

          Deprecated.

 void
setAdeersPDFType(java.lang.Boolean value)

          Deprecated.

 void
setAdeersReporting(java.lang.Boolean adeersSubmission)

          Deprecated.

 void
setAeTerminology(AeTerminology aeTerminology)

          Sets the ae terminology.

 void
setBlindedIndicator(java.lang.Boolean blindedIndicator)

          Sets the blinded indicator.

 void
setCaaersXMLType(java.lang.Boolean value)

          Deprecated.

 void
setCiomsPDFType(java.lang.Boolean value)

          Deprecated.

 void
setCiomsSaePDFType(java.lang.Boolean value)

          Deprecated.

 void
setCoordinatingCenter(CoordinatingCenter coordinatingCenter)

          Sets the coordinating center.

 void
setCtcCategories(java.util.List<CtcCategory> ctcCategories)

          Sets the ctc categories.

 void
setCtcVersion(Ctc ctcVersion)

          Deprecated.

 void
setCtepStudyDiseases(java.util.List<CtepStudyDisease> ctepStudyDiseases)

          Sets the ctep study diseases.

 void
setDataEntryStatus(java.lang.Boolean dataEntryStatus)

          Sets the data entry status.

 void
setDcpSAEPDFType(java.lang.Boolean dcpSAEPDFType)

          Deprecated.

 void
setDescription(java.lang.String descriptionText)

          Deprecated.

 void
setDesign(Design design)

          Deprecated.

 void
setDiseaseCode(java.lang.String diseaseCode)

          Sets the disease code.

 void
setDiseaseTerminology(DiseaseTerminology diseaseTerminology)

          Sets the disease terminology.

 void
setEpochs(java.util.List<Epoch> epochs)

          Sets the epochs.

 void
setExpectedAECtcTerms(java.util.List<ExpectedAECtcTerm> expectedAECTCTerms)

          Sets the expected ae ctc terms.

 void
setExpectedAEMeddraLowLevelTerms(java.util.List<ExpectedAEMeddraLowLevelTerm> expectedAEMeddraTerms)

          Sets the expected ae meddra low level terms.

 void
setExternalId(java.lang.String externalId)

          Sets the external id.

 void
setFundingSponsor(FundingSponsor fundingSponsor)

          Sets the funding sponsor.

 void
setIdentifiers(java.util.List<Identifier> identifiers)

          Sets the identifiers.

 void
setIdentifiersLazy(java.util.List<Identifier> identifiers)

          Sets the identifiers lazy.

 void
setLoadStatus(java.lang.Integer loadStatus)

          Sets the load status.

 void
setLongTitle(java.lang.String longTitleText)

          Deprecated.

 void
setMeddraStudyDiseases(java.util.List<MeddraStudyDisease> meddraStudyDiseases)

          Sets the meddra study diseases.

 void
setMedwatchPDFType(java.lang.Boolean medwatchPDFType)

          Deprecated.

 void
setMonitorCode(java.lang.String monitorCode)

          Sets the monitor code.

 void
setMultiInstitutionIndicator(java.lang.Boolean multiInstitutionIndicator)

          Deprecated.

 void
setOrganizationAssignedIdentifier(OrganizationAssignedIdentifier organizationAssignedIdentifier)

          Sets the organization assigned identifier.

 void
setOtherInterventions(java.util.List<OtherIntervention> otherInterventions)

          Sets the other interventions.

 void
setOtherMeddra(MeddraVersion otherMeddra)

          Sets the other meddra.

 void
setOtherTreatmentAssignment(java.lang.String otherTreatmentAssignment)

          Sets the other treatment assignment.

 void
setPhaseCode(java.lang.String phaseCode)

          Sets the phase code.

 void
setPrecis(java.lang.String precisText)

          Deprecated.

 void
setPrimaryFundingSponsorOrganization(Organization org)

          Sets the primary funding sponsor organization.

 void
setPrimarySponsorCode(java.lang.String sponsorCode)

          Sets the primary sponsor code.

 void
setRandomizedIndicator(java.lang.Boolean randomizedIndicator)

          Sets the randomized indicator.

 void
setReportFormats(java.util.List<ReportFormat> reportFormats)

          Deprecated.

 void
setShortTitle(java.lang.String shortTitleText)

          Sets the short title.

 void
setStatus(java.lang.String status)

          Deprecated.

 void
setStudyAgents(java.util.List<StudyAgent> studyAgents)

          Sets the study agents.

 void
setStudyAgentsInternal(java.util.List<StudyAgent> studyAgents)

          Sets the study agents internal.

 void
setStudyConditions(java.util.List<StudyCondition> studyConditions)

          Sets the study conditions.

 void
setStudyDevices(java.util.List<StudyDevice> studyDevices)

          Sets the study devices.

 void
setStudyOrganizations(java.util.List<StudyOrganization> studyOrganizations)

          Sets the study organizations.

 void
setStudyPurpose(java.lang.String studyPurpose)

 void
setTargetAccrualNumber(java.lang.Integer targetAccrualNumber)

          Sets the target accrual number.

 void
setTermCode(java.lang.Integer ignore)

          Sets the term code.

 void
setTreatmentAssignments(java.util.List<TreatmentAssignment> treatmentAssignments)

          Sets the treatment assignments.

 void
setTreatmentAssignmentsInternal(java.util.List<TreatmentAssignment> treatmentAssignments)

          Sets the treatment assignments internal.

 void
setVerbatimFirst(java.lang.Boolean verbatimFirst)

          Sets the verbatim first.

 void
synchronizeExpectedAEs()

          Synchronize expected a es.

 void
updateReportFormats(java.lang.Boolean selected,
                    ReportFormatType type)

          Deprecated.

Methods inherited from class gov.nih.nci.cabig.caaers.domain.AbstractIdentifiableDomainObject

addIdentifier, firstPrimaryIndicatorInIdentifiers, getPrimaryIdentifierValue, getSecondaryIdentifiers, setPrimaryIdentifierValue

Methods inherited from class gov.nih.nci.cabig.ctms.domain.AbstractMutableDomainObject

getGridId, getId, getVersion, hasGridId, setGridId, setId, setVersion

Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

Field Detail

serialVersionUID

protected static final long serialVersionUID

The Constant serialVersionUID.

See Also:
Constant Field Values

STATUS_ADMINISTRATIVELY_COMPLETE

public static final java.lang.String STATUS_ADMINISTRATIVELY_COMPLETE

The Constant STATUS_ADMINISTRATIVELY_COMPLETE.

See Also:
Constant Field Values

STATUS_ACTIVE

public static final java.lang.String STATUS_ACTIVE

The Constant STATUS_ACTIVE.

See Also:
Constant Field Values

shortTitle

protected java.lang.String shortTitle

The short title.

longTitle

@Deprecated
protected java.lang.String longTitle

Deprecated.
The long title.

description

@Deprecated
protected java.lang.String description

Deprecated.
The description.

precis

@Deprecated
protected java.lang.String precis

Deprecated.
The precis.

phaseCode

protected java.lang.String phaseCode

The phase code.

aeTerminology

protected AeTerminology aeTerminology

The ae terminology.

diseaseTerminology

protected DiseaseTerminology diseaseTerminology

The disease terminology.

otherTreatmentAssignment

protected java.lang.String otherTreatmentAssignment

The other treatment assignment.

blindedIndicator

protected java.lang.Boolean blindedIndicator

The blinded indicator.

adeersReporting

@Deprecated
protected java.lang.Boolean adeersReporting

Deprecated.
The adeers reporting.

randomizedIndicator

protected java.lang.Boolean randomizedIndicator

The randomized indicator.

diseaseCode

protected java.lang.String diseaseCode

The disease code.

monitorCode

protected java.lang.String monitorCode

The monitor code.

targetAccrualNumber

protected java.lang.Integer targetAccrualNumber

The target accrual number.

otherMeddra

protected MeddraVersion otherMeddra

The other meddra.

studyOrganizations

protected java.util.List<StudyOrganization> studyOrganizations

The study organizations.

ctepStudyDiseases

protected java.util.List<CtepStudyDisease> ctepStudyDiseases

The ctep study diseases.

meddraStudyDiseases

protected java.util.List<MeddraStudyDisease> meddraStudyDiseases

The meddra study diseases.

studyConditions

protected java.util.List<StudyCondition> studyConditions

The study conditions.

expectedAEs

protected java.util.List<AbstractExpectedAE> expectedAEs

The expected a es.

expectedAEMeddraTerms

protected java.util.List<ExpectedAEMeddraLowLevelTerm> expectedAEMeddraTerms

The expected ae meddra terms.

expectedAECTCTerms

protected java.util.List<ExpectedAECtcTerm> expectedAECTCTerms

The expected aectc terms.

lazyListHelper

protected final gov.nih.nci.cabig.ctms.collections.LazyListHelper lazyListHelper

The lazy list helper.

organizationAssignedIdentifier

protected OrganizationAssignedIdentifier organizationAssignedIdentifier

The organization assigned identifier.

studyTherapies

protected java.util.List<StudyTherapy> studyTherapies

The study therapies.

reportFormats

@Deprecated
protected java.util.List<ReportFormat> reportFormats

Deprecated.
The report formats.

ctcCategories

protected java.util.List<CtcCategory> ctcCategories

The ctc categories.

otherInterventions

protected java.util.List<OtherIntervention> otherInterventions

The other interventions.

studyDevices

protected java.util.List<StudyDevice> studyDevices

The study devices.

drugAdministrationTherapyType

protected java.lang.Boolean drugAdministrationTherapyType

The drug administration therapy type.

radiationTherapyType

protected java.lang.Boolean radiationTherapyType

The radiation therapy type.

deviceTherapyType

protected java.lang.Boolean deviceTherapyType

The device therapy type.

surgeryTherapyType

protected java.lang.Boolean surgeryTherapyType

The surgery therapy type.

behavioralTherapyType

protected java.lang.Boolean behavioralTherapyType

The behavioral therapy type.

loadStatus

protected java.lang.Integer loadStatus

The load status.

fundingSponsor

protected FundingSponsor fundingSponsor

The funding sponsor.

coordinatingCenter

protected CoordinatingCenter coordinatingCenter

The coordinating center.

design

@Deprecated
protected Design design

Deprecated.
The design.

epochs

protected java.util.List<Epoch> epochs

The epochs.

dataEntryStatus

protected java.lang.Boolean dataEntryStatus

The data entry status.

verbatimFirst

protected java.lang.Boolean verbatimFirst

The verbatim first.

externalId

protected java.lang.String externalId

The external id.

studyPurpose

protected java.lang.String studyPurpose

Constructor Detail

Study

public Study()

Instantiates a new study.

Method Detail

addStudyOrganization

public void addStudyOrganization(StudyOrganization so)

Adds the study organization.

Parameters:
so - the so

addTreatmentAssignment

public void addTreatmentAssignment(TreatmentAssignment treatmentAssignment)

Adds the treatment assignment.

Parameters:
treatmentAssignment - the treatment assignment

removeStudyOrganization

public void removeStudyOrganization(StudyOrganization so)

Removes the study organization.

Parameters:
so - the so

getStudySites

public java.util.List<StudySite> getStudySites()

Gets the study sites.

Returns:
the study sites

addStudySite

public void addStudySite(StudySite studySite)

Adds the study site.

Parameters:
studySite - the study site

removeStudySite

public void removeStudySite(StudySite studySite)

Removes the study site.

Parameters:
studySite - the study site

addStudyFundingSponsor

public void addStudyFundingSponsor(StudyFundingSponsor studyFundingSponsor)

Adds the study funding sponsor.

Parameters:
studyFundingSponsor - the study funding sponsor

getStudyFundingSponsors

public java.util.List<StudyFundingSponsor> getStudyFundingSponsors()

Gets the study funding sponsors.

Returns:
the study funding sponsors

getPrimaryFundingSponsor

public StudyFundingSponsor getPrimaryFundingSponsor()

Gets the primary funding sponsor.

Returns:
the primary funding sponsor

getPrimaryFundingSponsorOrganization

public Organization getPrimaryFundingSponsorOrganization()

Gets the primary funding sponsor organization.

Returns:
the primary funding sponsor organization

setPrimaryFundingSponsorOrganization

public void setPrimaryFundingSponsorOrganization(Organization org)

Sets the primary funding sponsor organization.

Parameters:
org - the new primary funding sponsor organization

getPrimaryIdentifier

public Identifier getPrimaryIdentifier()

Will return the primary identifier associated to this study.

Specified by:
getPrimaryIdentifier in interface IdentifiableByAssignedIdentifers
Overrides:
getPrimaryIdentifier in class AbstractIdentifiableDomainObject

Returns:
the primary identifier

addStudyAgent

public void addStudyAgent(StudyAgent studyAgent)

Adds the study agent.

Parameters:
studyAgent - the study agent

addCtepStudyDisease

public void addCtepStudyDisease(CtepStudyDisease ctepStudyDisease)

Adds the ctep study disease.

Parameters:
ctepStudyDisease - the ctep study disease

addMeddraStudyDisease

public void addMeddraStudyDisease(MeddraStudyDisease meddraStudyDisease)

Adds the meddra study disease.

Parameters:
meddraStudyDisease - the meddra study disease

addStudyCondition

public void addStudyCondition(StudyCondition studyCondition)

Adds the study condition.

Parameters:
studyCondition - the study condition

getStudyCoordinatingCenters

public java.util.List<StudyCoordinatingCenter> getStudyCoordinatingCenters()

Gets the study coordinating centers.

Returns:
the study coordinating centers

getStudyCoordinatingCenter

public StudyCoordinatingCenter getStudyCoordinatingCenter()

Gets the study coordinating center.

Returns:
the study coordinating center

getOrganizationAssignedIdentifier

public OrganizationAssignedIdentifier getOrganizationAssignedIdentifier()

Gets the organization assigned identifier.

Returns:
the organization assigned identifier

getNciAssignedIdentifier

public OrganizationAssignedIdentifier getNciAssignedIdentifier()

Gets the nci assigned identifier.

Returns:
the nci assigned identifier

getFundingSponsorIdentifier

public OrganizationAssignedIdentifier getFundingSponsorIdentifier()

Gets the funding sponsor identifier.

Returns:
the funding sponsor identifier

getCoordinatingCenterIdentifier

public OrganizationAssignedIdentifier getCoordinatingCenterIdentifier()

Gets the coordinating center identifier.

Returns:
the coordinating center identifier

getFundingSponsorIdentifierValue

public java.lang.String getFundingSponsorIdentifierValue()

Gets the funding sponsor identifier value.

Returns:
the funding sponsor identifier value

getCoordinatingCenterIdentifierValue

public java.lang.String getCoordinatingCenterIdentifierValue()

Gets the coordinating center identifier value.

Returns:
the coordinating center identifier value

getIdentifierContaining

public java.lang.String getIdentifierContaining(java.lang.String text)

Gets the identifier containing.

Parameters:
text - the text

Returns:
the identifier containing

setOrganizationAssignedIdentifier

public void setOrganizationAssignedIdentifier(OrganizationAssignedIdentifier organizationAssignedIdentifier)

Sets the organization assigned identifier.

Parameters:
organizationAssignedIdentifier - the new organization assigned identifier

getStudyAgents

@UniqueObjectInCollection(message="Duplicates found in Study Agents list")
public java.util.List<StudyAgent> getStudyAgents()

Gets the study agents.

Returns:
the study agents

setStudyAgents

public void setStudyAgents(java.util.List<StudyAgent> studyAgents)

Sets the study agents.

Parameters:
studyAgents - the new study agents

getStudyDevices

public java.util.List<StudyDevice> getStudyDevices()

Gets the study devices.

Returns:
the study devices

setStudyDevices

public void setStudyDevices(java.util.List<StudyDevice> studyDevices)

Sets the study devices.

Parameters:
studyDevices - the new study devices

addStudyDevice

public void addStudyDevice(StudyDevice sd)

Adds the study device.

Parameters:
sd - the sd

getOtherInterventions

public java.util.List<OtherIntervention> getOtherInterventions()

Gets the other interventions.

Returns:
the other interventions

addOtherIntervention

public void addOtherIntervention(OtherIntervention oi)

Adds the other intervention.

Parameters:
oi - the oi

setOtherInterventions

public void setOtherInterventions(java.util.List<OtherIntervention> otherInterventions)

Sets the other interventions.

Parameters:
otherInterventions - the new other interventions

getActiveStudyAgents

public java.util.List<StudyAgent> getActiveStudyAgents()

Will return the StudyAgents that are not retired.

Returns:
the active study agents

getActiveStudyDevices

public java.util.List<StudyDevice> getActiveStudyDevices()

Will return the StudyDevices that are not retired.

Returns:
the active study devices

getActiveOtherInterventions

public java.util.List<OtherIntervention> getActiveOtherInterventions()

Gets the active other interventions.

Returns:
the active other interventions

getActiveStudyRadiations

public java.util.List<OtherIntervention> getActiveStudyRadiations()

Will return the StudyDevices that are not retired.

Returns:
the active study radiations

getActiveStudySurgeries

public java.util.List<OtherIntervention> getActiveStudySurgeries()

Will return the StudyDevices that are not retired.

Returns:
the active study surgeries

getActiveStudySites

public java.util.List<StudySite> getActiveStudySites()

Will return the StudySites that are not retired.

Returns:
the active study sites

getActiveStudyOrganizations

public java.util.List<StudyOrganization> getActiveStudyOrganizations()

Will return the StudyOrganizations that are not retired.

Returns:
the active study organizations

getActiveTreatmentAssignments

public java.util.List<TreatmentAssignment> getActiveTreatmentAssignments()

Will return the TreatmentAssignments that are not retired.

Returns:
the active treatment assignments

getActiveStudyDiseases

public java.util.List<? extends AbstractStudyDisease<? extends gov.nih.nci.cabig.ctms.domain.DomainObject>> getActiveStudyDiseases()

Will return the AbstractStudyDiseases that are not retired.

Returns:
the active study diseases

hasTherapyOfType

public boolean hasTherapyOfType(StudyTherapyType therapyType)

Checks for therapy of type.

Parameters:
therapyType - the therapy type

Returns:
true, if successful

removeTherapiesOfType

@Deprecated
public void removeTherapiesOfType(StudyTherapyType therapyType)

Deprecated.

Will remove all the StudyTherapy of the specific StudyTherapyType.

Parameters:
therapyType - the therapy type

isSurgeryPresent

public boolean isSurgeryPresent()

Checks if is surgery present.

Returns:
true, if is surgery present

isDevicePresent

public boolean isDevicePresent()

Checks if is device present.

Returns:
true, if is device present

isRadiationPresent

public boolean isRadiationPresent()

Checks if is radiation present.

Returns:
true, if is radiation present

isBehavioralPresent

public boolean isBehavioralPresent()

Checks if is behavioral present.

Returns:
true, if is behavioral present

isDrugAdministrationPresent

public boolean isDrugAdministrationPresent()

Checks if is drug administration present.

Returns:
true, if is drug administration present

getCtcVersion

@Deprecated
public Ctc getCtcVersion()

Deprecated.

Gets the ctc version.

Returns:
the ctc version

setCtcVersion

@Deprecated
public void setCtcVersion(Ctc ctcVersion)

Deprecated.

Sets the ctc version.

Parameters:
ctcVersion - the new ctc version

getDiseaseTerminology

public DiseaseTerminology getDiseaseTerminology()

Gets the disease terminology.

Returns:
the disease terminology

setDiseaseTerminology

public void setDiseaseTerminology(DiseaseTerminology diseaseTerminology)

Sets the disease terminology.

Parameters:
diseaseTerminology - the new disease terminology

getAeTerminology

public AeTerminology getAeTerminology()

Gets the ae terminology.

Returns:
the ae terminology

setAeTerminology

public void setAeTerminology(AeTerminology aeTerminology)

Sets the ae terminology.

Parameters:
aeTerminology - the new ae terminology

getIdentifiers

public java.util.List<Identifier> getIdentifiers()

Description copied from class: AbstractIdentifiableDomainObject

Subclasses will need to override this method to attach an appropriate JoinColumn annotation.

Specified by:
getIdentifiers in interface IdentifiableByAssignedIdentifers
Overrides:
getIdentifiers in class AbstractIdentifiableDomainObject

Returns:
the identifiers

setIdentifiers

public void setIdentifiers(java.util.List<Identifier> identifiers)

Description copied from interface: IdentifiableByAssignedIdentifers

Sets the identifiers.

Specified by:
setIdentifiers in interface IdentifiableByAssignedIdentifers
Overrides:
setIdentifiers in class AbstractIdentifiableDomainObject

Parameters:
identifiers - the new identifiers

getIdentifiersLazy

@UniqueObjectInCollection(message="Duplicates found in Identifiers list")
public java.util.List<Identifier> getIdentifiersLazy()

Gets the identifiers lazy.

Returns:
the identifiers lazy

setIdentifiersLazy

public void setIdentifiersLazy(java.util.List<Identifier> identifiers)

Sets the identifiers lazy.

Parameters:
identifiers - the new identifiers lazy

getStudyAgentsInternal

public java.util.List<StudyAgent> getStudyAgentsInternal()

Gets the study agents internal.

Returns:
the study agents internal

setStudyAgentsInternal

public void setStudyAgentsInternal(java.util.List<StudyAgent> studyAgents)

Sets the study agents internal.

Parameters:
studyAgents - the new study agents internal

getCtepStudyDiseases

@UniqueObjectInCollection(message="Duplicates found in CtepStudyDiseases list")
public java.util.List<CtepStudyDisease> getCtepStudyDiseases()

Gets the ctep study diseases.

Returns:
the ctep study diseases

getActiveCtepStudyDiseases

public java.util.List<CtepStudyDisease> getActiveCtepStudyDiseases()

Gets the active ctep study diseases.

Returns:
the active ctep study diseases

setCtepStudyDiseases

public void setCtepStudyDiseases(java.util.List<CtepStudyDisease> ctepStudyDiseases)

Sets the ctep study diseases.

Parameters:
ctepStudyDiseases - the new ctep study diseases

getMeddraStudyDiseases

@UniqueObjectInCollection(message="Duplicates found in MeddraStudyDiseases list")
public java.util.List<MeddraStudyDisease> getMeddraStudyDiseases()

Gets the meddra study diseases.

Returns:
the meddra study diseases

getActiveMeddraStudyDiseases

public java.util.List<MeddraStudyDisease> getActiveMeddraStudyDiseases()

Gets the active meddra study diseases.

Returns:
the active meddra study diseases

setMeddraStudyDiseases

public void setMeddraStudyDiseases(java.util.List<MeddraStudyDisease> meddraStudyDiseases)

Sets the meddra study diseases.

Parameters:
meddraStudyDiseases - the new meddra study diseases

getBlindedIndicator

public java.lang.Boolean getBlindedIndicator()

Gets the blinded indicator.

Returns:
the blinded indicator

setBlindedIndicator

public void setBlindedIndicator(java.lang.Boolean blindedIndicator)

Sets the blinded indicator.

Parameters:
blindedIndicator - the new blinded indicator

getMultiInstitutionIndicator

@Deprecated
public java.lang.Boolean getMultiInstitutionIndicator()

Deprecated.

Gets the multi institution indicator.

Returns:
the multi institution indicator

setMultiInstitutionIndicator

@Deprecated
public void setMultiInstitutionIndicator(java.lang.Boolean multiInstitutionIndicator)

Deprecated.

Sets the multi institution indicator.

Parameters:
multiInstitutionIndicator - the new multi institution indicator

getRandomizedIndicator

public java.lang.Boolean getRandomizedIndicator()

Gets the randomized indicator.

Returns:
the randomized indicator

setRandomizedIndicator

public void setRandomizedIndicator(java.lang.Boolean randomizedIndicator)

Sets the randomized indicator.

Parameters:
randomizedIndicator - the new randomized indicator

getDescription

@Deprecated
public java.lang.String getDescription()

Deprecated.

Gets the description.

Returns:
the description

setDescription

@Deprecated
public void setDescription(java.lang.String descriptionText)

Deprecated.

Sets the description.

Parameters:
descriptionText - the new description

getDiseaseCode

public java.lang.String getDiseaseCode()

Gets the disease code.

Returns:
the disease code

setDiseaseCode

public void setDiseaseCode(java.lang.String diseaseCode)

Sets the disease code.

Parameters:
diseaseCode - the new disease code

getLongTitle

@Deprecated
public java.lang.String getLongTitle()

Deprecated.

Gets the long title.

Returns:
the long title

setLongTitle

@Deprecated
public void setLongTitle(java.lang.String longTitleText)

Deprecated.

Sets the long title.

Parameters:
longTitleText - the new long title

getMonitorCode

public java.lang.String getMonitorCode()

Gets the monitor code.

Returns:
the monitor code

setMonitorCode

public void setMonitorCode(java.lang.String monitorCode)

Sets the monitor code.

Parameters:
monitorCode - the new monitor code

getPhaseCode

public java.lang.String getPhaseCode()

Gets the phase code.

Returns:
the phase code

setPhaseCode

public void setPhaseCode(java.lang.String phaseCode)

Sets the phase code.

Parameters:
phaseCode - the new phase code

getPrecis

@Deprecated
public java.lang.String getPrecis()

Deprecated.

Gets the precis.

Returns:
the precis

setPrecis

@Deprecated
public void setPrecis(java.lang.String precisText)

Deprecated.

Sets the precis.

Parameters:
precisText - the new precis

getShortTitle

public java.lang.String getShortTitle()

Gets the short title.

Returns:
the short title

setShortTitle

public void setShortTitle(java.lang.String shortTitleText)

Sets the short title.

Parameters:
shortTitleText - the new short title

getStatus

@Deprecated
public java.lang.String getStatus()

Deprecated.

Gets the status.

Returns:
the status

setStatus

@Deprecated
public void setStatus(java.lang.String status)

Deprecated.

Sets the status.

Parameters:
status - the new status

getTargetAccrualNumber

public java.lang.Integer getTargetAccrualNumber()

Gets the target accrual number.

Returns:
the target accrual number

setTargetAccrualNumber

public void setTargetAccrualNumber(java.lang.Integer targetAccrualNumber)

Sets the target accrual number.

Parameters:
targetAccrualNumber - the new target accrual number

getExternalId

public java.lang.String getExternalId()

Gets the external id.

Returns:
the external id

setExternalId

public void setExternalId(java.lang.String externalId)

Sets the external id.

Parameters:
externalId - the new external id

getStudyOrganizations

@UniqueObjectInCollection(message="Duplicates found in StudyOrganizations list")
public java.util.List<StudyOrganization> getStudyOrganizations()

Gets the study organizations.

Returns:
the study organizations

setStudyOrganizations

public void setStudyOrganizations(java.util.List<StudyOrganization> studyOrganizations)

Sets the study organizations.

Parameters:
studyOrganizations - the new study organizations

getTreatmentAssignmentsInternal

public java.util.List<TreatmentAssignment> getTreatmentAssignmentsInternal()

Gets the treatment assignments internal.

Returns:
the treatment assignments internal

setTreatmentAssignmentsInternal

public void setTreatmentAssignmentsInternal(java.util.List<TreatmentAssignment> treatmentAssignments)

Sets the treatment assignments internal.

Parameters:
treatmentAssignments - the new treatment assignments internal

getTreatmentAssignments

@UniqueObjectInCollection(message="Duplicates found in TreatmentAssignments list")
public java.util.List<TreatmentAssignment> getTreatmentAssignments()

Gets the treatment assignments.

Returns:
the treatment assignments

setTreatmentAssignments

public void setTreatmentAssignments(java.util.List<TreatmentAssignment> treatmentAssignments)

Sets the treatment assignments.

Parameters:
treatmentAssignments - the new treatment assignments

getPrimarySponsorCode

public java.lang.String getPrimarySponsorCode()

Gets the primary sponsor code.

Returns:
the primary sponsor code

getLoadStatus

public java.lang.Integer getLoadStatus()

Gets the load status.

Returns:
the load status

setLoadStatus

public void setLoadStatus(java.lang.Integer loadStatus)

Sets the load status.

Parameters:
loadStatus - the new load status

setPrimarySponsorCode

public void setPrimarySponsorCode(java.lang.String sponsorCode)

Sets the primary sponsor code.

Parameters:
sponsorCode - the new primary sponsor code

getStudyTherapies

@Deprecated
public java.util.List<StudyTherapy> getStudyTherapies()

Deprecated.

Gets the study therapies.

Returns:
the study therapies

addStudyTherapy

@Deprecated
public void addStudyTherapy(StudyTherapy studyTherapy)

Deprecated.

Adds the study therapy.

Parameters:
studyTherapy - the study therapy

removeIdentifier

public void removeIdentifier(Identifier identifier)

Removes the identifier.

Parameters:
identifier - the identifier

getStudyTherapy

@Deprecated
public StudyTherapy getStudyTherapy(StudyTherapyType studyTherapyType)

Deprecated.

Gets the study therapy.

Parameters:
studyTherapyType - the study therapy type

Returns:
the study therapy

getSystemAssignedIdentifiers

public java.util.List<SystemAssignedIdentifier> getSystemAssignedIdentifiers()

Gets the system assigned identifiers.

Returns:
the system assigned identifiers

getOrganizationAssignedIdentifiers

public java.util.List<OrganizationAssignedIdentifier> getOrganizationAssignedIdentifiers()

Gets the organization assigned identifiers.

Returns:
the organization assigned identifiers

getCoordinatingCenter

public CoordinatingCenter getCoordinatingCenter()

Gets the coordinating center.

Returns:
the coordinating center

getFundingSponsor

public FundingSponsor getFundingSponsor()

Gets the funding sponsor.

Returns:
the funding sponsor

setCoordinatingCenter

public void setCoordinatingCenter(CoordinatingCenter coordinatingCenter)

Sets the coordinating center.

Parameters:
coordinatingCenter - the new coordinating center

setFundingSponsor

public void setFundingSponsor(FundingSponsor fundingSponsor)

Sets the funding sponsor.

Parameters:
fundingSponsor - the new funding sponsor

getAdeersReporting

@Deprecated
public java.lang.Boolean getAdeersReporting()

Deprecated.

Gets the adeers reporting.

Returns:
the adeers reporting

setAdeersReporting

@Deprecated
public void setAdeersReporting(java.lang.Boolean adeersSubmission)

Deprecated.

Sets the adeers reporting.

Parameters:
adeersSubmission - the new adeers reporting

getDesign

@Deprecated
public Design getDesign()

Deprecated.

Gets the design.

Returns:
the design

setDesign

@Deprecated
public void setDesign(Design design)

Deprecated.

Sets the design.

Parameters:
design - the new design

getReportFormats

@Deprecated
public java.util.List<ReportFormat> getReportFormats()

Deprecated.

Gets the report formats.

Returns:
the report formats

setReportFormats

@Deprecated
public void setReportFormats(java.util.List<ReportFormat> reportFormats)

Deprecated.

Sets the report formats.

Parameters:
reportFormats - the new report formats

addReportFormat

@Deprecated
public void addReportFormat(ReportFormat reportFormat)

Deprecated.

Adds the report format.

Parameters:
reportFormat - the report format

addReportFormatType

@Deprecated
public void addReportFormatType(ReportFormatType reportFormatType)

Deprecated.

Adds the report format type.

Parameters:
reportFormatType - the report format type

getReportFormat

@Deprecated
public ReportFormat getReportFormat(ReportFormatType reportFormatType)

Deprecated.

Gets the report format.

Parameters:
reportFormatType - the report format type

Returns:
the report format

updateReportFormats

@Deprecated
public void updateReportFormats(java.lang.Boolean selected,
                                           ReportFormatType type)

Deprecated.

Update report formats.

Parameters:
selected - the selected
type - the type

getAdeersPDFType

public java.lang.Boolean getAdeersPDFType()

Gets the adeers pdf type.

Returns:
the adeers pdf type

setAdeersPDFType

@Deprecated
public void setAdeersPDFType(java.lang.Boolean value)

Deprecated.

Sets the adeers pdf type.

Parameters:
value - the new adeers pdf type

getCaaersXMLType

@Deprecated
public java.lang.Boolean getCaaersXMLType()

Deprecated.

Gets the caaers xml type.

Returns:
the caaers xml type

setCaaersXMLType

@Deprecated
public void setCaaersXMLType(java.lang.Boolean value)

Deprecated.

Sets the caaers xml type.

Parameters:
value - the new caaers xml type

getCiomsPDFType

@Deprecated
public java.lang.Boolean getCiomsPDFType()

Deprecated.

Gets the cioms pdf type.

Returns:
the cioms pdf type

setCiomsPDFType

@Deprecated
public void setCiomsPDFType(java.lang.Boolean value)

Deprecated.

Sets the cioms pdf type.

Parameters:
value - the new cioms pdf type

getCiomsSaePDFType

@Deprecated
public java.lang.Boolean getCiomsSaePDFType()

Deprecated.

Gets the cioms sae pdf type.

Returns:
the cioms sae pdf type

setCiomsSaePDFType

@Deprecated
public void setCiomsSaePDFType(java.lang.Boolean value)

Deprecated.

Sets the cioms sae pdf type.

Parameters:
value - the new cioms sae pdf type

getDcpSAEPDFType

@Deprecated
public java.lang.Boolean getDcpSAEPDFType()

Deprecated.

Gets the dcp saepdf type.

Returns:
the dcp saepdf type

setDcpSAEPDFType

@Deprecated
public void setDcpSAEPDFType(java.lang.Boolean dcpSAEPDFType)

Deprecated.

Sets the dcp saepdf type.

Parameters:
dcpSAEPDFType - the new dcp saepdf type

getMedwatchPDFType

@Deprecated
public java.lang.Boolean getMedwatchPDFType()

Deprecated.

Gets the medwatch pdf type.

Returns:
the medwatch pdf type

setMedwatchPDFType

@Deprecated
public void setMedwatchPDFType(java.lang.Boolean medwatchPDFType)

Deprecated.

Sets the medwatch pdf type.

Parameters:
medwatchPDFType - the new medwatch pdf type

addStudyTherapy

public void addStudyTherapy(StudyTherapyType studyTherapyType)

Adds the study therapy.

Parameters:
studyTherapyType - the study therapy type

findEmailAddressByRole

public java.util.List<java.lang.String> findEmailAddressByRole(java.lang.String roleName)

This method will find the email address of people associated with the role.

Parameters:
roleName - the role name

Returns:
the list

getEpochs

public java.util.List<Epoch> getEpochs()

Gets the epochs.

Returns:
the epochs

setEpochs

public void setEpochs(java.util.List<Epoch> epochs)

Sets the epochs.

Parameters:
epochs - the new epochs

addEpoch

public boolean addEpoch(Epoch epoch)

Adds the epoch.

Parameters:
epoch - the epoch

Returns:
true, if successful

removeEpoch

public boolean removeEpoch(Epoch epoch)

Removes the epoch.

Parameters:
epoch - the epoch

Returns:
true, if successful

getActiveEpochs

public java.util.List<Epoch> getActiveEpochs()

This method will list all the Epochs that are not retired.

Returns:
the active epochs

getTermCode

public java.lang.Integer getTermCode()

Gets the term code.

Returns:
the term code

setTermCode

public void setTermCode(java.lang.Integer ignore)

Sets the term code.

Parameters:
ignore - the new term code

containsSolicitedAE

public boolean containsSolicitedAE(java.lang.Integer termID)

Contains solicited ae.

Parameters:
termID - the term id

Returns:
true, if successful

getCtcCategories

public java.util.List<CtcCategory> getCtcCategories()

Gets the ctc categories.

Returns:
the ctc categories

setCtcCategories

public void setCtcCategories(java.util.List<CtcCategory> ctcCategories)

Sets the ctc categories.

Parameters:
ctcCategories - the new ctc categories

getOtherMeddra

public MeddraVersion getOtherMeddra()

Gets the other meddra.

Returns:
the other meddra

setOtherMeddra

public void setOtherMeddra(MeddraVersion otherMeddra)

Sets the other meddra.

Parameters:
otherMeddra - the new other meddra

getStudyConditions

@UniqueObjectInCollection(message="Duplicate - Same condition is associated to the study more than ones")
public java.util.List<StudyCondition> getStudyConditions()

Gets the study conditions.

Returns:
the study conditions

getActiveStudyConditions

public java.util.List<StudyCondition> getActiveStudyConditions()

Gets the active study conditions.

Returns:
the active study conditions

setStudyConditions

public void setStudyConditions(java.util.List<StudyCondition> studyConditions)

Sets the study conditions.

Parameters:
studyConditions - the new study conditions

getExpectedAECtcTerms

public java.util.List<ExpectedAECtcTerm> getExpectedAECtcTerms()

Gets the expected ae ctc terms.

Returns:
the expected ae ctc terms

setExpectedAECtcTerms

public void setExpectedAECtcTerms(java.util.List<ExpectedAECtcTerm> expectedAECTCTerms)

Sets the expected ae ctc terms.

Parameters:
expectedAECTCTerms - the new expected ae ctc terms

addExpectedAECtcTerm

public void addExpectedAECtcTerm(ExpectedAECtcTerm expectedAECtcTerm)

Adds the expected ae ctc term.

Parameters:
expectedAECtcTerm - the expected ae ctc term

getExpectedAEMeddraLowLevelTerms

@UniqueObjectInCollection(message="Duplicate - Same term is associated to the study more than once")
public java.util.List<ExpectedAEMeddraLowLevelTerm> getExpectedAEMeddraLowLevelTerms()

Gets the expected ae meddra low level terms.

Returns:
the expected ae meddra low level terms

setExpectedAEMeddraLowLevelTerms

public void setExpectedAEMeddraLowLevelTerms(java.util.List<ExpectedAEMeddraLowLevelTerm> expectedAEMeddraTerms)

Sets the expected ae meddra low level terms.

Parameters:
expectedAEMeddraTerms - the new expected ae meddra low level terms

addExpectedAEMeddraLowLevelTerm

public void addExpectedAEMeddraLowLevelTerm(ExpectedAEMeddraLowLevelTerm expectedAEMeddraLowLevelTerm)

Adds the expected ae meddra low level term.

Parameters:
expectedAEMeddraLowLevelTerm - the expected ae meddra low level term

getDataEntryStatus

public java.lang.Boolean getDataEntryStatus()

Gets the data entry status.

Returns:
the data entry status

setDataEntryStatus

public void setDataEntryStatus(java.lang.Boolean dataEntryStatus)

Sets the data entry status.

Parameters:
dataEntryStatus - the new data entry status

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

isExpectedAdverseEventTerm

public boolean isExpectedAdverseEventTerm(gov.nih.nci.cabig.ctms.domain.DomainObject aeTerm)

This method checks against the ASAEL, and tells whether the AE term is
 expected.

Parameters:
aeTerm - the ae term

Returns:
true , if expected term, false otherwise.

checkExpectedAEUniqueness

public AbstractExpectedAE checkExpectedAEUniqueness()

Check expected ae uniqueness.

Returns:
the abstract expected ae

getUniqueStudyOrganizations

public java.util.List<StudyOrganization> getUniqueStudyOrganizations()

Gets the unique study organizations.

Returns:
the unique study organizations

synchronizeExpectedAEs

public void synchronizeExpectedAEs()

Synchronize expected a es.

getVerbatimFirst

public java.lang.Boolean getVerbatimFirst()

Gets the verbatim first.

Returns:
the verbatim first

setVerbatimFirst

public void setVerbatimFirst(java.lang.Boolean verbatimFirst)

Sets the verbatim first.

Parameters:
verbatimFirst - the new verbatim first

getOtherTreatmentAssignment

public java.lang.String getOtherTreatmentAssignment()

Gets the other treatment assignment.

Returns:
the other treatment assignment

setOtherTreatmentAssignment

public void setOtherTreatmentAssignment(java.lang.String otherTreatmentAssignment)

Sets the other treatment assignment.

Parameters:
otherTreatmentAssignment - the new other treatment assignment

getStudyPurpose

public java.lang.String getStudyPurpose()

setStudyPurpose

public void setStudyPurpose(java.lang.String studyPurpose)

      Overview
      Package
    Class
      Use
      Tree
      Deprecated
      Index
      Help

 PREV CLASS
 NEXT CLASS

  FRAMES
 NO FRAMES

  All Classes

  SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD


text:
// Package offers contains code that manages Mesos offers.
package offers // import "k8s.io/kubernetes/contrib/mesos/pkg/offers"

redpajama_set_name: RedPajamaGithub


text:
<?xml version="1" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:animateLayoutChanges="true">

    <View
        android:id="@+id/radicals_actionbar_header"
        android:layout_width="match_parent"
        android:layout_height="48dp"
        android:background="@color/apptheme_actionbar" />

    <ViewFlipper
        android:id="@+id/radicals_list_flipper"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:animateLayoutChanges="true"
        android:inAnimation="@anim/abc_fade_in"
        android:outAnimation="@anim/abc_fade_out">

        <ProgressBar
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center" />

        <ViewFlipper
            android:id="@+id/radicals_message_flipper"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:animateLayoutChanges="true"
            android:inAnimation="@anim/abc_fade_in"
            android:outAnimation="@anim/abc_fade_out"
            android:paddingBottom="2dp">

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:animateLayoutChanges="true">

                <com.tonicartos.widget.stickygridheaders.StickyGridHeadersGridView
                    android:id="@+id/radicals_grid"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:clipToPadding="false"
                    android:columnWidth="100dp"
                    android:drawSelectorOnTop="true"
                    android:fadingEdge="none"
                    android:fastScrollEnabled="true"
                    android:horizontalSpacing="1dp"
                    android:listSelector="@drawable/selector_background_neutral_grid_item"
                    android:numColumns="auto_fit"
                    android:overScrollMode="never"
                    android:scrollbarStyle="outsideOverlay"
                    android:stretchMode="columnWidth"
                    android:verticalSpacing="1dp" />
            </RelativeLayout>

            <android.support.v4.widget.SwipeRefreshLayout
                android:id="@+id/radicals_message_swipe_refresh"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginTop="48dp">

                <ScrollView
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">

                    <LinearLayout
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:orientation="vertical">

                        <ImageView
                            android:id="@+id/radicals_message_icon"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_gravity="center_horizontal"
                            android:layout_marginTop="16dp" />

                        <TextView
                            android:id="@+id/radicals_message_title"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_gravity="center_horizontal"
                            android:layout_marginBottom="8dp"
                            android:textAppearance="@android:style/TextAppearance.Medium"
                            android:textColor="@color/text_gray" />

                        <TextView
                            android:id="@+id/radicals_message_summary"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_gravity="center_horizontal"
                            android:layout_marginBottom="8dp"
                            android:layout_marginLeft="16dp"
                            android:layout_marginRight="16dp"
                            android:textColor="@color/text_gray" />
                    </LinearLayout>
                </ScrollView>
            </android.support.v4.widget.SwipeRefreshLayout>
        </ViewFlipper>
    </ViewFlipper>

    <View
        android:layout_width="match_parent"
        android:layout_height="3dp"
        android:layout_below="@+id/radicals_actionbar_header"
        android:background="@drawable/gradient_actionbar" />
</RelativeLayout>


text:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
    xmlns:mvc="http://www.springframework.org/schema/mvc"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
       http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd">

    <context:annotation-config />
    <context:component-scan base-package="org.motechproject.nms.region" />

    <mvc:annotation-driven />

    <bean id="moduleRegistrationData" class="org.motechproject.osgi.web.ModuleRegistrationData">
        <constructor-arg name="moduleName" value="region" />
        <constructor-arg name="i18n">
            <map>
                <entry key="messages" value="../region/resources/messages/" />
            </map>
        </constructor-arg>
    </bean>

    <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
        <property name="maxUploadSize" value="10000000"/>
    </bean>

</beans>


text:
module ProductAnalytics
  class Tracker
    # The file is located in the /public directory
    URL = Gitlab.config.gitlab.url + '/-/sp.js'

    # The collector URL minus protocol and /i
    COLLECTOR_URL = Gitlab.config.gitlab.url.sub(/\Ahttps?\:\/\//, '') + '/-/collector'

    class << self
      include Gitlab::Utils::StrongMemoize

      def event(category, action, label: nil, property: nil, value: nil, context: nil)
        return unless enabled?

        snowplow.track_struct_event(category, action, label, property, value, context, (Time.now.to_f * 1000).to_i)
      end

      private

      def enabled?
        Gitlab::CurrentSettings.usage_ping_enabled?
      end

      def project_id
        Gitlab::CurrentSettings.self_monitoring_project_id
      end

      def snowplow
        strong_memoize(:snowplow) do
          SnowplowTracker::Tracker.new(
            SnowplowTracker::AsyncEmitter.new(COLLECTOR_URL, protocol: Gitlab.config.gitlab.protocol),
            SnowplowTracker::Subject.new,
            Gitlab::Tracking::SNOWPLOW_NAMESPACE,
            project_id.to_s
          )
        end
      end
    end
  end
end


text:
/// <reference path="../plugins/semantic.js" />
/// <reference path="../lib/jquery.js" />

//13595043224

$(document).ready(function () {
    var
        btnLogin = $(".login-btn"),
        inputUser = $("#username"),
        inputPwd = $("#password"),
        inputs = $(".login-box input");

    var localUser,
        localPwd;

    localUser = localStorage.getItem("userName");
    localPwd = localStorage.getItem("passWord");

    inputUser.val(localUser);
    inputPwd.val(localPwd);

    //Show input tips
    inputs.each(function (index, element) {
        $(element)
            .on("change input propertychange", function () {
                $(this).parent(".ui.input").removeClass("error")
                       .parent("#login-box").children(".ui.error.message").remove();
                btnLogin.removeClass("disabled");
            })
            .on("blur", function () {
                var
                    $this = $(this),
                    value = $this.val();

                if (value === "") {
                    $this.focus().parent(".ui.input").addClass("error");
                    btnLogin.addClass("disabled");
                }
                else {
                    $this.parent(".ui.input").removeClass("error");
                }
            });
    });

    btnLogin.on("click", function () {
        var
            username = inputUser.val(),
            pwd = inputPwd.val();

        var isRemeber = $("#login-remeber").checked;

        var loginBox = $("#login-box");

        var $this = $(this);

        $this.addClass("loading");

        if (username !== "" && pwd !== "") {
            var request = $.ajax({
                type: "POST",
                async: true,
                url: "WebService.asmx/VerifyUser",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                data: JSON.stringify({
                    "userName": username,
                    "userPwd": pwd
                }),
            });

            request.done(function (data) {
                var result;
                result = data.d;

                if (result != 1) {
                    Message.addErrorMsg(loginBox, "用户名或密码不正确")
                } else {
                    localStorage.setItem("userName", username);
                    localStorage.setItem("passWord", pwd);

                    sessionStorage.UserName = username;
                    sessionStorage.UserPwd = pwd;

                    window.location.assign("Default.aspx");
                }

                $this.removeClass("loading")

            });

            request.fail(function (jqXHR, textStatus) {
                console.log("Search requirement Request failed: " + textStatus);
            });
        }

    })
})


text:
'use strict';

angular.module('suitApp.parts')

.factory('PartsService', ['TipoInvolucroService',
                          'TampaInvolucroService',
                          'TipoComponenteService',
                          'ContatosComponenteService',
                          'TensaoResistenciaService',
                          'CorComponenteService',
                          'EspecialService',
                          function(TipoInvolucroService,
                                   TampaInvolucroService,
                                   TipoComponenteService,
                                   ContatosComponenteService,
                                   TensaoResistenciaService,
                                   CorComponenteService,
                                   EspecialService){
  var self = this;

  self.isrr = [];

  self.componente1 = {};
  self.componente2 = {};
  self.componente3 = {};

  self.createComponente1 = function() {
    self.componente1 = self.createPart();
  }

  self.createComponente2 = function() {
    self.componente2 = self.createPart();
  }

  self.createComponente3 = function() {
    self.componente3 = self.createPart();
  }

  self.involucroOk = function() {
    return (Object.keys(TipoInvolucroService.get()).length > 0
        && Object.keys(TampaInvolucroService.get()).length > 0);
  }

  self.createPart = function() {
    return {
      tipoComponente: TipoComponenteService.get(),
      contatosComponente: ContatosComponenteService.get(),
      tensaoResistencia: TensaoResistenciaService.get(),
      cor: CorComponenteService.get()
    }
  }

  return {
    getIsrr: function() {
      return {
        tipoInvolucro: TipoInvolucroService.get(),
        tampaInvolucro: TampaInvolucroService.get(),
        componente1 : self.componente1,
        componente2 : self.componente2,
        componente3 : self.componente3,
        especial: EspecialService.get()
      };
    },
    createComponente1: function() {
      self.createComponente1();
      return self.componente1;
    },
    createComponente2: function() {
      self.createComponente2();
      return self.componente2;
    },
    createComponente3: function() {
      self.createComponente3();
      return self.componente3;
    },

    involucroOk: self.involucroOk
  };
}]);


text:
angular.module("umbraco")
    .controller("WebBlocks.ContextMenuDialogCtrl",
    function ($scope, appState, eventsService, assetsService, dialogService) {
        var dialogOptions = $scope.dialogOptions;
        $scope.model = dialogOptions.modelData;

        $scope.triggerAction = function (event) {
            var eventResponse = {
                event: event,
                eventData: $scope.model.eventData
            };
            $scope.submit(eventResponse);
        };
    });


text:
<?php

/**
 * This code was generated by
 * \ / _    _  _|   _  _
 * | (_)\/(_)(_|\/| |(/_  v1.0.0
 * /       /
 */

namespace Twilio\Rest\Api\V2010\Account\Call;

use Twilio\Deserialize;
use Twilio\Exceptions\TwilioException;
use Twilio\InstanceResource;
use Twilio\Options;
use Twilio\Values;
use Twilio\Version;

/**
 * @property string $accountSid
 * @property string $apiVersion
 * @property string $callSid
 * @property string $conferenceSid
 * @property \DateTime $dateCreated
 * @property \DateTime $dateUpdated
 * @property \DateTime $startTime
 * @property string $duration
 * @property string $sid
 * @property string $price
 * @property string $uri
 * @property array $encryptionDetails
 * @property string $priceUnit
 * @property string $status
 * @property int $channels
 * @property string $source
 * @property int $errorCode
 */
class RecordingInstance extends InstanceResource {
    /**
     * Initialize the RecordingInstance
     *
     * @param \Twilio\Version $version Version that contains the resource
     * @param mixed[] $payload The response payload
     * @param string $accountSid The SID of the Account that created the resource
     * @param string $callSid The SID of the Call the resource is associated with
     * @param string $sid The unique string that identifies the resource
     * @return \Twilio\Rest\Api\V2010\Account\Call\RecordingInstance
     */
    public function __construct(Version $version, array $payload, $accountSid, $callSid, $sid = null) {
        parent::__construct($version);

        // Marshaled Properties
        $this->properties = array(
            'accountSid' => Values::array_get($payload, 'account_sid'),
            'apiVersion' => Values::array_get($payload, 'api_version'),
            'callSid' => Values::array_get($payload, 'call_sid'),
            'conferenceSid' => Values::array_get($payload, 'conference_sid'),
            'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
            'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
            'startTime' => Deserialize::dateTime(Values::array_get($payload, 'start_time')),
            'duration' => Values::array_get($payload, 'duration'),
            'sid' => Values::array_get($payload, 'sid'),
            'price' => Values::array_get($payload, 'price'),
            'uri' => Values::array_get($payload, 'uri'),
            'encryptionDetails' => Values::array_get($payload, 'encryption_details'),
            'priceUnit' => Values::array_get($payload, 'price_unit'),
            'status' => Values::array_get($payload, 'status'),
            'channels' => Values::array_get($payload, 'channels'),
            'source' => Values::array_get($payload, 'source'),
            'errorCode' => Values::array_get($payload, 'error_code'),
        );

        $this->solution = array(
            'accountSid' => $accountSid,
            'callSid' => $callSid,
            'sid' => $sid ?: $this->properties['sid'],
        );
    }

    /**
     * Generate an instance context for the instance, the context is capable of
     * performing various actions.  All instance actions are proxied to the context
     *
     * @return \Twilio\Rest\Api\V2010\Account\Call\RecordingContext Context for
     *                                                              this
     *                                                              RecordingInstance
     */
    protected function proxy() {
        if (!$this->context) {
            $this->context = new RecordingContext(
                $this->version,
                $this->solution['accountSid'],
                $this->solution['callSid'],
                $this->solution['sid']
            );
        }

        return $this->context;
    }

    /**
     * Update the RecordingInstance
     *
     * @param string $status The new status of the recording
     * @param array|Options $options Optional Arguments
     * @return RecordingInstance Updated RecordingInstance
     * @throws TwilioException When an HTTP error occurs.
     */
    public function update($status, $options = array()) {
        return $this->proxy()->update($status, $options);
    }

    /**
     * Fetch a RecordingInstance
     *
     * @return RecordingInstance Fetched RecordingInstance
     * @throws TwilioException When an HTTP error occurs.
     */
    public function fetch() {
        return $this->proxy()->fetch();
    }

    /**
     * Deletes the RecordingInstance
     *
     * @return boolean True if delete succeeds, false otherwise
     * @throws TwilioException When an HTTP error occurs.
     */
    public function delete() {
        return $this->proxy()->delete();
    }

    /**
     * Magic getter to access properties
     *
     * @param string $name Property to access
     * @return mixed The requested property
     * @throws TwilioException For unknown properties
     */
    public function __get($name) {
        if (\array_key_exists($name, $this->properties)) {
            return $this->properties[$name];
        }

        if (\property_exists($this, '_' . $name)) {
            $method = 'get' . \ucfirst($name);
            return $this->$method();
        }

        throw new TwilioException('Unknown property: ' . $name);
    }

    /**
     * Provide a friendly representation
     *
     * @return string Machine friendly representation
     */
    public function __toString() {
        $context = array();
        foreach ($this->solution as $key => $value) {
            $context[] = "$key=$value";
        }
        return '[Twilio.Api.V2010.RecordingInstance ' . \implode(' ', $context) . ']';
    }
}


text:
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width initial-scale=1" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">

  <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
  <meta name="description" content="{{ site.description }}">
  <meta name="author" content="{{ site.author.name }}">
  <meta name="HandheldFriendly" content="True">
  <meta name="MobileOptimized" content="320">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

  <meta name="twitter:card" content="summary">
  <meta name="twitter:title" content="{{ site.title }}">
  <meta name="twitter:description" content="{{ site.description }}">

  <meta property="og:type" content="article">
  <meta property="og:title" content="{{ site.title }}">
  <meta property="og:description" content="{{ site.description }}">
  <link rel="shortcut icon" href="{{ site.baseurl }}/images/favicons/favicon.ico">
  <link rel="manifest" href="{{ "images/favicons/manifest.json" | prepend: site.baseurl }}">

  <meta name="msapplication-TileColor" content="#ffc40d">
  <meta name="msapplication-TileImage" content="{{ "images/favicons/mstile-144x144.png" | prepend: site.baseurl }}">
  <meta name="theme-color" content="#ffffff">

  <link rel="stylesheet" href="{{ "css/main.css" | prepend: site.baseurl }}">
  <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
  <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ site.baseurl }}feed.xml">
</head>


text:
import Vue from 'vue'

// Mixins
import Activatable from '../'

// Utilities
import {
  mount,
  MountOptions,
  Wrapper,
} from '@vue/test-utils'
import toHaveBeenWarnedInit from '../../../../test/util/to-have-been-warned'

describe('activatable.ts', () => {
  const Mock = Activatable.extend({
    data: () => ({
      isActive: false,
    }),
    render: h => h('div'),
  })
  type Instance = InstanceType<typeof Mock>
  let vm: InstanceType<typeof Vue>
  let mountFunction: (options?: MountOptions<Instance>) => Wrapper<Instance>

  beforeEach(() => {
    vm = new Vue()

    mountFunction = (options = {} as MountOptions<Instance>): Wrapper<Instance> => {
      return mount(Mock, options)
    }
  })

  toHaveBeenWarnedInit()

  it('should render activator slot with listeners', () => {
    const wrapper = mountFunction({
      scopedSlots: {
        activator: props => vm.$createElement('button', props),
      },
      render (h) {
        return h('div', [this.genActivator()])
      },
    })

    expect(wrapper.html()).toMatchSnapshot()
    expect(wrapper.vm.isActive).toBeFalsy()

    wrapper.find('button').trigger('click')

    expect(wrapper.vm.isActive).toBeTruthy()
  })

  it('should pass value to the activator slot', () => {
    const wrapper = mountFunction({
      scopedSlots: {
        activator: scope => vm.$createElement('button', {
          on: {
            click () {
              scope.value = !scope.value
            },
          },
        }, [String(scope.value)]),
      },
      render (h) {
        return h('div', [this.genActivator()])
      },
    })

    expect(wrapper.find('button').text()).toBe('false')

    wrapper.find('button').trigger('click')

    expect(wrapper.find('button').text()).toBe('true')
  })

  it('should render activator slot with hover', async () => {
    const runDelay = jest.fn()

    const wrapper = mountFunction({
      propsData: {
        openOnHover: true,
      },
      scopedSlots: {
        activator: props => vm.$createElement('button', props),
      },
      render (h) {
        return h('div', [this.genActivator()])
      },
      methods: {
        runDelay,
      },
    })

    expect(wrapper.html()).toMatchSnapshot()

    const btn = wrapper.find('button')

    btn.trigger('mouseenter')
    expect(runDelay).toHaveBeenLastCalledWith('open')

    btn.trigger('mouseleave')
    expect(runDelay).toHaveBeenLastCalledWith('close')
  })

  it('should warn when activator hasn\'t got a scope', () => {
    mountFunction({
      slots: {
        activator: '

',
      },
      scopedSlots: {
        activator: '

',
      },
    })

    expect(`The activator slot must be bound, try '<template v-slot:activator="{ on }"><v-btn v-on="on">'`).toHaveBeenWarned()
  })

  it('should bind listeners to custom activator', async () => {
    const el = document.createElement('button')
    el.id = 'foobar'
    document.body.appendChild(el)

    const wrapper = mountFunction({
      propsData: {
        activator: '#foobar',
      },
    })

    await wrapper.vm.$nextTick()

    expect(wrapper.vm.isActive).toBe(false)
    el.dispatchEvent(new Event('click'))
    expect(wrapper.vm.isActive).toBe(true)

    wrapper.setProps({ openOnHover: true, value: false })

    await wrapper.vm.$nextTick()

    expect(wrapper.vm.isActive).toBe(false)
    el.dispatchEvent(new Event('mouseenter'))

    await new Promise(resolve => setTimeout(resolve, wrapper.vm.openDelay))

    expect(wrapper.vm.isActive).toBe(true)

    el.dispatchEvent(new Event('mouseleave'))
    await new Promise(resolve => setTimeout(resolve, wrapper.vm.leaveDelay))

    expect(wrapper.vm.isActive).toBe(false)

    document.body.removeChild(el)
  })

  it('should remove listeners on custom activator', async () => {
    const el = document.createElement('button')
    el.id = 'foobar'
    document.body.appendChild(el)

    const wrapper = mountFunction({
      propsData: {
        activator: '#foobar',
      },
    })

    await wrapper.vm.$nextTick()

    expect(wrapper.vm.listeners).not.toEqual({})

    wrapper.destroy()

    await wrapper.vm.$nextTick()

    expect(wrapper.vm.listeners).toEqual({})

    document.body.removeChild(el)
  })
})


text:
ScalaJS.is.scala_scalajs_js_String = (function(obj) {
  return (!(!((obj && obj.$classData) && obj.$classData.ancestors.scala_scalajs_js_String)))
});
ScalaJS.as.scala_scalajs_js_String = (function(obj) {
  if ((ScalaJS.is.scala_scalajs_js_String(obj) || (obj === null))) {
    return obj
  } else {
    ScalaJS.throwClassCastException(obj, "scala.scalajs.js.String")
  }
});
ScalaJS.isArrayOf.scala_scalajs_js_String = (function(obj, depth) {
  return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.scala_scalajs_js_String)))
});
ScalaJS.asArrayOf.scala_scalajs_js_String = (function(obj, depth) {
  if ((ScalaJS.isArrayOf.scala_scalajs_js_String(obj, depth) || (obj === null))) {
    return obj
  } else {
    ScalaJS.throwArrayCastException(obj, "Lscala.scalajs.js.String;", depth)
  }
});
ScalaJS.data.scala_scalajs_js_String = new ScalaJS.ClassTypeData({
  scala_scalajs_js_String: 0
}, true, "scala.scalajs.js.String", undefined, {
  scala_scalajs_js_String: 1,
  scala_scalajs_js_Any: 1,
  java_lang_Object: 1
});
//@ sourceMappingURL=String.js.map


text:
package tectonicus.blockTypes;

import tectonicus.BlockContext;
import tectonicus.BlockType;
import tectonicus.BlockTypeRegistry;
import tectonicus.blockregistry.BlockModel;
import tectonicus.rasteriser.MeshUtil;
import tectonicus.raw.RawChunk;
import tectonicus.renderer.Geometry;

public class GlazedTerracotta implements BlockType
{
	private final String name;
	private final String stringId;

	public GlazedTerracotta(String name, String stringId)
	{
		this.name = name;
		this.stringId = stringId;
	}

	@Override
	public String getName()
	{
		return name;
	}

	@Override
	public boolean isSolid()
	{
		return true;
	}

	@Override
	public boolean isWater()
	{
		return false;
	}

	@Override
	public void addInteriorGeometry(int x, int y, int z, BlockContext world, BlockTypeRegistry registry, RawChunk rawChunk, Geometry geometry)
	{
		addEdgeGeometry(x, y, z, world, registry, rawChunk, geometry);
	}

	@Override
	public void addEdgeGeometry(int x, int y, int z, BlockContext world, BlockTypeRegistry registry, RawChunk chunk, Geometry geometry)
	{
		BlockModel model = world.getModelRegistry().getModel(stringId.replace("minecraft:", "block/"));
		final int data = chunk.getBlockData(x, y, z);
		MeshUtil.addBlock(world, chunk, x, y, z, model, geometry, 0, 90*data);
	}
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KPAttributes;
using System.ComponentModel;

namespace KPBO.Parameters
{
    /// <summary>
    /// <para>Authors: Juliano Tiago Rinaldi and
    /// Tiago Antonio Jacobi</para>
    /// </summary>
    public enum FrwParamEnum
    {
        [TypeDescription("FRW_REPORT_PAGE")]
        [TypeValue(typeof(String))]
        [DefaultValue(@"~/ReportFrw/ReportViewer.aspx")]
        FRW_REPORT_PAGE,

        [TypeDescription("FRW_DIR_PDF_REPORT")]
        [TypeValue(typeof(System.String))]
        [DefaultValue(@"\PDF\")]
        FRW_DIR_PDF_REPORT,

        [TypeDescription("FRW_NAMESPACE_ENUM_WINDOW")]
        [TypeValue(typeof(System.String))]
        [DefaultValue(@"SpecialistEnumerator.WindowEnum")]
        FRW_NAMESPACE_ENUM_WINDOW,

        [TypeDescription("FRW_ASSEMBLY_NAME_ENTITY")]
        [TypeValue(typeof(System.String))]
        [DefaultValue(@"SpecialistEntity")]
        FRW_ASSEMBLY_NAME_ENTITY,
    }
}


text:
<?php

namespace PhpDDD\Domain\Event\Bus;

use PhpDDD\Domain\Event\EventInterface;
use PhpDDD\Domain\Event\Listener\EventListenerCollection;
use PhpDDD\Domain\Event\Listener\EventListenerInterface;
use PhpDDD\Domain\Event\Listener\Locator\EventListenerLocatorInterface;

/**
 * Implementation of EventBusInterface.
 */
class EventBus implements EventBusInterface
{
    /**
     * @var EventListenerLocatorInterface
     */
    private $locator;

    /**
     * @param EventListenerLocatorInterface $locator
     */
    public function __construct(EventListenerLocatorInterface $locator)
    {
        $this->locator = $locator;
    }

    /**
     * {@inheritdoc}
     */
    public function publish(EventInterface $event)
    {
        $listeners = $this->locator->getEventListenersForEvent($event);

        return $this->handleListenersForEvent($event, $listeners);
    }

    /**
     * {@inheritdoc}
     */
    public function getRegisteredEventListeners()
    {
        return $this->locator->getRegisteredEventListeners();
    }

    /**
     * @param EventInterface                                   $event
     * @param EventListenerCollection|EventListenerInterface[] $listeners
     *
     * @return array
     */
    private function handleListenersForEvent(EventInterface $event, $listeners)
    {
        $return = array();

        foreach ($listeners as $listener) {
            $return[] = $listener->handle($event);
        }

        return $return;
    }
}


text:
require File.expand_path '../../test_helper', __dir__

# Test class for Sql Server Firewall Rule Model
class TestFirewallRule < Minitest::Test
  def setup
    @service = Fog::Sql::AzureRM.new(credentials)
    @firewall_rule = sql_server_firewall_rule(@service)
    @firewall_client = @service.instance_variable_get(:@sql_mgmt_client)
  end

  def test_model_methods
    methods = [
      :save,
      :destroy
    ]
    methods.each do |method|
      assert_respond_to @firewall_rule, method
    end
  end

  def test_model_attributes
    attributes = [
      :name,
      :id,
      :type,
      :resource_group,
      :location,
      :start_ip,
      :end_ip,
      :server_name
    ]
    attributes.each do |attribute|
      assert_respond_to @firewall_rule, attribute
    end
  end

  def test_save_method_response
    create_response = ApiStub::Models::Sql::SqlFirewallRule.create_firewall_rule(@firewall_client)
    @service.stub :create_or_update_firewall_rule, create_response do
      assert_instance_of Fog::Sql::AzureRM::FirewallRule, @firewall_rule.save
    end
  end

  def test_destroy_method_true_response
    @service.stub :delete_firewall_rule, true do
      assert @firewall_rule.destroy
    end
  end

  def test_destroy_method_false_response
    @service.stub :delete_firewall_rule, false do
      assert !@firewall_rule.destroy
    end
  end
end


text:
/*
    program to show the use of Malloc() function
*/
#include<stdio.h>
#include<stdlib.h>
main ()
{
    int *ptr;
    int no_els,no_bytes,i;

    printf("Enter the number of elements\n");
    scanf("%d",&no_els);

    //calculate the number of bytes required
    no_bytes=no_els*sizeof(int);

    //Allocate the memory
    ptr=(int*)malloc(no_bytes);

    if(ptr==NULL)
    {
        printf("cannot allocate the memory\n");
    }
    else
    {
        //enter the numbers
        for(i=0;i<no_els;i++)
        {
            printf("enter element %d: ",i);
            scanf("%d",ptr+i);
        }
        //display the numbers entered into the new memory block
        for(i=0;i<no_els;i++)
        {
            printf("element %d is %d\n",i,*(ptr+i));
        }
        //free to allocated memory
        free(ptr);
    }//end else
    getchar();
    getchar();
}//end main()


text:
package com.adc.idea.common.utils.spring;

import java.io.IOException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.io.DefaultResourceLoader;
import org.springframework.stereotype.Service;

/**
 * 以静态变量保存Spring ApplicationContext, 可在任何代码任何地方任何时候中取出ApplicaitonContext.
 *
 * @author calvin
 */
@Service
@Lazy(false)
public class SpringContextHolder implements ApplicationContextAware, DisposableBean {

	private static ApplicationContext applicationContext = null;

	private static Logger logger = LoggerFactory.getLogger(SpringContextHolder.class);

	/**
	 * 实现ApplicationContextAware接口, 注入Context到静态变量中.
	 */
	public void setApplicationContext(ApplicationContext applicationContext) {
		logger.debug("注入ApplicationContext到SpringContextHolder:" + applicationContext);

		if (SpringContextHolder.applicationContext != null) {
			logger.warn("SpringContextHolder中的ApplicationContext被覆盖, 原有ApplicationContext为:"
					+ SpringContextHolder.applicationContext);
		}

		SpringContextHolder.applicationContext = applicationContext; //NOSONAR
	}

	/**
	 * 获取系统根目录
	 */
	public static String getRootRealPath(){
		String rootRealPath = "";
		try {
			rootRealPath = getApplicationContext().getResource("").getFile().getAbsolutePath();
		} catch (IOException e) {
			logger.warn("获取系统根目录失败");
		}
		return rootRealPath;
	}

	/**
	 * 获取资源根目录
	 */
	public static String getResourceRootRealPath(){
		String rootRealPath = "";
		try {
			rootRealPath = new DefaultResourceLoader().getResource("").getFile().getAbsolutePath();
		} catch (IOException e) {
			logger.warn("获取资源根目录失败");
		}
		return rootRealPath;
	}

	/**
	 * 实现DisposableBean接口,在Context关闭时清理静态变量.
	 */
	@Override
	public void destroy() throws Exception {
		SpringContextHolder.clear();
	}

	/**
	 * 取得存储在静态变量中的ApplicationContext.
	 */
	public static ApplicationContext getApplicationContext() {
		assertContextInjected();
		return applicationContext;
	}

	/**
	 * 从静态变量applicationContext中取得Bean, 自动转型为所赋值对象的类型.
	 */
	@SuppressWarnings("unchecked")
	public static <T> T getBean(String name) {
		assertContextInjected();
		return (T) applicationContext.getBean(name);
	}

	/**
	 * 从静态变量applicationContext中取得Bean, 自动转型为所赋值对象的类型.
	 */
	public static <T> T getBean(Class<T> requiredType) {
		assertContextInjected();
		return applicationContext.getBean(requiredType);
	}

	/**
	 * 清除SpringContextHolder中的ApplicationContext为Null.
	 */
	public static void clear() {
		logger.debug("清除SpringContextHolder中的ApplicationContext:" + applicationContext);
		applicationContext = null;
	}

	/**
	 * 检查ApplicationContext不为空.
	 */
	private static void assertContextInjected() {
		if (applicationContext == null) {
			throw new IllegalStateException("applicaitonContext未注入,请在applicationContext.xml中定义SpringContextHolder");
		}
	}
}


text:
  <a href="<?php echo site_url('persone/cerca_persone'); ?>" class="list-group-item">

Cerca persone

Cerca persone all'interno del database utilizzando criteri di ricerca.

  <a href="<?php echo site_url('persone/nuova_persona'); ?>" class="list-group-item">

Nuova persona

Inserisci nel database un una nuova persona esterna o confratello.

  <a href="<?php echo site_url('persone/ricerca_centenari'); ?>" class="list-group-item">

Ricerca centenari

Ricerca le persone che quest'anno compiono 100 anni.

  <a href="<?php echo site_url('persone/ricerca_cinquanta_prof'); ?>" class="list-group-item">

Ricerca persone con 50 anni di professione

Ricerca persone che quest'anno compiono 50 anni di professione.

  <a href="<?php echo site_url('incarichi'); ?>" class="list-group-item">

Gestisci incarichi

Visualizza gli incarichi diponibili e i rispettivi occupanti.

  <a href="<?php echo site_url('persone/gestisci_parenti'); ?>" class="list-group-item" style="text-decoration: line-through;">

Gestisci raporti famigliari

Visualizza i rapporti famigliari esistenti per poterli modificare.


text:
<?php

/**
 * @var yii\web\View $this
 */

echo \gromver\platform\core\modules\menu\widgets\MenuItemRoutes::widget();


text:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="colorPrimary">#3F51B5</color>
    <color name="colorPrimaryDark">#303F9F</color>
    <color name="colorAccent">#FF4081</color>
    <color name="lineSeparatorColor">#A1A1A1</color>
    <color name="colorNearestCourse">#BCE2BF</color>
    <color name="colorTransparent">#00000000</color>
    <color name="colorTextAbout">#505050</color>
    <color name="colorExamDay">#ffaeae</color>
</resources>


text:
namespace codingfreaks.AspNetIdentity.Data.Core
{
    using System;
    using System.Diagnostics;
    using System.Linq;

    public static class ContextUtil
    {
        #region properties

        public static IdentityEntities Context
        {
            get
            {
                var context = new IdentityEntities();
                context.Configuration.LazyLoadingEnabled = true;
                context.Database.Log = msg => Trace.TraceInformation(msg);
                return context;
            }
        }

        #endregion
    }
}


text:
module Main where

import Control.Concurrent.Async
import Control.Monad
import Criterion
import Criterion.Main
import Data.ByteString.SuperBuffer
import qualified Data.ByteString.SuperBuffer.Pure as P
import Data.Int
import qualified Data.BufferBuilder as BB
import qualified Data.ByteString as BS
import qualified Data.ByteString.Builder as BSB
import qualified Data.ByteString.Lazy as BSL

main :: IO ()
main =
    defaultMain
    [ bgroup "main"
      [ mkGroup "small" 5000 4000
      , mkGroup "med" 500 40000
      , mkGroup "large" 50 400000
      ]
    ]

mkGroup :: String -> Int -> Int -> Benchmark
mkGroup name steps chunkSize =
    bgroup name $
    mkSizedGroup steps chunkSize bufName buildBuf
    ++ mkSizedGroup steps chunkSize bufNameT buildBufT
    ++ mkSizedGroup steps chunkSize bufNameP buildBufP
    ++ mkSizedGroup steps chunkSize bufNamePT buildBufPT
    ++ mkSizedGroup steps chunkSize bufBBName buildBufBB
    ++
    [ bench "bytestring builder" $ nfIO $ BS.reverse <$> buildBufBuilder steps chunkSize
    , bench "bytestring fromChunks" $ nfIO $ BS.reverse <$> buildBufChunks steps chunkSize
    , bench "bytestring concat" $ nfIO $ BS.reverse <$> buildBufConcat steps chunkSize
    ]
    where
      bufBBName is = "buffer-builder (init=" ++ show is ++ " bytes, trim=yes)"
      bufName is = "superbuffer (init=" ++ show is ++ " bytes)"
      bufNameT is = "superbuffer (init=" ++ show is ++ " bytes, threadsafe, 2 concurrent writes)"
      bufNameP is = "superbuffer (pure haskell, init=" ++ show is ++ " bytes)"
      bufNamePT is = "superbuffer (pure haskell, init=" ++ show is ++ " bytes, threadsafe, 2 concurrent writes)"

mkSizedGroup ::
    Int -> Int -> (Int64 -> String) -> (Int64 -> Int -> Int -> IO BS.ByteString) -> [Benchmark]
mkSizedGroup steps chunkSize bufName builder =
    [ bench (bufName iBufSize128) $ nfIO $ BS.reverse <$> builder iBufSize128 steps chunkSize
    , bench (bufName iBufSize) $ nfIO $ BS.reverse <$> builder iBufSize steps chunkSize
    , bench (bufName iBufSize2) $ nfIO $ BS.reverse <$> builder iBufSize2 steps chunkSize
    , bench (bufName iBufSize4) $ nfIO $ BS.reverse <$> builder iBufSize4 steps chunkSize
    , bench (bufName iBufSizeAll) $ nfIO $ BS.reverse <$> builder iBufSizeAll steps chunkSize
    ]
    where
      iBufSize128 = 128
      iBufSize = fromIntegral chunkSize
      iBufSize2 = 2 * fromIntegral chunkSize
      iBufSize4 = 4 * fromIntegral chunkSize
      iBufSizeAll = fromIntegral $ steps * chunkSize

mkChunk :: Int -> Int -> BS.ByteString
mkChunk step chunkSize =
    BS.replicate chunkSize (fromIntegral $ (step `mod` 100) + 50)
{-# INLINE mkChunk #-}

buildBuf :: Int64 -> Int -> Int -> IO BS.ByteString
buildBuf bufSize steps chunkSize =
    withBuffer bufSize $ \buf ->
    forM_ [0..steps] $ \step ->
    appendBuffer buf (mkChunk step chunkSize)

buildBufT :: Int64 -> Int -> Int -> IO BS.ByteString
buildBufT bufSize steps chunkSize =
    withBuffer bufSize $ \buf ->
    forM_ [0..(ceiling halfSteps)] $ \step ->
    concurrently_
       (appendBufferT buf (mkChunk step chunkSize))
       (appendBufferT buf (mkChunk step chunkSize))
    where
      halfSteps :: Double
      halfSteps = fromIntegral steps / 2.0

buildBufP :: Int64 -> Int -> Int -> IO BS.ByteString
buildBufP bufSize steps chunkSize =
    P.withBuffer (fromIntegral bufSize) $ \buf ->
    forM_ [0..steps] $ \step ->
    P.appendBuffer buf (mkChunk step chunkSize)

buildBufPT :: Int64 -> Int -> Int -> IO BS.ByteString
buildBufPT bufSize steps chunkSize =
    P.withBuffer (fromIntegral bufSize) $ \buf ->
    forM_ [0..(ceiling halfSteps)] $ \step ->
    concurrently_
       (P.appendBufferT buf (mkChunk step chunkSize))
       (P.appendBufferT buf (mkChunk step chunkSize))
    where
      halfSteps :: Double
      halfSteps = fromIntegral steps / 2.0

buildBufBB :: Int64 -> Int -> Int -> IO BS.ByteString
buildBufBB bufSize steps chunkSize =
    pure $ BB.runBufferBuilderWithOptions opts $
    forM_ [0..steps] $ \step ->
    BB.appendBS (mkChunk step chunkSize)
    where
      opts =
          BB.Options
          { BB.initialCapacity = fromIntegral bufSize
          , BB.trimFinalBuffer = True
          }

buildBufBuilder :: Int -> Int -> IO BS.ByteString
buildBufBuilder steps chunkSize =
    BSL.toStrict . BSB.toLazyByteString <$>
    foldM (\b a ->  pure $ b `mappend` BSB.byteString (mkChunk a chunkSize)) mempty [0..steps]

buildBufChunks :: Int -> Int -> IO BS.ByteString
buildBufChunks steps chunkSize =
    BSL.toStrict . BSL.fromChunks <$> (
    forM [0..steps] $ \step ->
            pure (mkChunk step chunkSize))

buildBufConcat :: Int -> Int -> IO BS.ByteString
buildBufConcat steps chunkSize =
    BS.concat <$> (
    forM [0..steps] $ \step ->
            pure (mkChunk step chunkSize))


text:
package com.github.dstaflund.geomemorial.ui.activity.about;

public interface AboutActivityView {
    void setContentView(int viewId);
}