| org.netbeans.modules.vmd.api.model.Versionable
Versionable | public interface Versionable (Code) | | This interface represents a version resolver. It is used e.g. in PropertyDescriptor to describe availability of
a property in a particular state of a document.
author: David Kaspar |
Field Summary | |
final public static Versionable | FOREVER Represents a Versionable which is always available. |
Method Summary | |
boolean | isAvailable(DesignDocument document) Called to resolve whether the version, which is represented by implementation of this interface, is available
for the currect state of a specified document. | boolean | isCompatibleWith(Versionable versionable) Checks whether this version is allowed within a specified version. |
FOREVER | final public static Versionable FOREVER(Code) | | Represents a Versionable which is always available. Often used as a default behaviour.
|
isAvailable | boolean isAvailable(DesignDocument document)(Code) | | Called to resolve whether the version, which is represented by implementation of this interface, is available
for the currect state of a specified document.
Parameters: document - the document true, if the version is available |
isCompatibleWith | boolean isCompatibleWith(Versionable versionable)(Code) | | Checks whether this version is allowed within a specified version.
Version1.isCompatibleWith(Version2)==true.
Version2.isCompatibleWith(Version1)==false.
Parameters: versionable - the versionable true, if compatible; false otherwise |
|
|