org.eclipse.jst.jsf.common.util
Class JDTBeanPropertyWorkingCopy

java.lang.Object
  extended by org.eclipse.jst.jsf.common.util.JDTBeanProperty
      extended by org.eclipse.jst.jsf.common.util.JDTBeanPropertyWorkingCopy

public class JDTBeanPropertyWorkingCopy
extends JDTBeanProperty

A writable version of the JDTBeanProperty object This class may not be sub-classed by clients


Constructor Summary
JDTBeanPropertyWorkingCopy(org.eclipse.jdt.core.IType type)
          Constructor
 
Method Summary
 void addSetter(org.eclipse.jdt.core.IMethod setter)
           
 org.eclipse.jdt.core.IMethod getIsGetter()
           
 org.eclipse.jdt.core.IMethod getSetter()
          Not supported on working copy.
 void setGetter(org.eclipse.jdt.core.IMethod getter)
          Set the get accessor IMethod
 void setIsGetter(org.eclipse.jdt.core.IMethod isGetter)
           
 JDTBeanProperty toValueObject()
           
 
Methods inherited from class org.eclipse.jst.jsf.common.util.JDTBeanProperty
getArrayCount, getGetter, getType, getTypeParameterSignatures, getTypeSignature, getTypeSignature, isEnumType, isReadable, isWritable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDTBeanPropertyWorkingCopy

public JDTBeanPropertyWorkingCopy(org.eclipse.jdt.core.IType type)
Constructor

Parameters:
type -
Method Detail

toValueObject

public JDTBeanProperty toValueObject()
Returns:
the bean properties spawned from this working copy Normally, there is only one property in the array, however, since this working copy represents all properties with the same name, there could be multiple properties since setters can be overloaded by name and could result in zero or one readable properties plus zero or more write-only properties with the same name. I can't see anywhere in the spec that covers this boundary case

setGetter

public void setGetter(org.eclipse.jdt.core.IMethod getter)
Description copied from class: JDTBeanProperty
Set the get accessor IMethod

Parameters:
getter - -- may be null to indicate none

setIsGetter

public void setIsGetter(org.eclipse.jdt.core.IMethod isGetter)
Parameters:
isGetter -

addSetter

public void addSetter(org.eclipse.jdt.core.IMethod setter)
Parameters:
setter -

getSetter

public final org.eclipse.jdt.core.IMethod getSetter()
Not supported on working copy. This is synthetically generated on toValueObject()

Overrides:
getSetter in class JDTBeanProperty
Returns:
nothing; throws exception

getIsGetter

public org.eclipse.jdt.core.IMethod getIsGetter()
Returns:
the "is" getter method or null if not found