public enum ProfileType extends java.lang.Enum<ProfileType>
The Invoice Profiles.
| Enum Constant and Description |
|---|
BASIC
The basic profile
|
COMFORT
The comfort profile
|
EXTENDED
The extended profile
|
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
conformanceLevel
|
java.lang.String |
fullName
|
static java.lang.String |
NS
|
java.lang.String |
simpleName
|
static java.lang.String |
VERSION
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
extractVersion(java.lang.String fullName)
|
static ProfileType |
getProfile(java.lang.String fullName)
|
static ProfileType |
getProfileByName(java.lang.String name)
|
static boolean |
isBasic(java.lang.String fullName)
|
static boolean |
isComfort(java.lang.String fullName)
|
static boolean |
isExtended(java.lang.String fullName)
|
static ProfileType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ProfileType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProfileType BASIC
public static final ProfileType COMFORT
public static final ProfileType EXTENDED
public final java.lang.String conformanceLevel
The conformance level is simple name in capital letters
public final java.lang.String fullName
The full name. with namespace:version:profileName
public static final java.lang.String NS
The ZUGFeRD name space prefix
public final java.lang.String simpleName
The simple name.
public static final java.lang.String VERSION
The ZUGFeRD VERSION.
public static java.lang.String extractVersion(java.lang.String fullName)
Extract version from full name.
fullName - the full namepublic static ProfileType getProfile(java.lang.String fullName)
Get a profile by full name.
fullName - the full namepublic static ProfileType getProfileByName(java.lang.String name)
Gets the profile by name.
name - the simple namepublic static boolean isBasic(java.lang.String fullName)
Checks if is basic.
fullName - the full namepublic static boolean isComfort(java.lang.String fullName)
Checks if is comfort.
fullName - the full namepublic static boolean isExtended(java.lang.String fullName)
Checks if is extended.
fullName - the full namepublic static ProfileType 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 ProfileType[] values()
for (ProfileType c : ProfileType.values()) System.out.println(c);
Copyright © 2014 konik.io. All Rights Reserved.