beautypg.com

IBM WebSphere Adapters User Manual

Page 127

background image

Property getProperty(String propertyName)
Returns the property object for this property name.

Map getAnnotations(String source)
Returns the object-level annotations for this type.

You must pass

in the "source" of the annotations, which corresponds to the "source"
attribute of the "appinfo" tag of the XML Schema representing this
object.

Annotations will be returned as a Map, and this Map may contain

other maps if the annotation structure is nested.

Map getAnnotationsForOperation(String source, String operation)
Often operation-specific object metadata is needed. E.g for
Create operation there is a specific sequence of APIs that have to
be executed, this set could be different for Update and Delete operations.
This method returns

the metadata for a given operation name as a Map of

name - value pairs.

List getKeyProperties(String source)
Returns the list of key properties in this type.

Interface Type:

Type getContainingType()
Returns the type containing this property.

Object getDefault()
Returns the default value for this property.

String getName()
Returns the name of this property.

Class getPropertyClass()
Returns the Class represented by this property.

For example, if the

property is of String type, this method will return String.class.

WebSphere Adapter development overview

121