/** * 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); } }
/** * 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); } }