Author: akazakov
Date: 2007-07-03 09:18:36 -0400 (Tue, 03 Jul 2007)
New Revision: 2254
Added:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponentDeclaration.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamJavaComponentDeclaration.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamJavaSourceReference.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamPropertiesDeclaration.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamTextSourceReference.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamXmlComponentDeclaration.java
Removed:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamJavaClassSource.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamSource.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamTextSource.java
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/IBijectedAttribute.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/IRole.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamAnnotatedFactory.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponent.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponentMethod.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProperty.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamXmlFactory.java
Log:
http://jira.jboss.com/jira/browse/EXIN-216 Refactored Seam tools model.
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/IBijectedAttribute.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/IBijectedAttribute.java 2007-07-03
12:43:32 UTC (rev 2253)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/IBijectedAttribute.java 2007-07-03
13:18:36 UTC (rev 2254)
@@ -10,20 +10,13 @@
******************************************************************************/
package org.jboss.tools.seam.core;
-import org.eclipse.jdt.core.IMember;
-
/**
* @author Alexey Kazakov
*/
-public interface IBijectedAttribute extends ISeamSource, ISeamContextVariable {
+public interface IBijectedAttribute extends ISeamContextVariable,
ISeamJavaSourceReference {
/**
* @return type
*/
public BijectedAttributeType getType();
-
- /**
- * @return java source element
- */
- public IMember getJavaSource();
}
\ No newline at end of file
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/IRole.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/IRole.java 2007-07-03
12:43:32 UTC (rev 2253)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/IRole.java 2007-07-03
13:18:36 UTC (rev 2254)
@@ -13,6 +13,6 @@
/**
* @author Alexey Kazakov
*/
-public interface IRole extends ISeamJavaClassSource, ISeamTextSource,
ISeamContextVariable {
+public interface IRole extends ISeamJavaSourceReference, ISeamContextVariable {
}
\ No newline at end of file
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamAnnotatedFactory.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamAnnotatedFactory.java 2007-07-03
12:43:32 UTC (rev 2253)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamAnnotatedFactory.java 2007-07-03
13:18:36 UTC (rev 2254)
@@ -10,15 +10,9 @@
******************************************************************************/
package org.jboss.tools.seam.core;
-import org.eclipse.jdt.core.IMethod;
-
/**
* @author Alexey Kazakov
*/
-public interface ISeamAnnotatedFactory extends ISeamFactory, ISeamSource {
+public interface ISeamAnnotatedFactory extends ISeamFactory, ISeamJavaSourceReference {
- /**
- * @return source IMethod
- */
- public IMethod getSourceMethod();
}
\ No newline at end of file
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponent.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponent.java 2007-07-03
12:43:32 UTC (rev 2253)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponent.java 2007-07-03
13:18:36 UTC (rev 2254)
@@ -10,39 +10,34 @@
******************************************************************************/
package org.jboss.tools.seam.core;
-import java.util.Collection;
import java.util.List;
import java.util.Set;
+import org.jboss.tools.seam.core.IRole;
+import org.jboss.tools.seam.core.ISeamAnnotatedFactory;
+import org.jboss.tools.seam.core.ISeamComponentMethod;
+
public interface ISeamComponent extends ISeamContextVariable {
+ public ISeamJavaComponentDeclaration getJavaDeclaration();
+
+ public Set<ISeamXmlComponentDeclaration> getXmlDeclarations();
+
+ public Set<ISeamPropertiesDeclaration> getPropertiesDeclarations();
+
+ public Set<ISeamComponentDeclaration> getAllDeclarations();
+
/**
* @return qualified Class name of component
*/
public String getClassName();
/**
- * Sets qualified Class name of component
- * @param className
- */
- public void setClassName(String className);
-
- /**
* @return bijected attributes
*/
public Set<IBijectedAttribute> getBijectedAttributes();
/**
- * Adds bijected attribute
- */
- public void addBijectedAttribute(IBijectedAttribute attribute);
-
- /**
- * Removes bijected attribute
- */
- public void removeBijectedAttribute(IBijectedAttribute attribute);
-
- /**
* Returns bijected attributes by name
* @param name
* @return
@@ -57,91 +52,21 @@
public Set<IBijectedAttribute> getBijectedAttributesByType(BijectedAttributeType
type);
/**
- * Returns all properties from component.xml for that component.
- * @param propertyName
- * @return
- */
- public List<ISeamProperty> getProperties(String propertyName);
-
- /**
- * Returns first property with propertyName from component.xml for that component.
- * @param propertyName
- * @return
- */
- public ISeamProperty getProperty(String propertyName);
-
- /**
- * Returns properties by name from component.xml.
- * @param propertyName
- * @return
- */
- public Collection<ISeamProperty> getProperties();
-
- /**
- * Adds property to component.
- * @param property
- */
- public void addProperty(ISeamProperty property);
-
- /**
- * Removes property from component.
- * @param property
- */
- public void removeProperty(ISeamProperty property);
-
- /**
- * @return sources
- */
- public Set<ISeamSource> getSourceDeclarations();
-
- /**
- * @param source
- */
- public void addSourceDeclaration(ISeamSource source);
-
- /**
- * Removes source
- */
- public void removeSourceDeclaration(ISeamSource source);
-
- /**
* @return true if component marked as Stateful
*/
public boolean isStateful();
/**
- * Set true if component marked as Stateful
- */
- public void setStateful(boolean stateful);
-
- /**
* @return true if component marked as Entity
*/
public boolean isEntity();
/**
- * Set true if component marked as Entity
- */
- public void setEntity(boolean entity);
-
- /**
* @return roles of component
*/
public Set<IRole> getRoles();
/**
- * Adds role to component
- * @param role
- */
- public void addRole(IRole role);
-
- /**
- * Removes role from component
- * @param role
- */
- public void removeRole(IRole role);
-
- /**
* @return methods of component
*/
public Set<ISeamComponentMethod> getMethods();
@@ -153,31 +78,21 @@
public Set<ISeamComponentMethod> getMethodsByType(SeamComponentMethodType type);
/**
- * Adds method to component
- * @param method
- */
- public void addMethod(ISeamComponentMethod method);
-
- /**
- * Removes method from component
- * @param method
- */
- public void removeMethod(ISeamComponentMethod method);
-
- /**
* @return Factories methods of component
*/
public Set<ISeamAnnotatedFactory> getFactories();
/**
- * Adds factory method
- * @param factory
+ * Returns properties by name from component.xml.
+ * @param propertyName
+ * @return
*/
- public void addFactory(ISeamAnnotatedFactory factory);
+ public Set<ISeamProperty> getProperties();
/**
- * Remove factory method
- * @param factory
+ * Returns all properties from component.xml for that component.
+ * @param propertyName
+ * @return
*/
- public void removeFactory(ISeamAnnotatedFactory factory);
+ public List<ISeamProperty> getProperties(String propertyName);
}
\ No newline at end of file
Added:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponentDeclaration.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponentDeclaration.java
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponentDeclaration.java 2007-07-03
13:18:36 UTC (rev 2254)
@@ -0,0 +1,20 @@
+ /*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.core;
+
+/**
+ * @author Alexey Kazakov
+ *
+ */
+public interface ISeamComponentDeclaration {
+
+ public String getName();
+}
\ No newline at end of file
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponentMethod.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponentMethod.java 2007-07-03
12:43:32 UTC (rev 2253)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamComponentMethod.java 2007-07-03
13:18:36 UTC (rev 2254)
@@ -10,20 +10,13 @@
******************************************************************************/
package org.jboss.tools.seam.core;
-import org.eclipse.jdt.core.IMethod;
-
/**
* @author Alexey Kazakov
*/
-public interface ISeamComponentMethod extends ISeamSource {
+public interface ISeamComponentMethod extends ISeamJavaSourceReference {
/**
* @return method type
*/
public SeamComponentMethodType getType();
-
- /**
- * @return source IMethod
- */
- public IMethod getSourceMethod();
}
\ No newline at end of file
Deleted:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamJavaClassSource.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamJavaClassSource.java 2007-07-03
12:43:32 UTC (rev 2253)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamJavaClassSource.java 2007-07-03
13:18:36 UTC (rev 2254)
@@ -1,21 +0,0 @@
- /*******************************************************************************
- * Copyright (c) 2007 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is 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
- *
- * Contributor:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.seam.core;
-
-import org.eclipse.jdt.core.IType;
-
-/**
- * @author Alexey Kazakov
- */
-public interface ISeamJavaClassSource extends ISeamSource {
-
- public IType getSourceClass();
-}
\ No newline at end of file
Added:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamJavaComponentDeclaration.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamJavaComponentDeclaration.java
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamJavaComponentDeclaration.java 2007-07-03
13:18:36 UTC (rev 2254)
@@ -0,0 +1,125 @@
+ /*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.core;
+
+import java.util.Set;
+
+import org.jboss.tools.seam.core.IRole;
+import org.jboss.tools.seam.core.ISeamAnnotatedFactory;
+import org.jboss.tools.seam.core.ISeamComponentMethod;
+
+/**
+ * @author Alexey Kazakov
+ *
+ */
+public interface ISeamJavaComponentDeclaration extends ISeamComponentDeclaration {
+
+ /**
+ * @return bijected attributes
+ */
+ public Set<IBijectedAttribute> getBijectedAttributes();
+
+ /**
+ * Adds bijected attribute
+ */
+ public void addBijectedAttribute(IBijectedAttribute attribute);
+
+ /**
+ * Removes bijected attribute
+ */
+ public void removeBijectedAttribute(IBijectedAttribute attribute);
+
+ /**
+ * Returns bijected attributes by name
+ * @param name
+ * @return
+ */
+ public Set<IBijectedAttribute> getBijectedAttributesByName(String name);
+
+ /**
+ * Returns bijected attributes by type
+ * @param type
+ * @return
+ */
+ public Set<IBijectedAttribute> getBijectedAttributesByType(BijectedAttributeType
type);
+
+ /**
+ * @return true if component marked as Stateful
+ */
+ public boolean isStateful();
+
+ /**
+ * @return true if component marked as Entity
+ */
+ public boolean isEntity();
+
+ /**
+ * Set true if component marked as Entity
+ */
+ public void setEntity(boolean entity);
+
+ /**
+ * @return roles of component
+ */
+ public Set<IRole> getRoles();
+
+ /**
+ * Adds role to component
+ * @param role
+ */
+ public void addRole(IRole role);
+
+ /**
+ * Removes role from component
+ * @param role
+ */
+ public void removeRole(IRole role);
+
+ /**
+ * @return methods of component
+ */
+ public Set<ISeamComponentMethod> getMethods();
+
+ /**
+ * @param type
+ * @return return methods by type
+ */
+ public Set<ISeamComponentMethod> getMethodsByType(SeamComponentMethodType type);
+
+ /**
+ * Adds method to component
+ * @param method
+ */
+ public void addMethod(ISeamComponentMethod method);
+
+ /**
+ * Removes method from component
+ * @param method
+ */
+ public void removeMethod(ISeamComponentMethod method);
+
+ /**
+ * @return Factories methods of component
+ */
+ public Set<ISeamAnnotatedFactory> getFactories();
+
+ /**
+ * Adds factory method
+ * @param factory
+ */
+ public void addFactory(ISeamAnnotatedFactory factory);
+
+ /**
+ * Remove factory method
+ * @param factory
+ */
+ public void removeFactory(ISeamAnnotatedFactory factory);
+}
\ No newline at end of file
Added:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamJavaSourceReference.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamJavaSourceReference.java
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamJavaSourceReference.java 2007-07-03
13:18:36 UTC (rev 2254)
@@ -0,0 +1,21 @@
+ /*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.core;
+
+import org.eclipse.jdt.core.IMember;
+
+/**
+ * @author Alexey Kazakov
+ */
+public interface ISeamJavaSourceReference extends ISeamTextSourceReference {
+
+ public IMember getSourceMember();
+}
\ No newline at end of file
Added:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamPropertiesDeclaration.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamPropertiesDeclaration.java
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamPropertiesDeclaration.java 2007-07-03
13:18:36 UTC (rev 2254)
@@ -0,0 +1,54 @@
+ /*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.core;
+
+import java.util.List;
+import java.util.Set;
+
+/**
+ * @author Alexey Kazakov
+ *
+ */
+public interface ISeamPropertiesDeclaration extends ISeamComponentDeclaration {
+
+ /**
+ * Returns all properties from component.xml for that component.
+ * @param propertyName
+ * @return
+ */
+ public List<ISeamProperty> getProperties(String propertyName);
+
+ /**
+ * Returns first property with propertyName from component.xml for that component.
+ * @param propertyName
+ * @return
+ */
+ public ISeamProperty getProperty(String propertyName);
+
+ /**
+ * Returns properties by name from component.xml.
+ * @param propertyName
+ * @return
+ */
+ public Set<ISeamProperty> getProperties();
+
+ /**
+ * Adds property to component.
+ * @param property
+ */
+ public void addProperty(ISeamProperty property);
+
+ /**
+ * Removes property from component.
+ * @param property
+ */
+ public void removeProperty(ISeamProperty property);
+}
\ No newline at end of file
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProperty.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProperty.java 2007-07-03
12:43:32 UTC (rev 2253)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProperty.java 2007-07-03
13:18:36 UTC (rev 2254)
@@ -12,9 +12,8 @@
/**
* Property of Seam Component defined in Component.xml or Properties.xml
- * @param <T>
*/
-public interface ISeamProperty extends ISeamTextSource {
+public interface ISeamProperty extends ISeamTextSourceReference {
/**
* @return name of property
Deleted:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamSource.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamSource.java 2007-07-03
12:43:32 UTC (rev 2253)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamSource.java 2007-07-03
13:18:36 UTC (rev 2254)
@@ -1,19 +0,0 @@
- /*******************************************************************************
- * Copyright (c) 2007 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is 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
- *
- * Contributor:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.seam.core;
-
-/**
- * @author Alexey Kazakov
- * Represents source of ISeamModelObject
- */
-public interface ISeamSource {
-
-}
\ No newline at end of file
Deleted:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamTextSource.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamTextSource.java 2007-07-03
12:43:32 UTC (rev 2253)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamTextSource.java 2007-07-03
13:18:36 UTC (rev 2254)
@@ -1,23 +0,0 @@
- /*******************************************************************************
- * Copyright (c) 2007 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is 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
- *
- * Contributor:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.seam.core;
-
-import org.eclipse.core.resources.IResource;
-
-/**
- * @author Alexey Kazakov
- */
-public interface ISeamTextSource extends ISeamSource {
-
- public IResource getResource();
- public int getStartPosition();
- public int getLength();
-}
\ No newline at end of file
Added:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamTextSourceReference.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamTextSourceReference.java
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamTextSourceReference.java 2007-07-03
13:18:36 UTC (rev 2254)
@@ -0,0 +1,23 @@
+ /*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.core;
+
+import org.eclipse.core.resources.IResource;
+
+/**
+ * @author Alexey Kazakov
+ */
+public interface ISeamTextSourceReference {
+
+ public IResource getResource();
+ public int getStartPosition();
+ public int getLength();
+}
\ No newline at end of file
Added:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamXmlComponentDeclaration.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamXmlComponentDeclaration.java
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamXmlComponentDeclaration.java 2007-07-03
13:18:36 UTC (rev 2254)
@@ -0,0 +1,36 @@
+ /*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.core;
+
+/**
+ * @author Alexey Kazakov
+ *
+ */
+public interface ISeamXmlComponentDeclaration extends ISeamPropertiesDeclaration {
+
+ public ScopeType getScope();
+
+ public String getScopeAsString();
+
+ public String getClassName();
+
+ public String getJndiName();
+
+ public boolean isInstalled();
+
+ public boolean getInstalledAsString();
+
+ public String getPrecedence();
+
+ public boolean isAutoCreate();
+
+ public String getAutoCreateAsString();
+}
\ No newline at end of file
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamXmlFactory.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamXmlFactory.java 2007-07-03
12:43:32 UTC (rev 2253)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamXmlFactory.java 2007-07-03
13:18:36 UTC (rev 2254)
@@ -13,7 +13,7 @@
/**
* @author Alexey Kazakov
*/
-public interface ISeamXmlFactory extends ISeamFactory, ISeamTextSource {
+public interface ISeamXmlFactory extends ISeamFactory, ISeamTextSourceReference {
/**
* @return value