Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'json/bundles/org.eclipse.wst.json.core/src/org/eclipse/wst/json/core/internal/validation/core/NestedValidatorContext.java')
-rw-r--r--json/bundles/org.eclipse.wst.json.core/src/org/eclipse/wst/json/core/internal/validation/core/NestedValidatorContext.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/json/bundles/org.eclipse.wst.json.core/src/org/eclipse/wst/json/core/internal/validation/core/NestedValidatorContext.java b/json/bundles/org.eclipse.wst.json.core/src/org/eclipse/wst/json/core/internal/validation/core/NestedValidatorContext.java
new file mode 100644
index 0000000000..5df2b266dd
--- /dev/null
+++ b/json/bundles/org.eclipse.wst.json.core/src/org/eclipse/wst/json/core/internal/validation/core/NestedValidatorContext.java
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * Copyright (c) 2006, 2011 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 Corporation - initial API and implementation
+ * Angelo Zerr <angelo.zerr@gmail.com> - copied from org.eclipse.wst.xml.core.internal.validation.core.NestedValidatorContext
+ * modified in order to process JSON Objects.
+ *******************************************************************************/
+package org.eclipse.wst.json.core.internal.validation.core;
+
+import org.eclipse.core.resources.IProject;
+
+
+/**
+ * A context class for validators to be able to determine the context of
+ * given validation session. Currently this class is only used to identify
+ * the unique context.
+ */
+public class NestedValidatorContext
+{
+ private IProject fProject;
+
+ public void setProject(IProject project) {
+ fProject = project;
+ }
+
+ public IProject getProject() {
+ return fProject;
+ }
+}

Back to the top