| org.netbeans.modules.vmd.api.model.VersionDescriptor
All known Subclasses: org.netbeans.modules.vmd.midp.components.MidpVersionDescriptor, org.netbeans.modules.vmd.api.model.common.DefaultVersionDescriptor,
VersionDescriptor | public interface VersionDescriptor (Code) | | This inteface defines a version compatibility and convertions.
author: David Kaspar |
convertComponent | public void convertComponent(DesignComponent component, Collection<String> oldAbilities, Collection<String> newAbilities)(Code) | | Convert a component.
This method is called after getPreliminaryConvertMessages method is called on all components in a document.
Parameters: component - the component Parameters: oldAbilities - the collection of old abilities Parameters: newAbilities - the collection of new abilities |
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.
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 | public boolean isCompatibleWith(VersionDescriptor descriptor)(Code) | | Checks whether this version is allowed within a specified version.
Version1.isCompatibleWith(Version2)==true.
Version2.isCompatibleWith(Version1)==false.
Parameters: descriptor - the version descriptor true, if compatible; false otherwise |
isCompatibleWith | public boolean isCompatibleWith(Collection<String> abilities)(Code) | | Return whether this version descriptor is compatible with abilities.
Parameters: abilities - the collection of abilities true, if compatible |
|
|