public enum DevelopmentPhase extends Enum<DevelopmentPhase> implements SimpleDatatype<String>
DevelopmentPhase
represents the state of development of an artifact.VersionIdentifier.getPhase()
Enum Constant and Description |
---|
ALPHA
This
DevelopmentPhase aims to given an early preview of the product and to allow first testings
(by "friendly users"). |
BETA
This
DevelopmentPhase already gives a good impression of the final release but
is still containing bugs and may not be fully complete while all major features should be included. |
PRE_ALPHA
This is the earliest
DevelopmentPhase in the development cycle. |
RELEASE
This
DevelopmentPhase is feature complete and has passed acceptance tests. |
RELEASE_CANDIDATE
This
DevelopmentPhase is feature complete but may contain some last bugs while known bugs should
already be fixed. |
UPDATE
This
DevelopmentPhase is like RELEASE but may be used for bugfixes or tiny improvements
of the released product version. |
Modifier and Type | Field and Description |
---|---|
private String[] |
alternatives |
private String |
stringRepresentation |
private String |
value |
Modifier and Type | Method and Description |
---|---|
static DevelopmentPhase |
fromValue(String value)
This method gets the
DevelopmentPhase with the given value . |
String[] |
getAlternatives()
This method gets the alternatives.
|
String |
getValue()
This method returns the raw value of this datatype.
|
boolean |
isAfter(DevelopmentPhase phase)
This method determines if this
DevelopmentPhase is after the given phase . |
boolean |
isBefore(DevelopmentPhase phase)
This method determines if this
DevelopmentPhase is before the given phase . |
String |
toString()
|
static DevelopmentPhase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DevelopmentPhase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DevelopmentPhase PRE_ALPHA
DevelopmentPhase
in the development cycle. In this DevelopmentPhase
the software is typically very unstable, experimental, and the focus is on creating new functionality. DevelopmentPhase
is sometimes also just called development but this is quite
ambiguous as development happens in all DevelopmentPhase
s.public static final DevelopmentPhase ALPHA
DevelopmentPhase
aims to given an early preview of the product and to allow first testings
(by "friendly users"). Therefore this DevelopmentPhase
has focus on gathering feedback. DevelopmentPhase
is sometimes also called developer preview (DP) .public static final DevelopmentPhase BETA
DevelopmentPhase
already gives a good impression of the final release
but
is still containing bugs and may not be fully complete while all major features should be included.
Therefore this DevelopmentPhase
has focus on stabilization of the product. DevelopmentPhase
is sometimes also called early access (EA).public static final DevelopmentPhase RELEASE_CANDIDATE
DevelopmentPhase
is feature complete but may contain some last bugs while known bugs should
already be fixed. If all acceptance tests are passed, the RELEASE
is reached. Therefore this
DevelopmentPhase
has focus on finalization of the product. DevelopmentPhase
is sometimes also just called pre-release or gamma (while
gamma may be somewhere in between of BETA
and RELEASE_CANDIDATE
).public static final DevelopmentPhase RELEASE
DevelopmentPhase
is feature complete and has passed acceptance tests. For productive usage
only product releases in this phase
or after
are officially intended. Please note that also a release can obviously still have bugs. DevelopmentPhase
is sometimes also just called final, stable,
gold, release to manufacturing (RTM) or general availability (GA).public static final DevelopmentPhase UPDATE
DevelopmentPhase
is like RELEASE
but may be used for bugfixes or tiny improvements
of the released
product version. service pack (SP)
.private final String stringRepresentation
toString()
private final String value
getValue()
private final String[] alternatives
getAlternatives()
public static DevelopmentPhase[] values()
for (DevelopmentPhase c : DevelopmentPhase.values()) System.out.println(c);
public static DevelopmentPhase valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getValue()
String
, Character
, Boolean
, any type of Number
, any type of
java.time.LocalDate
, etc.).getValue
in interface AttributeReadValue<String>
getValue
in interface SimpleDatatype<String>
public String[] getAlternatives()
string representation
and
value
. May be empty.public boolean isBefore(DevelopmentPhase phase)
DevelopmentPhase
is before the given phase
. Here
before means that it is earlier and typically less stable.phase
- is the DevelopmentPhase
to compare with.true
if this phase is before the given phase
, false
otherwise (also if phase
is null
).public boolean isAfter(DevelopmentPhase phase)
DevelopmentPhase
is after the given phase
. Here
after means that it is later and typically more stable.phase
- is the DevelopmentPhase
to compare with.true
if this phase is after the given phase
, false
otherwise (also if phase
is null
).public static DevelopmentPhase fromValue(String value)
DevelopmentPhase
with the given value
.value
- is the value
of the requested DevelopmentPhase
.DevelopmentPhase
or null
if it does not exists.public String toString()
String
representation of this Datatype
. While the general contract
of Object.toString()
is very weak and mainly used for debugging, the contract here is very
strong. The returned String
has to be suitable for end-users and official output to any kind of
sink. NlsMessage
for this purpose and implement
NlsObject
if you want to support I18N/L10N.Copyright © 2001–2014 mmm-Team. All rights reserved.