diff options
Diffstat (limited to 'bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/AnalyzerContext.java')
-rw-r--r-- | bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/AnalyzerContext.java | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/AnalyzerContext.java b/bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/AnalyzerContext.java new file mode 100644 index 000000000..d2f53a6a8 --- /dev/null +++ b/bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/AnalyzerContext.java @@ -0,0 +1,79 @@ +/******************************************************************************* + * Copyright (c) 2002-2005 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM - Initial API and implementation + *******************************************************************************/ +package org.eclipse.wst.wsi.internal.core.analyzer; + +/** + * This class contains contextual information which is required by test assertions across all artifacts. + * + * @version 1.0.1 + * @author Peter Brittenham (peterbr@us.ibm.com) + */ +public class AnalyzerContext +{ + protected ServiceReference serviceReference = null; + protected CandidateInfo candidateInfo = null; + + /** + * Do not allow the usage of the null constructor. + */ + private AnalyzerContext() + { + } + + /** + * Create analyzer context with service reference. + * @param serviceReference a service reference. + */ + public AnalyzerContext(ServiceReference serviceReference) + { + this.serviceReference = serviceReference; + } + + /** + * Get service reference. + * @return service reference. + * @see #setServiceReference + */ + public ServiceReference getServiceReference() + { + return this.serviceReference; + } + + /** + * Set service reference. + * @param serviceReference a service reference. + * @see #getServiceReference + */ + public void setServiceReference(ServiceReference serviceReference) + { + this.serviceReference = serviceReference; + } + + /** + * Returns the candidateInfo. + * @return CandidateInfo. + * @see #setCandidateInfo + */ + public CandidateInfo getCandidateInfo() + { + return candidateInfo; + } + + /** + * Sets the candidateInfo. + * @param candidateInfo the candidateInfo to set. + * @see #getCandidateInfo + */ + public void setCandidateInfo(CandidateInfo candidateInfo) + { + this.candidateInfo = candidateInfo; + } +} |