org.eclipse.jst.jsf.common.util
Class JDTBeanPropertyWorkingCopy
java.lang.Object
org.eclipse.jst.jsf.common.util.JDTBeanProperty
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
Methods inherited from class java.lang.Object
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
JDTBeanPropertyWorkingCopy
public JDTBeanPropertyWorkingCopy(IType type)
- Constructor
-
Parameters:
-
type
-
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(IMethod getter)
-
Description copied from class:
JDTBeanProperty
- Set the get accessor IMethod
-
-
-
Parameters:
-
getter
- -- may be null to indicate none
setIsGetter
public void setIsGetter(IMethod isGetter)
-
-
Parameters:
-
isGetter
-
addSetter
public void addSetter(IMethod setter)
-
-
Parameters:
-
setter
-
getSetter
public final IMethod getSetter()
- Not supported on working copy. This is synthetically generated
on toValueObject()
-
-
Overrides:
-
getSetter
in class
JDTBeanProperty
-
-
Returns:
- nothing; throws exception
getIsGetter
public IMethod getIsGetter()
-
-
Returns:
- the "is" getter method or null if not found