Class JavaTypePropertyDescriptor
java.lang.Object
java.beans.FeatureDescriptor
java.beans.PropertyDescriptor
com.streambase.sb.operator.parameter.SBPropertyDescriptor
com.streambase.sb.operator.parameter.JavaTypePropertyDescriptor
PropertyDescriptor for String properties that wish to provide a chooser to the user in order
to select a Java class or interface name in the current Studio project's Build Path. The use
of the chooser is optional, and Operators using this descriptor should make no assumptions
regarding the validity of the class name entered by the user.
Currently the chooser supports allowing the user to select one of:
- Classes
- Interfaces
- Since:
- 6.5
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumStudio will display a Java Type chooser dialog for theJavaTypePropertyDescriptor.TypeChoiceprovided to this property descriptor -
Field Summary
Fields inherited from class com.streambase.sb.operator.parameter.SBPropertyDescriptor
expressionInputPort, NOT_AN_EXPRESSION -
Constructor Summary
ConstructorsConstructorDescriptionJavaTypePropertyDescriptor(JavaTypePropertyDescriptor.TypeChoice type, PropertyDescriptor pd, Class<?> beanClass) Copy a property descriptor.JavaTypePropertyDescriptor(String propertyName, JavaTypePropertyDescriptor.TypeChoice type, Class<?> beanClass) JavaTypePropertyDescriptor(String propertyName, JavaTypePropertyDescriptor.TypeChoice type, Class<?> beanClass, String readMethodName, String writeMethodName) Construct a property descriptor with non-standard read/write method names. -
Method Summary
Methods inherited from class com.streambase.sb.operator.parameter.SBPropertyDescriptor
deprecated, description, displayName, getExpressionInputPort, getMaskDisplay, getMultiLine, getUIHints, isDeprecated, isExpression, isRequired, mask, migrateTo, multiline, optional, setDeprecated, setMaskStringDisplay, setMultiLine, setRequired, setUIHintsMethods inherited from class java.beans.PropertyDescriptor
createPropertyEditor, equals, getPropertyEditorClass, getPropertyType, getReadMethod, getWriteMethod, hashCode, isBound, isConstrained, setBound, setConstrained, setPropertyEditorClass, setReadMethod, setWriteMethodMethods inherited from class java.beans.FeatureDescriptor
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue, toString
-
Constructor Details
-
JavaTypePropertyDescriptor
public JavaTypePropertyDescriptor(String propertyName, JavaTypePropertyDescriptor.TypeChoice type, Class<?> beanClass) throws IntrospectionException - Parameters:
propertyName- the name of the propertytype- aJavaTypePropertyDescriptor.TypeChoiceto prompt the user forbeanClass- the operator class containing the property- Throws:
IntrospectionException- if introspection fails
-
JavaTypePropertyDescriptor
public JavaTypePropertyDescriptor(String propertyName, JavaTypePropertyDescriptor.TypeChoice type, Class<?> beanClass, String readMethodName, String writeMethodName) throws IntrospectionException Construct a property descriptor with non-standard read/write method names.- Parameters:
propertyName- the name of the propertytype- aJavaTypePropertyDescriptor.TypeChoiceto prompt the user forbeanClass- the operator class containing the propertyreadMethodName- the name of the method used to read the propertywriteMethodName- the name of the method used to write the property- Throws:
IntrospectionException- if introspection fails
-
JavaTypePropertyDescriptor
public JavaTypePropertyDescriptor(JavaTypePropertyDescriptor.TypeChoice type, PropertyDescriptor pd, Class<?> beanClass) throws IntrospectionException Copy a property descriptor.- Parameters:
type- aJavaTypePropertyDescriptor.TypeChoiceto prompt the user forpd- a property descriptor to copy frombeanClass- the operator class containing the property- Throws:
IntrospectionException- if introspection fails
-
-
Method Details
-
getType
- Returns:
- the
JavaTypePropertyDescriptor.TypeChoicefor this property descriptor
-