public enum DockerFileKeyword extends Enum<DockerFileKeyword>
Enum Constant and Description |
---|
ARG |
CMD |
COPY |
ENTRYPOINT |
ENV |
EXPOSE |
FROM |
HEALTHCHECK |
LABEL |
MAINTAINER |
NONE |
RUN |
USER |
VOLUME |
WORKDIR |
Modifier and Type | Method and Description |
---|---|
void |
addTo(StringBuilder sb,
boolean newline,
String... args)
Append this keyword + optionally some args to a
StringBuilder and a optional trailing newline. |
void |
addTo(StringBuilder sb,
String... args)
Append this keyword + optionally some args to a
StringBuilder plus a trailing newline. |
static DockerFileKeyword |
valueOf(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.
|
public static final DockerFileKeyword MAINTAINER
public static final DockerFileKeyword EXPOSE
public static final DockerFileKeyword FROM
public static final DockerFileKeyword RUN
public static final DockerFileKeyword WORKDIR
public static final DockerFileKeyword ENTRYPOINT
public static final DockerFileKeyword CMD
public static final DockerFileKeyword USER
public static final DockerFileKeyword ENV
public static final DockerFileKeyword ARG
public static final DockerFileKeyword LABEL
public static final DockerFileKeyword COPY
public static final DockerFileKeyword VOLUME
public static final DockerFileKeyword HEALTHCHECK
public static final DockerFileKeyword NONE
public static DockerFileKeyword[] values()
for (DockerFileKeyword c : DockerFileKeyword.values()) System.out.println(c);
public static DockerFileKeyword 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 void addTo(StringBuilder sb, String... args)
StringBuilder
plus a trailing newline.sb
- stringbuilder to add toargs
- args added (space separated)public void addTo(StringBuilder sb, boolean newline, String... args)
StringBuilder
and a optional trailing newline.sb
- stringbuilder to add tonewline
- flag indicating whether a new line should be addedargs
- args added (space separated)Copyright © 2019. All rights reserved.