/** * A factory-type method for instantiating and initialising ExtensionProperty objects. * This is a helper method for subclasses, as it automatically provides the extension namespace. * The only additional information the caller must provide is the property name and its content. * The property name parameter must not be null. * * @throws NullPointerException if the <code>name</code> parameter is null. */ protected ExtensionProperty newExtensionProperty(String name, Object content) { return new GenericExtensionProperty(name, getNamespace(), content); } }
public ExtensionProperty[] getExtensionProperties() { int i, len; List properties = new Vector(); Collection compExtCtxs = fCompExtensionContexts.values(); Iterator it = compExtCtxs.iterator(); while(it.hasNext()) { BaseComponentExtensionContext compExtCtx = (BaseComponentExtensionContext)it.next(); ExtensionProperty[] extProps = compExtCtx.getProperties(); len = extProps.length; for(i=0; i<len; i++) { properties.add(extProps[i]); } } ExtensionProperty[] array = new ExtensionProperty[properties.size()]; properties.toArray(array); return array; }
public ExtensionProperty[] getExtensionProperties() { int i, len; List properties = new Vector(); Collection compExtCtxs = fCompExtensionContexts.values(); Iterator it = compExtCtxs.iterator(); while(it.hasNext()) { BaseComponentExtensionContext compExtCtx = (BaseComponentExtensionContext)it.next(); ExtensionProperty[] extProps = compExtCtx.getProperties(); len = extProps.length; for(i=0; i<len; i++) { properties.add(extProps[i]); } } ExtensionProperty[] array = new ExtensionProperty[properties.size()]; properties.toArray(array); return array; }
/** * A factory-type method for instantiating and initialising ExtensionProperty objects. * This is a helper method for subclasses, as it automatically provides the extension namespace. * The only additional information the caller must provide is the property name and its content. * The property name parameter must not be null. * * @throws NullPointerException if the <code>name</code> parameter is null. */ protected ExtensionProperty newExtensionProperty(String name, Object content) { return new GenericExtensionProperty(name, getNamespace(), content); } }