geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lin...@apache.org
Subject svn commit: r582932 [3/3] - in /geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.sources: ./ META-INF/ schema/ src/ src/org/ src/org/apache/ src/org/apache/geronimo/ src/org/apache/geronimo/devtools/ src/org/apache/geronimo/devtools...
Date Mon, 08 Oct 2007 18:50:56 GMT
Added: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.sources/src/org/apache/geronimo/devtools/j2g/sources/environment/VarContext.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.sources/src/org/apache/geronimo/devtools/j2g/sources/environment/VarContext.java?rev=582932&view=auto
==============================================================================
--- geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.sources/src/org/apache/geronimo/devtools/j2g/sources/environment/VarContext.java
(added)
+++ geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.sources/src/org/apache/geronimo/devtools/j2g/sources/environment/VarContext.java
Mon Oct  8 11:50:53 2007
@@ -0,0 +1,72 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.devtools.j2g.sources.environment;
+
+/**
+ * Class represents JNDI name, scope and correctness  presented by <code>javax.naming.Context</code>
variable.  
+ */
+public class VarContext
+{
+	/**
+	 * Correctness flag.
+	 */
+	private boolean valid;
+	
+	/**
+	 * Position ends of scope in a compilation unit there variable was declared. 
+	 */
+	private int areaEnd;
+	
+	/**
+	 * JNDI name which variable presents.
+	 */
+	private String jndiName;
+	
+	/**
+	 * Constructor.
+	 */
+	public VarContext(String jndiName, int end, boolean valid)
+	{
+		this.areaEnd = end;
+		this.valid = valid;
+		this.jndiName = jndiName;
+	}
+
+	/**
+	 * @return end of variable scope in a current compilation unit.
+	 */
+	public int getAreaEnd()
+	{
+		return areaEnd;
+	}
+
+	/**
+	 * @return <code>true</code> if variable is correct. 
+	 */
+	public boolean isValid()
+	{
+		return valid;
+	}
+
+	/**
+	 * @return JNDI name which presented by variable.
+	 */
+	public String getJNDIName()
+	{
+		return jndiName;
+	}
+}

Propchange: geronimo/devtools/j2g/trunk/plugins/org.apache.geronimo.devtools.j2g.sources/src/org/apache/geronimo/devtools/j2g/sources/environment/VarContext.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message