public static enum NotaCompra.Origem extends java.lang.Enum<NotaCompra.Origem>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
codigo |
private java.lang.String |
label |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCodigo() |
static NotaCompra.Origem |
load(java.lang.String origem) |
static NotaCompra.Origem |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NotaCompra.Origem[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NotaCompra.Origem NORMAL
public static final NotaCompra.Origem CUSTO
public static NotaCompra.Origem[] values()
for (NotaCompra.Origem c : NotaCompra.Origem.values()) System.out.println(c);
public static NotaCompra.Origem valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static NotaCompra.Origem load(java.lang.String origem)
public java.lang.String getCodigo()