Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wtp-dev] IDataModelProvider.getPropertyNames() changed


In an effort to improve the IDataModel API, IDataModelProvider.getPropertyNames() has changed its signature to return a Collection rather than a String [].  This change makes subclassing more straight forward.  Below is an example of the types of changes implementers need to make:

old code:
    public String[] getPropertyNames() {
        String[] props = new String[]{NESTED_MODEL_SERVER_TARGET, ADD_SERVER_TARGET, RUNTIME_TARGET_ID};
        return combineProperties(super.getPropertyNames(), props);
    }

new code:
        public Collection getPropertyNames() {
                Collection propertyNames = super.getPropertyNames();
                propertyNames.add(NESTED_MODEL_SERVER_TARGET);
                propertyNames.add(ADD_SERVER_TARGET);
                propertyNames.add(RUNTIME_TARGET_ID);
                return propertyNames;
        }

Thank you,

Jason A. Sholl
jsholl@xxxxxxxxxx
919-543-0011 (t/l 441-0011)

Back to the top