| java.lang.Object org.netbeans.modules.vmd.api.model.common.DefaultVersionDescriptor
DefaultVersionDescriptor | abstract public class DefaultVersionDescriptor implements VersionDescriptor(Code) | | This class is a default implementation of the version descriptor interface. This implementation deletes the component
when it is incompatible with new abilities. The class can be extended and convertion methods could be overriden.
author: David Kaspar |
Inner Class :public enum Kind | |
DefaultVersionDescriptor | public DefaultVersionDescriptor(Kind kind, String[] abilities)(Code) | | Creates a abstract implementation of default version descriptor.
Parameters: kind - the kind used for checking abilities Parameters: abilities - the abilities of the version descriptor |
createForeverCompatibleVersionDescriptor | public static VersionDescriptor createForeverCompatibleVersionDescriptor()(Code) | | Creates a version descriptor that is is always compatible.
the "forever" version descriptor |
getPreliminaryConvertMessages | public Set<String> getPreliminaryConvertMessages(DesignComponent component, Collection<String> oldAbilities, Collection<String> newAbilities)(Code) | | Return a set of warning/error messages for notifying an user about conversion changes.
The check is based on isCompatibleWith method and in the case that it is not compatible, it returns a message
about a component removing.
This method is called before convertComponent method is called on any component in a document.
Parameters: component - the component Parameters: oldAbilities - the collection of old abilities Parameters: newAbilities - the collection of new abilities a set of messages |
isCompatibleWith | final public boolean isCompatibleWith(String[] abilities)(Code) | | Returns whether this version descriptor is compatible with abilities based on the kind and the abilities of the version descriptor.
Parameters: abilities - the collection of abilities true, if compatible |
|
|