Package io.fabric8.maven.docker.assembly
Enum DockerFileKeyword
- java.lang.Object
-
- java.lang.Enum<DockerFileKeyword>
-
- io.fabric8.maven.docker.assembly.DockerFileKeyword
-
- All Implemented Interfaces:
Serializable,Comparable<DockerFileKeyword>
public enum DockerFileKeyword extends Enum<DockerFileKeyword>
Fields for a dockerfile- Since:
- 13.06.05
- Author:
- Paris Apostolopoulos <javapapo@mac.com>, Christian Fischer <sw-dev@computerlyrik.de>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTo(StringBuilder sb, boolean newline, String... args)Append this keyword + optionally some args to aStringBuilderand a optional trailing newline.voidaddTo(StringBuilder sb, String... args)Append this keyword + optionally some args to aStringBuilderplus a trailing newline.static DockerFileKeywordvalueOf(String name)Returns the enum constant of this type with the specified name.static DockerFileKeyword[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAINTAINER
public static final DockerFileKeyword MAINTAINER
-
ADD
public static final DockerFileKeyword ADD
-
EXPOSE
public static final DockerFileKeyword EXPOSE
-
FROM
public static final DockerFileKeyword FROM
-
SHELL
public static final DockerFileKeyword SHELL
-
RUN
public static final DockerFileKeyword RUN
-
WORKDIR
public static final DockerFileKeyword WORKDIR
-
ENTRYPOINT
public static final DockerFileKeyword ENTRYPOINT
-
CMD
public static final DockerFileKeyword CMD
-
USER
public static final DockerFileKeyword USER
-
ENV
public static final DockerFileKeyword ENV
-
ARG
public static final DockerFileKeyword ARG
-
LABEL
public static final DockerFileKeyword LABEL
-
COPY
public static final DockerFileKeyword COPY
-
VOLUME
public static final DockerFileKeyword VOLUME
-
HEALTHCHECK
public static final DockerFileKeyword HEALTHCHECK
-
NONE
public static final DockerFileKeyword NONE
-
-
Method Detail
-
values
public static DockerFileKeyword[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DockerFileKeyword c : DockerFileKeyword.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DockerFileKeyword valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
addTo
public void addTo(StringBuilder sb, String... args)
Append this keyword + optionally some args to aStringBuilderplus a trailing newline.- Parameters:
sb- stringbuilder to add toargs- args added (space separated)
-
addTo
public void addTo(StringBuilder sb, boolean newline, String... args)
Append this keyword + optionally some args to aStringBuilderand a optional trailing newline.- Parameters:
sb- stringbuilder to add tonewline- flag indicating whether a new line should be addedargs- args added (space separated)
-
-