Class TargetImpl

java.lang.Object
org.nuxeo.targetplatforms.api.impl.TargetInfoImpl
org.nuxeo.targetplatforms.api.impl.TargetImpl
All Implemented Interfaces:
Serializable, Target, TargetInfo
Direct Known Subclasses:
TargetPackageImpl, TargetPlatformImpl, TargetPlatformInstanceImpl

public class TargetImpl extends TargetInfoImpl implements Target
Common class to describe a target platform or package.
Since:
5.7.1
See Also:
  • Constructor Details

    • TargetImpl

      protected TargetImpl()
    • TargetImpl

      public TargetImpl(String id)
    • TargetImpl

      public TargetImpl(String id, String name, String version, String refVersion, String label)
  • Method Details

    • isAfterVersion

      public boolean isAfterVersion(String version)
      Description copied from interface: Target
      Returns true if this target reference version is or is after given version.
      Specified by:
      isAfterVersion in interface Target
    • isStrictlyBeforeVersion

      public boolean isStrictlyBeforeVersion(String version)
      Description copied from interface: Target
      Returns true if this target reference version is strictly before given version.
      Specified by:
      isStrictlyBeforeVersion in interface Target
    • isVersion

      public boolean isVersion(String version)
      Description copied from interface: Target
      Returns true if this target reference version matches given version.
      Specified by:
      isVersion in interface Target
    • isStrictlyBeforeVersion

      public boolean isStrictlyBeforeVersion(Target version)
      Description copied from interface: Target
      Returns true if this target reference version is strictly before given version.
      Specified by:
      isStrictlyBeforeVersion in interface Target
    • isAfterVersion

      public boolean isAfterVersion(Target version)
      Description copied from interface: Target
      Returns true if this target reference version is or is after given version.
      Specified by:
      isAfterVersion in interface Target
    • isVersion

      public boolean isVersion(Target version)
      Description copied from interface: Target
      Returns true if this target reference version matches given version.
      Specified by:
      isVersion in interface Target