org.eclipse.xtend.shared.ui.core.metamodel.jdt.javabean
Class JdtJavaBeanTypeStrategy

java.lang.Object
  extended by org.eclipse.xtend.shared.ui.core.metamodel.jdt.javabean.JdtJavaBeanTypeStrategy
All Implemented Interfaces:
JdtTypeStrategy

public class JdtJavaBeanTypeStrategy
extends java.lang.Object
implements JdtTypeStrategy


Constructor Summary
JdtJavaBeanTypeStrategy(org.eclipse.jdt.core.IJavaProject project)
           
 
Method Summary
 java.lang.String getPropertiesInnerType(org.eclipse.jdt.core.IMethod method)
           
 org.eclipse.jdt.core.IType[] getSuperTypes(org.eclipse.jdt.core.IType type)
           
 java.lang.String getterToProperty(java.lang.String elementName)
           
 boolean isAssignable(org.eclipse.jdt.core.IType toAssigTo, org.eclipse.jdt.core.IType assignable)
           
 boolean isConstant(org.eclipse.jdt.core.IField field)
          Constants are fields that are Enumeration literals Accessible fields in Interfaces Class fields with modifier public final static
 boolean isGetter(org.eclipse.jdt.core.IMethod method)
           
 boolean isOperation(org.eclipse.jdt.core.IMethod method)
          Operations are non-static methods no Getter (property accessor) methods
 java.lang.String propertyName(org.eclipse.jdt.core.IField field)
           
 java.lang.String propertyName(org.eclipse.jdt.core.IMethod method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdtJavaBeanTypeStrategy

public JdtJavaBeanTypeStrategy(org.eclipse.jdt.core.IJavaProject project)
Method Detail

getSuperTypes

public org.eclipse.jdt.core.IType[] getSuperTypes(org.eclipse.jdt.core.IType type)
                                           throws org.eclipse.jdt.core.JavaModelException
Specified by:
getSuperTypes in interface JdtTypeStrategy
Throws:
org.eclipse.jdt.core.JavaModelException

isAssignable

public boolean isAssignable(org.eclipse.jdt.core.IType toAssigTo,
                            org.eclipse.jdt.core.IType assignable)
                     throws org.eclipse.jdt.core.JavaModelException
Specified by:
isAssignable in interface JdtTypeStrategy
Throws:
org.eclipse.jdt.core.JavaModelException

isGetter

public boolean isGetter(org.eclipse.jdt.core.IMethod method)
Specified by:
isGetter in interface JdtTypeStrategy

getterToProperty

public java.lang.String getterToProperty(java.lang.String elementName)

isConstant

public boolean isConstant(org.eclipse.jdt.core.IField field)
Constants are fields that are

Specified by:
isConstant in interface JdtTypeStrategy
Parameters:
field - The field to check
Returns:
true if the field represents a constant

isOperation

public boolean isOperation(org.eclipse.jdt.core.IMethod method)
Operations are

Specified by:
isOperation in interface JdtTypeStrategy

propertyName

public java.lang.String propertyName(org.eclipse.jdt.core.IMethod method)
Specified by:
propertyName in interface JdtTypeStrategy

getPropertiesInnerType

public java.lang.String getPropertiesInnerType(org.eclipse.jdt.core.IMethod method)
Specified by:
getPropertiesInnerType in interface JdtTypeStrategy

propertyName

public java.lang.String propertyName(org.eclipse.jdt.core.IField field)
Specified by:
propertyName in interface JdtTypeStrategy