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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.nuxeo.targetplatforms.api.impl.TargetInfoImpl
deprecated, description, downloadLink, enabled, endOfAvailability, fastTrack, id, isDefault, label, name, overridden, refVersion, releaseDate, restricted, status, trial, types, version
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TargetImpl()
TargetImpl(String id)
TargetImpl(String id, String name, String version, String refVersion, String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAfterVersion(String version)
Returns true if this target reference version is or is after given version.boolean
isAfterVersion(Target version)
Returns true if this target reference version is or is after given version.boolean
isStrictlyBeforeVersion(String version)
Returns true if this target reference version is strictly before given version.boolean
isStrictlyBeforeVersion(Target version)
Returns true if this target reference version is strictly before given version.boolean
isVersion(String version)
Returns true if this target reference version matches given version.boolean
isVersion(Target version)
Returns true if this target reference version matches given version.-
Methods inherited from class org.nuxeo.targetplatforms.api.impl.TargetInfoImpl
getDescription, getDownloadLink, getEndOfAvailability, getId, getLabel, getName, getRefVersion, getReleaseDate, getSimpleName, getStatus, getTypes, getVersion, isDefault, isDeprecated, isEnabled, isFastTrack, isOverridden, isRestricted, isTrial, matchesType, setDefault, setDeprecated, setDescription, setDownloadLink, setEnabled, setEndOfAvailability, setFastTrack, setId, setLabel, setName, setOverridden, setRefVersion, setReleaseDate, setRestricted, setStatus, setTrial, setTypes, setVersion, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.nuxeo.targetplatforms.api.TargetInfo
getDescription, getDownloadLink, getEndOfAvailability, getId, getLabel, getName, getRefVersion, getReleaseDate, getStatus, getTypes, getVersion, isDefault, isDeprecated, isEnabled, isFastTrack, isOverridden, isRestricted, isTrial, matchesType
-
-
-
-
Method Detail
-
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 interfaceTarget
-
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 interfaceTarget
-
isVersion
public boolean isVersion(String version)
Description copied from interface:Target
Returns true if this target reference version matches given version.
-
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 interfaceTarget
-
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 interfaceTarget
-
-